rootsongjc-pr-20170815

This commit is contained in:
Jimmy Song
2017-08-30 20:45:01 +08:00
parent 1696664888
commit 9164d30955
110 changed files with 5484 additions and 0 deletions
@@ -0,0 +1,18 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 2 # tells deployment to run 2 pods matching the template
template: # create pods using pod definition in this template
metadata:
# unlike pod-nginx.yaml, the name is not included in the meta data as a unique name is
# generated from the deployment name
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80