Skip to content

Commit 9897962

Browse files
authored
update minikube overlay with cluster role bindings (sourcegraph#2027)
1 parent 9511849 commit 9897962

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: cadvisor
5+
subjects:
6+
- kind: ServiceAccount
7+
name: cadvisor
8+
namespace: ns-sourcegraph

overlays/minikube/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ bases:
55
- ../bases/deployments
66
- ../bases/rbac-roles
77
- ../bases/pvcs
8+
patchesStrategicMerge:
9+
- prometheus/prometheus.ClusterRoleBinding.yaml
10+
- cadvisor/cadvisor.ClusterRoleBinding.yaml
811
patchesJson6902:
912
- target:
1013
kind: Deployment
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: prometheus
5+
subjects:
6+
- kind: ServiceAccount
7+
name: prometheus
8+
namespace: ns-sourcegraph

0 commit comments

Comments
 (0)