Application Lifecycle Management
Rolling Updates & Rollbacks
kubectl rollout status deployment <deployment-name> # Current rollout
kubectl rollout history deployment <deployment-name> # History of rolloutsDeployment Strategies
Recreate strategy
Rolling Update (Default)


If something went wrong when you updated your deployment you can run:

Lab:
Commands & Arguments

We can specify docker images commands and arguments overrides in the pod definitions:

Lab (Review):
Configuring Environment Variables
To set environment variables in a pod definition:

Configmaps
Create configmap
Creating configmap using imperative commands:
Creating configmap using declarative approach:

Inject a configmap to a pod

Ways to inject a configmap:

Lab (Review):


Configure Secrets
Two steps are required to work with secrets:
Create Secret
Using imperative command:
Using Declarative approach:

Inject Secret

Other ways to inject secrets:

Also the way Kubernetes handles secrets. Such as:
Lab (Review):



Encrypting Secret Data At Rest
Follow this docs page for additional information:

Multi Container Pods
To create a multi-container pod, define it as an array under containers section:

Lab:
I tried to exec to the pod but it wasn't working, I didn't specify the -n -it flags:
-n -it flags:Docs used:
InitContainers
Here's a shortened example:
Read more about InitContainers here:
Lab:
Its as usual a kubectl edit pod yaml issue, the - name is always first:
kubectl edit pod yaml issue, the - name is always first:
Slides
Last updated
