apps/v1 · Namespaced Resource
Deployment
Deployment enables declarative updates for Pods and ReplicaSets.
Click on Property Name to see the description, and Pink Types to expand schema.
Looking for some examples?
There are 3 examples of Deployment that you can use as a starting point to create your own.
apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment namespace: shopping-cart # Deployment is namespaced resource labels: app: nginx spec: replicas: 3 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.19.5 ports: - containerPort: 80
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: shopping-cart # Deployment is namespaced resource
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.19.5
ports:
- containerPort: 80
resources:
requests:
cpu: 100m
memory: 200Mi
limits:
cpu: 2000m
memory: 2Gi
apiVersion: apps/v1
kind: Deployment
metadata:
name: fullstack-deployment
namespace: shopping-cart # Deployment is namespaced resource
labels:
app: fullstack
spec:
replicas: 3
selector:
matchLabels:
app: fullstack
template:
metadata:
labels:
app: fullstack
spec:
containers:
- name: frontend
image: yourregistry/frontend:1.0
ports:
- containerPort: 80
- name: backend
image: yourregistry/backend:1.0
No links for Deployment yet
You can help us by adding useful links on GitHub