Kubernetes Deployments
Coming soon…
Run a Collection of Pods That Can Be Updated with Zero Downtime
Create a YAML file called web.yml to hold the manifest for the deployment:
vi web.yml
We will start with the basic skeleton of which is available from the Kubernetes documentation
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
spec:
replicas: 3
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: nginx
image: nginx:stable