kubernetes-yaml/description/Workload/Deployments/example-nginx.yml

29 lines
478 B
YAML

apiVersion: apps/v1
kind: Deployments
metadata:
name: example-nginx
namespace: demo
labels:
name: nginx
app: nginx
type: deployments
spec:
replicas: 3
selector:
matchLabels:
name: nginx
app: nginx
type: pod
template:
metadata:
labels:
name: nginx
app: nginx
type: pod
spec:
containers:
- name: nginx
image: nginx:1.23.3
ports:
- containerPort: 80