Update k8s manifests
This commit is contained in:
parent
fcd11de87c
commit
f1c8cea052
43
k8s/infrastructure/coredns-ci-rbac.yaml
Normal file
43
k8s/infrastructure/coredns-ci-rbac.yaml
Normal file
@ -0,0 +1,43 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: coredns-ci
|
||||
namespace: kube-system
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: coredns-configmap-editor
|
||||
namespace: kube-system
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["configmaps"]
|
||||
resourceNames: ["coredns-custom"]
|
||||
verbs: ["get", "update", "patch"]
|
||||
- apiGroups: ["apps"]
|
||||
resources: ["deployments"]
|
||||
resourceNames: ["coredns"]
|
||||
verbs: ["get", "patch"]
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
name: coredns-ci-binding
|
||||
namespace: kube-system
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: coredns-configmap-editor
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: coredns-ci
|
||||
namespace: kube-system
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: coredns-ci-token
|
||||
namespace: kube-system
|
||||
annotations:
|
||||
kubernetes.io/service-account.name: coredns-ci
|
||||
type: kubernetes.io/service-account-token
|
||||
@ -11,3 +11,4 @@ resources:
|
||||
- keycloak/helmrelease.yaml
|
||||
- oidc-rbac.yaml
|
||||
- coredns-custom.yaml
|
||||
- coredns-ci-rbac.yaml
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user