diff --git a/incubator/service-level-operator/Chart.yaml b/incubator/service-level-operator/Chart.yaml index 4b8a46ce..35ed124a 100644 --- a/incubator/service-level-operator/Chart.yaml +++ b/incubator/service-level-operator/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 description: Service level operator abstracts and automates the service level of Kubernetes applications by generation SLI & SLOs to be consumed easily by dashboards and alerts and allow that the SLI/SLO's live with the application flow. name: service-level-operator -version: 0.1.0 -appVersion: "v0.2.0" +version: 0.1.1 +appVersion: "v0.3.0" home: https://github.com/spotahome/service-level-operator sources: - https://github.com/spotahome/service-level-operator diff --git a/incubator/service-level-operator/templates/clusterrolebinding.yaml b/incubator/service-level-operator/templates/clusterrolebinding.yaml index 8e914fd0..fc780d55 100644 --- a/incubator/service-level-operator/templates/clusterrolebinding.yaml +++ b/incubator/service-level-operator/templates/clusterrolebinding.yaml @@ -5,7 +5,7 @@ metadata: subjects: - kind: ServiceAccount name: {{ include "service-operator.name" . }} - namespace: monitoring + namespace: {{ .Release.Namespace }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole diff --git a/incubator/service-level-operator/templates/servicemonitor.yaml b/incubator/service-level-operator/templates/servicemonitor.yaml index 623147fe..0341b857 100644 --- a/incubator/service-level-operator/templates/servicemonitor.yaml +++ b/incubator/service-level-operator/templates/servicemonitor.yaml @@ -13,7 +13,7 @@ spec: component: app namespaceSelector: matchNames: - - monitoring + - {{ .Release.Namespace }} endpoints: - port: http - interval: 10s + interval: {{ .Values.serviceMonitor.interval }} diff --git a/incubator/service-level-operator/values.yaml b/incubator/service-level-operator/values.yaml index ea38e221..06df0175 100644 --- a/incubator/service-level-operator/values.yaml +++ b/incubator/service-level-operator/values.yaml @@ -7,7 +7,7 @@ replicaCount: 1 ## Set default image, imageTag, and imagePullPolicy. image: repository: quay.io/spotahome/service-level-operator - tag: "v0.2.0" + tag: "v0.3.0" pullPolicy: "IfNotPresent" readinessProbe: httpGet: @@ -24,4 +24,6 @@ resources: requests: cpu: 120m memory: 128Mi -prometheus: prometheus-operator-prometheus \ No newline at end of file +prometheus: prometheus-operator-prometheus +serviceMonitor: + interval: 10s