Add a "201" walkthrough.

This commit is contained in:
Brendan Burns
2014-10-20 22:44:14 -07:00
parent e8686429c4
commit 465acd5e76
5 changed files with 217 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
id: nginxController
apiVersion: v1beta1
kind: ReplicationController
desiredState:
replicas: 2
# replicaSelector identifies the set of Pods that this
# replicaController is responsible for managing
replicaSelector:
name: nginx
# podTemplate defines the 'cookie cutter' used for creating
# new pods when necessary
podTemplate:
desiredState:
manifest:
version: v1beta1
id: ngix
containers:
- name: nginx
image: dockerfile/nginx
ports:
- containerPort: 80
# Important: these labels need to match the selector above
# The api server enforces this constraint.
labels:
- name: nginx