How do you create a service svc1 from a Kubernetes pod pod1? The service should use a tcp port redirection of 8080:80.
Experience Level: Senior
Tags: Kubernetes
Answer
Run the following command:
Related Kubernetes job interview questions
What are the three kinds of object management supported in Kubernetes?
Kubernetes JuniorHow do you create a temporary pod and verify a http connectivity to a service svc1 that exposed a port 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 SeniorHow do you change a number of replicas of a Kubernetes deployment dep1 to 3?
Kubernetes Senior