kubectl apply -f whoami-deployment.yaml
kubectl apply -f whoami-service.yaml
Check deployment:
kubectl describe deployment whoami
Check service:
kubectl describe svc whoami
Check created endpoints:
kubectl get endpoints
kubectl describe endpoints whoami
- run temporary pod to see whether you can connect to the whoami-svc service
kubectl run -it --rm --image alpine -- sh
apk update
apk add curl