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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can you get information about multiple kinds of Kubernetes objects?

A

‘kubectl get pods,services’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly