This repository was archived by the owner on Jan 13, 2021. It is now read-only.
File tree 3 files changed +15
-7
lines changed
3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- apiVersion : rbac.authorization.k8s.io/v1beta1
2
+ apiVersion : rbac.authorization.k8s.io/v1
3
3
kind : ClusterRole
4
4
metadata :
5
5
name : smith
88
88
- update
89
89
- delete
90
90
---
91
- apiVersion : rbac.authorization.k8s.io/v1beta1
91
+ apiVersion : rbac.authorization.k8s.io/v1
92
92
kind : ClusterRoleBinding
93
93
metadata :
94
94
name : smith
Original file line number Diff line number Diff line change 1
1
---
2
- apiVersion : rbac.authorization.k8s.io/v1beta1
2
+ apiVersion : rbac.authorization.k8s.io/v1
3
3
kind : ClusterRole
4
4
metadata :
5
5
name : smith-cluster-role
13
13
- list
14
14
- watch
15
15
---
16
- apiVersion : rbac.authorization.k8s.io/v1beta1
16
+ apiVersion : rbac.authorization.k8s.io/v1
17
17
kind : ClusterRole # cluster wide role but it is bound only in a specific namespace (or multiple)
18
18
metadata :
19
19
name : smith-namespaced-role
93
93
- update
94
94
- delete
95
95
---
96
- apiVersion : rbac.authorization.k8s.io/v1beta1
96
+ apiVersion : rbac.authorization.k8s.io/v1
97
97
kind : ClusterRoleBinding
98
98
metadata :
99
99
name : smith-cluster-binding
@@ -106,7 +106,7 @@ subjects:
106
106
name : smith
107
107
namespace : <your namespace>
108
108
---
109
- apiVersion : rbac.authorization.k8s.io/v1beta1
109
+ apiVersion : rbac.authorization.k8s.io/v1
110
110
kind : RoleBinding
111
111
metadata :
112
112
name : smith-namespaced-binding
Original file line number Diff line number Diff line change 1
- apiVersion : apps/v1beta2
1
+ apiVersion : apps/v1
2
2
kind : Deployment
3
3
metadata :
4
4
name : smith
5
5
spec :
6
6
replicas : 1
7
+ selector :
8
+ matchLabels :
9
+ app : smith
10
+ strategy :
11
+ type : RollingUpdate
12
+ rollingUpdate :
13
+ maxSurge : 0
14
+ maxUnavailable : 1
7
15
template :
8
16
metadata :
9
17
labels :
You can’t perform that action at this time.
0 commit comments