mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +00:00
upgrade example/walkthrough to v1beta3
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user