The Nautilus DevOps team has started practicing some pods and services deployment on Kubernetes platform as they are planning to migrate most of their applications on Kubernetes platform. Recently one of the team members has been assigned a task to create a pod as per details mentioned below:
- Create a pod named
pod-httpd
using httpd
image with latest
tag only and remember to mention the tag i.e httpd:latest
.
- Labels
app
should be set to httpd_app
, also container should be named as httpd-container
.
Note:
The kubectl
utility on jump_host
has been configured to work with the kubernetes cluster.
Have you done any of the Kubernetes courses? If you have, this comes under the “very easy” category. If you have not, then you should not attempt Kubernetes questions as you will be stuck on all of them.
1 Like
Yes, I am learning from the kodekloud materials. still feels stuck, how much basic should i read before doing anything practical?
Creating a pod declaratively which is what is being requested here is pretty near the start of all the Kubernetes courses.
For this you’ll need kubectl run
with --dry-run=client
and -o yaml
to get a YAML file for the pod.
Edit the YAML file to comply with the question requirements, then create the pod from the YAML file.