29 lines
476 B
YAML
29 lines
476 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: example-nginx
|
|
namespace: demo
|
|
labels:
|
|
name: nginx
|
|
app: nginx
|
|
type: deployment
|
|
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
|