Rolling out new versions/release of your code.
kubectl run
vim dcohen-nginx-deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment-example
spec:
replicas: 1
selector:
matchLabels:
app: nginx-deployment-example
template:
metadata:
labels:
app: nginx-deployment-example
spec:
containers:
- name: nginx
image: library/nginx
kubectl create -f ./dcohen-nginx-deployment.yml