upgrade example/walkthrough to v1beta3

This commit is contained in:
Chao Xu
2015-05-07 17:55:36 -07:00
parent 738f403eea
commit ab356c9fa0
14 changed files with 184 additions and 451 deletions

View File

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