Skip to content

Instantly share code, notes, and snippets.

@Weiyuan-Lane
Created February 3, 2019 04:45
Show Gist options
  • Save Weiyuan-Lane/fd6e44b848c2b9bc97ec951189d94c95 to your computer and use it in GitHub Desktop.
Save Weiyuan-Lane/fd6e44b848c2b9bc97ec951189d94c95 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3 # This can be changed any time as config and pods will scale up with the change
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