Question: Read the full details of your question.
sample Answer:
# first we need to create a configuration YAML file based on the given details in the question.
check below the Github link for the sample YAML file for this task.( filedref-pod.yaml)
#Hope you prepared the YAML file from the above step using your question details.
NOW let's do the task.
# create namespace based on your question
kubectl create ns <namespace-name_from_your_question>
# pod creation
kubectl apply -f <your.yaml file> -n <namespace-name_from_your_question>
#get status of pod
kubectl get pods -n <your-name space-name>
#Testing
To check the output, exec the pod and use printenv command.
Note: Commands are correct but based on your question the server, user name, and other details might differ, so please do check.
check the below video too for how to do this task (i have done a sample task on Ubuntu OS)
*Please comment on this post if you have any questions or facing any issues in the above steps, also provide your feedback in the comments :)
No comments:
Post a Comment