Skip to content

Instantly share code, notes, and snippets.

@Gabyheavy
Created December 4, 2017 18:23
Show Gist options
  • Save Gabyheavy/8af75185eee3f36a8b85ebbee8d6a0f7 to your computer and use it in GitHub Desktop.
Save Gabyheavy/8af75185eee3f36a8b85ebbee8d6a0f7 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta2 # for versions before 1.8.0 use apps/v1beta1
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.7.9
ports:
- containerPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment