Skip to content

Instantly share code, notes, and snippets.

@m3pratik
Created January 9, 2023 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m3pratik/9f404115a27297275e7c27b899c113a1 to your computer and use it in GitHub Desktop.
Save m3pratik/9f404115a27297275e7c27b899c113a1 to your computer and use it in GitHub Desktop.
nginx-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment