k8s Flashcards
How do we let other Pods and applications automatically discover each other?
k8s addresses this by grouping Pods in Services.
Define a k8s Service
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 do service match a set of Pods?
Using Label Selectors, a grouping primitive that allows for logical operation on Labels.
What flag allows for creation of a Service while running a Deployment?
–expose
What are Labels?
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 is scaling accomplished?
By changing the number of replicas in a Deployment.
What are rolling updates?
Rolling updates allows Deployments to occur with zero downtime by incrementally updating Pods instances with new ones.
What actions are allowed with rolling updates?
- 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.