Skip to content

Instantly share code, notes, and snippets.

@leandrosiow
Created April 27, 2021 21:05
Show Gist options
  • Save leandrosiow/1dac4291bfd50a5f5bfbd14c906dbbd7 to your computer and use it in GitHub Desktop.
Save leandrosiow/1dac4291bfd50a5f5bfbd14c906dbbd7 to your computer and use it in GitHub Desktop.
Sample Nginx Deployment
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:latest
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment