kube-prometheus: add RBAC resources
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user