Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 251ad0d

Browse files
committed
Update deployment objects
1 parent 1bccb7a commit 251ad0d

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

docs/deployment/2-cluster-wide-access-setup.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: rbac.authorization.k8s.io/v1beta1
2+
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
name: smith
@@ -88,7 +88,7 @@ rules:
8888
- update
8989
- delete
9090
---
91-
apiVersion: rbac.authorization.k8s.io/v1beta1
91+
apiVersion: rbac.authorization.k8s.io/v1
9292
kind: ClusterRoleBinding
9393
metadata:
9494
name: smith

docs/deployment/2-namespaced-access-setup.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
apiVersion: rbac.authorization.k8s.io/v1beta1
2+
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRole
44
metadata:
55
name: smith-cluster-role
@@ -13,7 +13,7 @@ rules:
1313
- list
1414
- watch
1515
---
16-
apiVersion: rbac.authorization.k8s.io/v1beta1
16+
apiVersion: rbac.authorization.k8s.io/v1
1717
kind: ClusterRole # cluster wide role but it is bound only in a specific namespace (or multiple)
1818
metadata:
1919
name: smith-namespaced-role
@@ -93,7 +93,7 @@ rules:
9393
- update
9494
- delete
9595
---
96-
apiVersion: rbac.authorization.k8s.io/v1beta1
96+
apiVersion: rbac.authorization.k8s.io/v1
9797
kind: ClusterRoleBinding
9898
metadata:
9999
name: smith-cluster-binding
@@ -106,7 +106,7 @@ subjects:
106106
name: smith
107107
namespace: <your namespace>
108108
---
109-
apiVersion: rbac.authorization.k8s.io/v1beta1
109+
apiVersion: rbac.authorization.k8s.io/v1
110110
kind: RoleBinding
111111
metadata:
112112
name: smith-namespaced-binding

docs/deployment/3-deployment.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
apiVersion: apps/v1beta2
1+
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: smith
55
spec:
66
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: smith
10+
strategy:
11+
type: RollingUpdate
12+
rollingUpdate:
13+
maxSurge: 0
14+
maxUnavailable: 1
715
template:
816
metadata:
917
labels:

0 commit comments

Comments
 (0)