kube-prometheus: add RBAC resources

This commit is contained in:
Frederic Branczyk
2017-03-22 19:36:17 +01:00
parent b8b3f99a4d
commit bf67031b5c
10 changed files with 99 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ kctl() {
kubectl --namespace "$NAMESPACE" "$@"
}
kctl apply -f manifests/prometheus-operator.yaml
kctl apply -f manifests/prometheus-operator
# Wait for TPRs to be ready.
printf "Waiting for Operator to register third party objects..."
@@ -28,6 +28,9 @@ kctl apply -f manifests/grafana
kctl apply -f manifests/prometheus/prometheus-k8s-rules.yaml
kctl apply -f manifests/prometheus/prometheus-k8s-service.yaml
kctl apply -f manifests/prometheus/prometheus-cluster-role-binding.yaml
kctl apply -f manifests/prometheus/prometheus-cluster-role.yaml
kctl apply -f manifests/prometheus/prometheus-k8s-service-account.yaml
kctl apply -f manifests/alertmanager/alertmanager-config.yaml
kctl apply -f manifests/alertmanager/alertmanager-service.yaml

View File

@@ -20,5 +20,5 @@ kctl delete -f manifests/alertmanager
# Hack: wait a bit to let the controller delete the deployed Prometheus server.
sleep 5
kctl delete -f manifests/prometheus-operator.yaml
kctl delete -f manifests/prometheus-operator