Question 36

Create a snapshot of theetcdinstance running at , saving thesnapshot to the file path
/srv/data/etcd-snapshot.db.
The following TLScertificates/key are suppliedfor connecting to the server withetcdctl:
* CA certificate:/opt/KUCM00302/ca.crt
* Client certificate:/opt/KUCM00302/etcd-client.crt
* Client key:Topt/KUCM00302/etcd-client.key

Question 37

Create a configmap called myconfigmap with literal value
appname=myapp
  • Question 38

    Score: 4%

    Task
    Scale the deployment presentation to 6 pods.

    Question 39

    A Kubernetes worker node, named wk8s-node-0 is in state NotReady. Investigate why this is the case, and perform any appropriate steps to bring the node to a Ready state, ensuring that any changes are made permanent.
    You can ssh to the failed node using:
    [student@node-1] $ | ssh Wk8s-node-0
    You can assume elevated privileges on the node with the following command:
    [student@w8ks-node-0] $ | sudo -i

    Question 40

    Score: 4%

    Context
    You have been asked to create a new ClusterRole for a deployment pipeline and bind it to a specific ServiceAccount scoped to a specific namespace.
    Task
    Create a new ClusterRole named deployment-clusterrole, which only allows to create the following resource types:
    * Deployment
    * StatefulSet
    * DaemonSet
    Create a new ServiceAccount named cicd-token in the existing namespace app-team1.
    Bind the new ClusterRole deployment-clusterrole lo the new ServiceAccount cicd-token , limited to the namespace app-team1.