added service account
This commit is contained in:
36
sa.yaml
Normal file
36
sa.yaml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: phpipam
|
||||||
|
namespace: phpipam
|
||||||
|
labels:
|
||||||
|
app: phpipam
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: phpipam-anyuid
|
||||||
|
labels:
|
||||||
|
app: phpipam
|
||||||
|
rules:
|
||||||
|
- apiGroups:
|
||||||
|
- security.openshift.io
|
||||||
|
resourceNames:
|
||||||
|
- anyuid
|
||||||
|
resources:
|
||||||
|
- securitycontextconstraints
|
||||||
|
verbs:
|
||||||
|
- use
|
||||||
|
---
|
||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: phpipam-anyuid
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: system:openshift:scc:anyuid
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: phpipam
|
||||||
|
namespace: phpipam
|
||||||
Reference in New Issue
Block a user