2 changed files with 37 additions and 0 deletions
@ -0,0 +1,19 @@
|
||||
apiVersion: apps/v1 |
||||
kind: Deployment |
||||
metadata: |
||||
name: nginx-deployment |
||||
spec: |
||||
selector: |
||||
matchLabels: |
||||
app: nginx |
||||
replicas: 2 # tells deployment to run 2 pods matching the template |
||||
template: |
||||
metadata: |
||||
labels: |
||||
app: nginx |
||||
spec: |
||||
containers: |
||||
- name: nginx |
||||
image: nginx:1.20.0-alpine |
||||
ports: |
||||
- containerPort: 80 |
Loading…
Reference in new issue