Mock Exam 2 Question: Create an nginx pod called `nginx-resolver` using image `n . . . – Kubernetes – KodeKloud
Samir:
Mock Exam 2 Question: Create an nginx pod called nginx-resolver
using image nginx
, expose it internally with a service called nginx-resolver-service
. Test that you are able to look up the service and pod names from within the cluster. Use the image: busybox:1.28 for dns lookup. Record results in /root/CKA/nginx.svc
and /root/CKA/nginx.pod
What I did:
kubectl run nginx-resolver –image=nginx
kubectl expose pod nginx-resolver –name=nginx-reslolver-name –port=80
kubectl run tester –image=busybox:1.28 → error msg: Container image busybox:1.28 is already present on machine. What is wrong here?
Read more here: Source link