You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
414 B
20 lines
414 B
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nginx-deployment
|
|
namespace: web-test
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: nginx-deployment
|
|
replicas: 3 # tells deployment to run 3 pods matching the template
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx-deployment
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx:latest
|
|
ports:
|
|
- containerPort: 80
|