-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RBAC config for "kube-state-metrics". Make EC2 monitoring optiona…
…l. (#13) * Fix RBAC for "kube-state-metrics".Make EC2 monitoring optional.
- Loading branch information
Showing
5 changed files
with
84 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
git checkout k8s/ingress/01-basic-auth.secret.yaml | ||
git checkout k8s/ingress/03-prometheus.ing.yaml | ||
git checkout k8s/prometheus/01-prometheus.configmap.yaml | ||
git checkout k8s/prometheus/02-prometheus.svc.statefulset.yaml | ||
git checkout k8s/prometheus/03-alertmanager.configmap.yaml | ||
git checkout k8s/prometheus/04-alertmanager.svc.deployment.yaml | ||
git checkout k8s/prometheus/05-node-exporter.svc.daemonset.yaml | ||
git checkout k8s/grafana/grafana.svc.deployment.yaml | ||
git checkout grafana/Dockerfile | ||
git checkout k8s/* | ||
git checkout grafana/* | ||
rm auth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: kube-state-metrics | ||
namespace: monitoring | ||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRole | ||
metadata: | ||
name: kube-state-metrics | ||
rules: | ||
- apiGroups: [""] | ||
resources: | ||
- nodes | ||
- pods | ||
- services | ||
- resourcequotas | ||
- replicationcontrollers | ||
- limitranges | ||
verbs: ["list", "watch"] | ||
- apiGroups: ["extensions"] | ||
resources: | ||
- daemonsets | ||
- deployments | ||
- replicasets | ||
verbs: ["list", "watch"] | ||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: kube-state-metrics | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: kube-state-metrics | ||
subjects: | ||
- kind: ServiceAccount | ||
name: kube-state-metrics | ||
namespace: monitoring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters