k8s Flashcards

1
Q

How do we let other Pods and applications automatically discover each other?

A

k8s addresses this by grouping Pods in Services.

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

Define a k8s Service

A

A k8s Service is an abstraction layer which defines a logical set of Pods and enables external traffic exposure, load balancing, and service discovery for those Pods.

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

How do service match a set of Pods?

A

Using Label Selectors, a grouping primitive that allows for logical operation on Labels.

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

What flag allows for creation of a Service while running a Deployment?

A

–expose

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

What are Labels?

A

Labels are key/value pairs that are attached to objects, such as Pods and you an think of them as hashtags fm social media. They are used to organize related objects in a way meaningful to the users like: Production environment, Application version, Type of service/server.

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

How is scaling accomplished?

A

By changing the number of replicas in a Deployment.

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

What are rolling updates?

A

Rolling updates allows Deployments to occur with zero downtime by incrementally updating Pods instances with new ones.

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

What actions are allowed with rolling updates?

A
  • Promote an application from one env to another (via container image updates)
  • Rollback to prev version
  • Cont. Integration and Cont. Delivery of applications with zero downtime.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly