You have a Deployment that runs a containerized web application. The web application depends on a specific database service running on a different node in the cluster. The web application should only be able to connect to the database service on port 5432 and not any other services running on the database node. How can you define a NetworkPolicy to achieve this?

Score: 4%
Task
Schedule a pod as follows:
* Name: nginx-kusc00401
* Image: nginx
* Node selector: disk=ssd
Configure the kubelet systemd- managed service, on the node labelled with name=wk8s-node-1, to launch a pod containing a single container of Image httpd named webtool automatically. Any spec files required should be placed in the /etc/kubernetes/manifests directory on the node.
You can ssh to the appropriate node using:
[student@node-1] $ ssh wk8s-node-1
You can assume elevated privileges on the node with the following command:
[student@wk8s-node-1] $ | sudo -i





You have a deployment named 'redis-deployment' running a Redis server with 3 replicas. You need to configure a service with the 'NodePort' type to expose Redis on all nodes in the cluster, but restrict access only from specific pods within a namespace.


Enter your email address to download LinuxFoundation.CKA.v2026-10-12.q90 Dumps