Get list of all pods in all namespaces and write it to file “/opt/pods-list.yaml”
Given a partially-functioning Kubernetes cluster, identify symptoms of failure on the cluster.
Determine the node, the failing service, and take actions to bring up the failed service and restore the health of the cluster. Ensure that any changes are made permanently.
You can ssh to the relevant I nodes (bk8s-master-0 or bk8s-node-0) using:
[student@node-1] $ ssh <nodename>
You can assume elevated privileges on any node in the cluster with the following command:
[student@nodename] $ | sudo –i
Create a nginx pod with label env=test in engineering namespace
Score: 7%
Task
First, create a snapshot of the existing etcd instance running at https://127.0.0.1:2379 , saving the snapshot to /srv/data/etcd-snapshot.db.
Next, restore an existing, previous snapshot located at /var/lib/backup/etcd-snapshot-previo us.db
Create an nginx pod and list the pod with different levels of verbosity
Score: 7%
Task
Create a new nginx Ingress resource as follows:
• Name: ping
• Namespace: ing-internal
• Exposing service hi on path /hi using service port 5678
Set the node named ek8s-node-1 as unavailable and reschedule all the pods running on it.
Score: 4%
Task
Scale the deployment presentation to 6 pods.
List all the pods sorted by name
Get IP address of the pod – “nginx-dev”