diff --git a/adhoc-config/prometheus-ingress.yml b/adhoc-config/prometheus-ingress.yml index fcd3f31..d6b97ef 100644 --- a/adhoc-config/prometheus-ingress.yml +++ b/adhoc-config/prometheus-ingress.yml @@ -2,6 +2,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: prometheus-operator-ingress + namespace: default annotations: kubernetes.io/ingress.class: "nginx" kubernetes.io/tls-acme: "true" diff --git a/adhoc-config/prometheus-service-account.yaml b/adhoc-config/prometheus-service-account.yaml deleted file mode 100644 index 1061b3b..0000000 --- a/adhoc-config/prometheus-service-account.yaml +++ /dev/null @@ -1,39 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: prometheus - ---- - -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: prometheus -rules: - - apiGroups: [""] - resources: - - nodes - - nodes/metrics - - services - - endpoints - - pods - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: - - configmaps - verbs: ["get"] - - nonResourceURLs: ["/metrics"] - verbs: ["get"] ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - name: prometheus -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: prometheus -subjects: -- kind: ServiceAccount - name: prometheus - namespace: default