How do you create a temporary pod and verify a http connectivity to a service svc1 that exposed a port 80?
Experience Level: Senior
Tags: Kubernetes
Answer
Run the following command:
The -m 5 parameter defines maximum time allowed for the transfer. It is used as a 5 second timeout. If the response is not transferred by that time, wget stops.
Related Kubernetes job interview questions
How can you display a list of Kubernetes pods that will automatically rerender when a pod status changes?
Kubernetes JuniorWhat are the three kinds of object management supported in Kubernetes?
Kubernetes JuniorHow do you create a service svc1 from a Kubernetes pod pod1? The service should use a tcp port redirection of 8080:80.
Kubernetes SeniorWhat is privileged setting of securityContext used for in Kubernetes container manifest?
Kubernetes SeniorWhat is allowPrivilegeEscalation setting of securityContext used for in Kubernetes container manifest?
Kubernetes Senior