SIMULATION
Ensure a single instance of pod nginx is running on each node of the Kubernetes cluster where nginx also represents the Image name which has to be used. Do not override any taints currently in place. Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name.
SIMULATION
Create a deployment as follows:
1.
Name: nginx-app
2.
Using container nginx with version 1.11.10-alpine
3.
The deployment should contain 3 replicas
Next, deploy the application with new version 1.11.13-alpine, by performing a rolling update. Finally, rollback that update to the previous version 1.11.10-alpine.
SIMULATION For this item, you will have to ssh to the nodes ik8s-master-0 and ik8s-node-0 and complete all tasks on these nodes. Ensure that you return to the base node (hostname: node-1) when you have completed this item. Context
As an administrator of a small development team, you have been asked to set up a Kubernetes cluster to test the viability of a new application.
Task
You must use kubeadm to perform this task. Any kubeadm invocations will require the use of the -- ignore-preflight-errors=all option.
Configure the node ik8s-master-O as a master node. .
Join the node ik8s-node-o to the cluster.
SIMULATION
Create a persistent volume with name app-data, of capacity 2Gi and access mode ReadWriteMany. The type of volume is hostPath and its location is /srv/app-data.
Create a namespace called 'development' and a pod with image nginx called nginx on this namespace.
Create a pod that echo "hello world" and then exists. Have the pod deleted automatically when it's completed
SIMULATION

Task
Create a new NetworkPolicy named allow-port-from-namespace in the existing namespace echo. Ensure that the new NetworkPolicy allows Pods in namespace my-app to connect to port 9000 of Pods in namespace echo.
Further ensure that the new NetworkPolicy:
1.
does not allow access to Pods, which don't listen on port 9000
2.
does not allow access from Pods, which are not in namespace my-app
SIMULATION

Task
Given an existing Kubernetes cluster running version 1.20.0, upgrade all of the Kubernetes control plane and node components on the master node only to version 1.20.1.
Be sure to drain the master node before upgrading it and uncordon it after the upgrade.

You are also expected to upgrade kubelet and kubectl on the master node.

SIMULATION

Task
Create a new nginx Ingress resource as follows:
1.
Name: ping
2.
Namespace: ing-internal
3.
Exposing service hi on path /hi using service port 5678
