Skip to content

Commit

Permalink
Update kubectl patch doc to use apps/v1beta2 APIs (#5422)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimsonfaith91 authored and steveperry-53 committed Sep 19, 2017
1 parent b3cf89c commit d32bf97
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
5 changes: 4 additions & 1 deletion cn/docs/tasks/run-application/deployment-patch-demo.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: patch-demo
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
Expand Down
5 changes: 4 additions & 1 deletion docs/tasks/run-application/deployment-patch-demo.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
apiVersion: apps/v1beta1
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: patch-demo
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
Expand Down
12 changes: 6 additions & 6 deletions docs/tasks/run-application/update-api-object-kubectl-patch.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ The output shows that the PodSpec in the Deployment has two Containers:

```shell
containers:
- image: nginx
imagePullPolicy: Always
name: patch-demo-ctr
...
- image: redis
imagePullPolicy: Always
name: patch-demo-ctr-2
...
- image: nginx
imagePullPolicy: Always
name: patch-demo-ctr
...
```

View the Pods associated with your patched Deployment:
Expand Down Expand Up @@ -118,10 +118,10 @@ The output shows that the Pod has two Containers: one running nginx and one runn

```
containers:
- image: nginx
...
- image: redis
...
- image: nginx
...
```

### Notes on the strategic merge patch
Expand Down

0 comments on commit d32bf97

Please sign in to comment.