The Nautilus DevOps team is diving into Kubernetes for application management. One team member has a task to create a pod according to the details below:
Create a pod named pod-httpd using the httpd image with the latest tag. Ensure to specify the tag as httpd:latest.
Set the app label to httpd_app, and name the container as httpd-container.
Note: The kubectl utility on jump_host is configured to operate with the Kubernetes cluster.
k3s-pod.yml file inside the jump host with this contentsRun the following command to create pod in kubernetes cluster:
kubectl apply -f k3s-pod.yml
Check if pod is running or not:
kubectl get pods
kubectl apply -f pod.yamlkubectl get podskubectl describe pod pod-namekubectl logs pod-namekubectl delete pod pod-name