kubectl get nodes -o wide
: This command will provide information about the nodes in the cluster, including the operating system and package manager used.apt-get update
: This command updates the package repository for Debian-based systems.yum check-update
: This command checks for updates in the package repository for Red Hat-based systems.cat /var/log/apt/history.log
: This command displays the history of package updates performed on Debian-based systems.yum history list
: This command lists the history of package updates performed on Red Hat-based systems.kubectl get deployments
command to list all deployments in the cluster.kubectl get deployment <deployment-name> -o yaml
command to get the current manifest file for the deployment.yaml
module in Python.create_or_replace_namespaced_deployment
or create_or_replace_namespaced_pod
method to apply the updated manifest file to the cluster.