Create run-my-nginx.yaml

This commit is contained in:
Sabbir Ahmed Shameem 2024-05-06 22:40:53 +06:00 committed by GitHub
parent c43ed2f73c
commit 68ddcaa409
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nginx
spec:
selector:
matchLabels:
run: my-nginx
replicas: 2
template:
metadata:
labels:
run: my-nginx
spec:
containers:
- name: my-nginx
image: nginx
ports:
- containerPort: 80