Microservice Architecture Flashcards
1
Q
How do you specify the port on which an application listens in a pod?
A
In the pod-definition yaml or template with:
spec: containers: - name: image: ports: - containerPort: 80
2
Q
How many labels must be the same, so that a service connects a group of pods?
A
- ALL labels need to be used in the selector of the service in order for the service to select the pods
3
Q
How can you get information about multiple kinds of Kubernetes objects?
A
‘kubectl get pods,services’
4
Q
A