From: Srivahni Date: Fri, 8 Mar 2019 18:29:07 +0000 (-0800) Subject: Remove redundant directories X-Git-Tag: 1.4.0~56 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=demo.git;a=commitdiff_plain;h=6d7c9539bb348af48f6c3d109c46f6f22d927be0 Remove redundant directories Change-Id: I0b39b22d0cf4dba0c1bee6b142b95b78e697b569 Issue-ID: ONAPARC-393 Signed-off-by: Srivahni Chivukula --- diff --git a/vnfs/DAaaS/collectd-helm/.helmignore b/vnfs/DAaaS/collectd-helm/.helmignore deleted file mode 100644 index f0c13194..00000000 --- a/vnfs/DAaaS/collectd-helm/.helmignore +++ /dev/null @@ -1,21 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj diff --git a/vnfs/DAaaS/collectd-helm/Chart.yaml b/vnfs/DAaaS/collectd-helm/Chart.yaml deleted file mode 100644 index 2206284c..00000000 --- a/vnfs/DAaaS/collectd-helm/Chart.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 2018 Intel Corporation, Inc -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -apiVersion: v1 -appVersion: "0.1.0" -description: Collectd Helm Chart -name: collectd -version: 0.1.0 diff --git a/vnfs/DAaaS/collectd-helm/templates/NOTES.txt b/vnfs/DAaaS/collectd-helm/templates/NOTES.txt deleted file mode 100644 index d96bc7d2..00000000 --- a/vnfs/DAaaS/collectd-helm/templates/NOTES.txt +++ /dev/null @@ -1,2 +0,0 @@ -1. Collect Charts has been installed -2. Collectd prometheus metrics endpoint {{ .Values.collectd_prometheus.service.port}} diff --git a/vnfs/DAaaS/collectd-helm/templates/_helpers.tpl b/vnfs/DAaaS/collectd-helm/templates/_helpers.tpl deleted file mode 100644 index b5e98086..00000000 --- a/vnfs/DAaaS/collectd-helm/templates/_helpers.tpl +++ /dev/null @@ -1,25 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -*/}} -{{- define "fullname" -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* Workaround for https://github.com/helm/helm/issues/3117 */}} -{{- define "rangeskipempty" -}} -{{- range $key, $value := . }} -{{- if $value }} -{{ $key }}: {{ $value }} -{{- end }} -{{- end }} -{{- end }} \ No newline at end of file diff --git a/vnfs/DAaaS/collectd-helm/templates/configmap.yaml b/vnfs/DAaaS/collectd-helm/templates/configmap.yaml deleted file mode 100644 index 2f8b4527..00000000 --- a/vnfs/DAaaS/collectd-helm/templates/configmap.yaml +++ /dev/null @@ -1,71 +0,0 @@ -{{/* -# Copyright 2018 Intel Corporation, Inc -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -*/}} - -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ template "fullname" . }}-config - labels: - app: {{ template "name" . }} - chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} -data: - node-collectd.conf: |- - FQDNLookup false - - LoadPlugin cpu - LoadPlugin memory - LoadPlugin cpufreq - LoadPlugin disk - LoadPlugin ethstat - LoadPlugin ipc - LoadPlugin ipmi - LoadPlugin load - LoadPlugin numa - LoadPlugin processes - LoadPlugin df - LoadPlugin turbostat - LoadPlugin uptime - LoadPlugin contextswitch - LoadPlugin irq - LoadPlugin df - LoadPlugin swap - LoadPlugin write_prometheus - - LoadPlugin logfile - - LogLevel info - File "/var/log/collectd.log" - Timestamp true - PrintSeverity false - - - Interval 5 - ReportByState false - ReportByCpu false - - - - Interval 30 - ValuesAbsolute false - ValuesPercentage true - - - - Port "{{ .Values.prometheus_port }}" - - - #Last line (collectd requires ‘\n’ at the last line) diff --git a/vnfs/DAaaS/collectd-helm/templates/daemonset.yaml b/vnfs/DAaaS/collectd-helm/templates/daemonset.yaml deleted file mode 100644 index 4b98b808..00000000 --- a/vnfs/DAaaS/collectd-helm/templates/daemonset.yaml +++ /dev/null @@ -1,79 +0,0 @@ -{{/* -# Copyright 2018 Intel Corporation, Inc -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -*/}} - -apiVersion: extensions/v1beta1 -kind: DaemonSet -metadata: - name: {{ template "fullname" . }} - labels: - app: {{ template "name" . }} - chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ .Release.Name }} -spec: - replicas: {{ .Values.replicaCount }} - template: - metadata: - labels: - app: {{ template "name" . }} - collector: collectd - release: {{ .Release.Name }} - spec: - hostNetwork: true - containers: - - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - securityContext: - privileged: true - volumeMounts: - - name: {{ template "fullname" . }}-config - mountPath: /opt/collectd/etc - - name: proc - mountPath: /mnt/proc - readOnly: true - - name: root - mountPath: /hostfs - readOnly: true - - name: etc - mountPath: /mnt/etc - readOnly: true - - name: run - mountPath: /var/run/docker.sock - resources: -{{ toYaml .Values.resources | indent 12 }} - {{- if .Values.nodeSelector }} - nodeSelector: -{{ toYaml .Values.nodeSelector | indent 8 }} - {{- end }} - volumes: - - name: {{ template "fullname" . }}-config - configMap: - name: {{ template "fullname" . }}-config - items: - - key: node-collectd.conf - path: collectd.conf - - name: proc - hostPath: - path: /proc - - name: root - hostPath: - path: / - - name: etc - hostPath: - path: /etc - - name: run - hostPath: - path: /var/run/docker.sock \ No newline at end of file diff --git a/vnfs/DAaaS/collectd-helm/templates/service.yaml b/vnfs/DAaaS/collectd-helm/templates/service.yaml deleted file mode 100644 index b4231af3..00000000 --- a/vnfs/DAaaS/collectd-helm/templates/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: collectd-prometheus-metrics-endpoint - labels: - app: collectd - collector: collectd -spec: - ports: - - name: collectd-prometheus - port: {{ .Values.collectd_prometheus.service.port }} - protocol: TCP - targetPort: {{ .Values.collectd_prometheus.service.targetPort }} - selector: -{{ include "rangeskipempty" .Values.collectd_prometheus.service.selector | indent 4 }} - type: ClusterIP \ No newline at end of file diff --git a/vnfs/DAaaS/collectd-helm/values.yaml b/vnfs/DAaaS/collectd-helm/values.yaml deleted file mode 100644 index 7c2eb669..00000000 --- a/vnfs/DAaaS/collectd-helm/values.yaml +++ /dev/null @@ -1,26 +0,0 @@ -# Default values for collectd. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. -namespace: default -image: - repository: opnfv/barometer-collectd - tag: latest - pullPolicy: IfNotPresent -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi -collectd_prometheus: - service: - port: 9103 - targetPort: 9103 - selector: - app: collectd - collector: collectd diff --git a/vnfs/DAaaS/kafka-config/.helmignore b/vnfs/DAaaS/kafka-config/.helmignore deleted file mode 100644 index 50af0317..00000000 --- a/vnfs/DAaaS/kafka-config/.helmignore +++ /dev/null @@ -1,22 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/vnfs/DAaaS/kafka-config/Chart.yaml b/vnfs/DAaaS/kafka-config/Chart.yaml deleted file mode 100644 index dd6f2b4e..00000000 --- a/vnfs/DAaaS/kafka-config/Chart.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -appVersion: "1.0" -description: A Helm chart for Kubernetes -name: kafka-config -version: 0.1.0 diff --git a/vnfs/DAaaS/kafka-config/templates/topic.yaml b/vnfs/DAaaS/kafka-config/templates/topic.yaml deleted file mode 100644 index 780ed32f..00000000 --- a/vnfs/DAaaS/kafka-config/templates/topic.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: kafka.strimzi.io/v1alpha1 -kind: KafkaTopic -metadata: - name: {{ .Values.topic.name }} - labels: - strimzi.io/cluster: {{ .Values.topic.cluster }} - annotations: - "helm.sh/hook": "post-install" -spec: - partitions: {{ .Values.topic.partitions }} - replicas: {{ .Values.topic.replicas }} diff --git a/vnfs/DAaaS/kafka-config/values.yaml b/vnfs/DAaaS/kafka-config/values.yaml deleted file mode 100644 index e877085c..00000000 --- a/vnfs/DAaaS/kafka-config/values.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Default values for kafka. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -namespace: kafka -topic: - name: orders - cluster: my-cluster - partitions: 10 - replicas: 2 \ No newline at end of file diff --git a/vnfs/DAaaS/kafka/.helmignore b/vnfs/DAaaS/kafka/.helmignore deleted file mode 100644 index 50af0317..00000000 --- a/vnfs/DAaaS/kafka/.helmignore +++ /dev/null @@ -1,22 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/vnfs/DAaaS/kafka/Chart.yaml b/vnfs/DAaaS/kafka/Chart.yaml deleted file mode 100644 index b0558bb8..00000000 --- a/vnfs/DAaaS/kafka/Chart.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -appVersion: "1.0" -description: Helm chart for kafka operator -name: kafka -version: 0.1.0 diff --git a/vnfs/DAaaS/kafka/templates/kafka-cluster.yaml b/vnfs/DAaaS/kafka/templates/kafka-cluster.yaml deleted file mode 100644 index 16198c82..00000000 --- a/vnfs/DAaaS/kafka/templates/kafka-cluster.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: kafka.strimzi.io/v1alpha1 -kind: Kafka -metadata: - name: {{ .Values.cluster_name }} -spec: - kafka: - replicas: 3 - listeners: - plain: {} - tls: {} - config: - offsets.topic.replication.factor: 3 - transaction.state.log.replication.factor: 3 - transaction.state.log.min.isr: 2 - storage: - type: persistent-claim - size: 1Gi - deleteClaim: false - zookeeper: - replicas: 3 - storage: - type: persistent-claim - size: 1Gi - deleteClaim: false - entityOperator: - topicOperator: {} - userOperator: {} - diff --git a/vnfs/DAaaS/kafka/templates/kafka-test-client.yaml b/vnfs/DAaaS/kafka/templates/kafka-test-client.yaml deleted file mode 100644 index 00553e5a..00000000 --- a/vnfs/DAaaS/kafka/templates/kafka-test-client.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: kafka-test-client - namespace: {{ .Values.namespace}} -spec: - containers: - - command: - - sh - - -c - - exec tail -f /dev/null - image: confluentinc/cp-kafka:4.1.2-2 - imagePullPolicy: IfNotPresent - name: kafka - resources: {} - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File \ No newline at end of file diff --git a/vnfs/DAaaS/kafka/templates/strimzi-cluster-operator-0.9.0.yaml b/vnfs/DAaaS/kafka/templates/strimzi-cluster-operator-0.9.0.yaml deleted file mode 100644 index 0419b59b..00000000 --- a/vnfs/DAaaS/kafka/templates/strimzi-cluster-operator-0.9.0.yaml +++ /dev/null @@ -1,3315 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - name: kafkas.kafka.strimzi.io - labels: - app: strimzi - annotations: - "helm.sh/hook": "crd-install" -spec: - group: kafka.strimzi.io - version: v1alpha1 - scope: Namespaced - names: - kind: Kafka - listKind: KafkaList - singular: kafka - plural: kafkas - shortNames: - - k - validation: - openAPIV3Schema: - properties: - spec: - type: object - properties: - kafka: - type: object - properties: - replicas: - type: integer - minimum: 1 - image: - type: string - storage: - type: object - properties: - class: - type: string - deleteClaim: - type: boolean - selector: - type: object - size: - type: string - type: - type: string - enum: - - ephemeral - - persistent-claim - required: - - type - listeners: - type: object - properties: - plain: - type: object - properties: - authentication: - type: object - properties: - type: - type: string - enum: - - tls - - scram-sha-512 - required: - - type - tls: - type: object - properties: - authentication: - type: object - properties: - type: - type: string - enum: - - tls - - scram-sha-512 - required: - - type - external: - type: object - properties: - authentication: - type: object - properties: - type: - type: string - enum: - - tls - - scram-sha-512 - required: - - type - tls: - type: boolean - type: - type: string - enum: - - route - - loadbalancer - - nodeport - required: - - type - authorization: - type: object - properties: - superUsers: - type: array - items: - type: string - type: - type: string - enum: - - simple - required: - - type - config: - type: object - rack: - type: object - properties: - topologyKey: - type: string - example: failure-domain.beta.kubernetes.io/zone - required: - - topologyKey - brokerRackInitImage: - type: string - affinity: - type: object - properties: - nodeAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - preference: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: object - properties: - nodeSelectorTerms: - type: array - items: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - podAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - podAntiAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - tolerations: - type: array - items: - type: object - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - type: integer - value: - type: string - livenessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - readinessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - jvmOptions: - type: object - properties: - -XX: - type: object - -Xms: - type: string - pattern: '[0-9]+[mMgG]?' - -Xmx: - type: string - pattern: '[0-9]+[mMgG]?' - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - metrics: - type: object - logging: - type: object - properties: - loggers: - type: object - name: - type: string - type: - type: string - enum: - - inline - - external - required: - - type - tlsSidecar: - type: object - properties: - image: - type: string - livenessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - logLevel: - type: string - enum: - - emerg - - alert - - crit - - err - - warning - - notice - - info - - debug - readinessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - template: - type: object - properties: - statefulset: - type: object - properties: {} - pod: - type: object - properties: {} - bootstrapService: - type: object - properties: {} - brokersService: - type: object - properties: {} - externalBootstrapRoute: - type: object - properties: {} - externalBootstrapService: - type: object - properties: {} - perPodRoute: - type: object - properties: {} - perPodService: - type: object - properties: {} - required: - - replicas - - storage - - listeners - zookeeper: - type: object - properties: - replicas: - type: integer - minimum: 1 - image: - type: string - storage: - type: object - properties: - class: - type: string - deleteClaim: - type: boolean - selector: - type: object - size: - type: string - type: - type: string - enum: - - ephemeral - - persistent-claim - required: - - type - config: - type: object - affinity: - type: object - properties: - nodeAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - preference: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: object - properties: - nodeSelectorTerms: - type: array - items: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - podAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - podAntiAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - tolerations: - type: array - items: - type: object - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - type: integer - value: - type: string - livenessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - readinessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - jvmOptions: - type: object - properties: - -XX: - type: object - -Xms: - type: string - pattern: '[0-9]+[mMgG]?' - -Xmx: - type: string - pattern: '[0-9]+[mMgG]?' - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - metrics: - type: object - logging: - type: object - properties: - loggers: - type: object - name: - type: string - type: - type: string - enum: - - inline - - external - required: - - type - tlsSidecar: - type: object - properties: - image: - type: string - livenessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - logLevel: - type: string - enum: - - emerg - - alert - - crit - - err - - warning - - notice - - info - - debug - readinessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - template: - type: object - properties: - statefulset: - type: object - properties: {} - pod: - type: object - properties: {} - clientService: - type: object - properties: {} - nodesService: - type: object - properties: {} - required: - - replicas - - storage - topicOperator: - type: object - properties: - watchedNamespace: - type: string - image: - type: string - reconciliationIntervalSeconds: - type: integer - minimum: 0 - zookeeperSessionTimeoutSeconds: - type: integer - minimum: 0 - affinity: - type: object - properties: - nodeAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - preference: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: object - properties: - nodeSelectorTerms: - type: array - items: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - podAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - podAntiAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - topicMetadataMaxAttempts: - type: integer - minimum: 0 - tlsSidecar: - type: object - properties: - image: - type: string - livenessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - logLevel: - type: string - enum: - - emerg - - alert - - crit - - err - - warning - - notice - - info - - debug - readinessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - logging: - type: object - properties: - loggers: - type: object - name: - type: string - type: - type: string - enum: - - inline - - external - required: - - type - entityOperator: - type: object - properties: - topicOperator: - type: object - properties: - watchedNamespace: - type: string - image: - type: string - reconciliationIntervalSeconds: - type: integer - minimum: 0 - zookeeperSessionTimeoutSeconds: - type: integer - minimum: 0 - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - topicMetadataMaxAttempts: - type: integer - minimum: 0 - logging: - type: object - properties: - loggers: - type: object - name: - type: string - type: - type: string - enum: - - inline - - external - required: - - type - userOperator: - type: object - properties: - watchedNamespace: - type: string - image: - type: string - reconciliationIntervalSeconds: - type: integer - minimum: 0 - zookeeperSessionTimeoutSeconds: - type: integer - minimum: 0 - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - logging: - type: object - properties: - loggers: - type: object - name: - type: string - type: - type: string - enum: - - inline - - external - required: - - type - affinity: - type: object - properties: - nodeAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - preference: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: object - properties: - nodeSelectorTerms: - type: array - items: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - podAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - podAntiAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - tolerations: - type: array - items: - type: object - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - type: integer - value: - type: string - tlsSidecar: - type: object - properties: - image: - type: string - livenessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - logLevel: - type: string - enum: - - emerg - - alert - - crit - - err - - warning - - notice - - info - - debug - readinessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - template: - type: object - properties: - deployment: - type: object - properties: {} - pod: - type: object - properties: {} - clusterCa: - type: object - properties: - generateCertificateAuthority: - type: boolean - validityDays: - type: integer - minimum: 1 - renewalDays: - type: integer - minimum: 1 - clientsCa: - type: object - properties: - generateCertificateAuthority: - type: boolean - validityDays: - type: integer - minimum: 1 - renewalDays: - type: integer - minimum: 1 - maintenanceTimeWindows: - type: array - items: - type: string - required: - - kafka - - zookeeper - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: RoleBinding -metadata: - name: strimzi-cluster-operator-entity-operator-delegation - labels: - app: strimzi -subjects: -- kind: ServiceAccount - name: strimzi-cluster-operator - namespace: {{ .Values.namespace }} -roleRef: - kind: ClusterRole - name: strimzi-entity-operator - apiGroup: rbac.authorization.k8s.io - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - name: strimzi-cluster-operator - labels: - app: strimzi -subjects: -- kind: ServiceAccount - name: strimzi-cluster-operator - namespace: {{ .Values.namespace }} -roleRef: - kind: ClusterRole - name: strimzi-cluster-operator-global - apiGroup: rbac.authorization.k8s.io - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: RoleBinding -metadata: - name: strimzi-cluster-operator-topic-operator-delegation - labels: - app: strimzi -subjects: -- kind: ServiceAccount - name: strimzi-cluster-operator - namespace: {{ .Values.namespace }} -roleRef: - kind: ClusterRole - name: strimzi-topic-operator - apiGroup: rbac.authorization.k8s.io - ---- -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - name: kafkausers.kafka.strimzi.io - labels: - app: strimzi - annotations: - "helm.sh/hook": "crd-install" -spec: - group: kafka.strimzi.io - version: v1alpha1 - scope: Namespaced - names: - kind: KafkaUser - listKind: KafkaUserList - singular: kafkauser - plural: kafkausers - shortNames: - - ku - validation: - openAPIV3Schema: - properties: - spec: - type: object - properties: - authentication: - type: object - properties: - type: - type: string - enum: - - tls - - scram-sha-512 - required: - - type - authorization: - type: object - properties: - acls: - type: array - items: - type: object - properties: - host: - type: string - operation: - type: string - enum: - - Read - - Write - - Create - - Delete - - Alter - - Describe - - ClusterAction - - AlterConfigs - - DescribeConfigs - - IdempotentWrite - - All - resource: - type: object - properties: - name: - type: string - patternType: - type: string - enum: - - literal - - prefix - type: - type: string - enum: - - topic - - group - - cluster - - transactionalId - required: - - type - type: - type: string - enum: - - allow - - deny - required: - - operation - - resource - type: - type: string - enum: - - simple - required: - - acls - - type - required: - - authentication - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: strimzi-entity-operator - labels: - app: strimzi -rules: -- apiGroups: - - kafka.strimzi.io - resources: - - kafkatopics - verbs: - - get - - list - - watch - - create - - patch - - update - - delete -- apiGroups: - - "" - resources: - - events - verbs: - - create -- apiGroups: - - kafka.strimzi.io - resources: - - kafkausers - verbs: - - get - - list - - watch - - create - - patch - - update - - delete -- apiGroups: - - "" - resources: - - secrets - verbs: - - get - - list - - create - - patch - - update - - delete - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: strimzi-cluster-operator-global - labels: - app: strimzi -rules: -- apiGroups: - - rbac.authorization.k8s.io - resources: - - clusterrolebindings - verbs: - - get - - create - - delete - - patch - - update - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRoleBinding -metadata: - name: strimzi-cluster-operator-kafka-broker-delegation - labels: - app: strimzi -subjects: -- kind: ServiceAccount - name: strimzi-cluster-operator - namespace: {{ .Values.namespace }} -roleRef: - kind: ClusterRole - name: strimzi-kafka-broker - apiGroup: rbac.authorization.k8s.io - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: RoleBinding -metadata: - name: strimzi-cluster-operator - labels: - app: strimzi -subjects: -- kind: ServiceAccount - name: strimzi-cluster-operator - namespace: {{ .Values.namespace }} -roleRef: - kind: ClusterRole - name: strimzi-cluster-operator-namespaced - apiGroup: rbac.authorization.k8s.io - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: strimzi-cluster-operator-namespaced - labels: - app: strimzi -rules: -- apiGroups: - - "" - resources: - - serviceaccounts - verbs: - - get - - create - - delete - - patch - - update -- apiGroups: - - rbac.authorization.k8s.io - resources: - - rolebindings - verbs: - - get - - create - - delete - - patch - - update -- apiGroups: - - "" - resources: - - configmaps - verbs: - - get - - list - - watch - - create - - delete - - patch - - update -- apiGroups: - - kafka.strimzi.io - resources: - - kafkas - - kafkaconnects - - kafkaconnects2is - - kafkamirrormakers - verbs: - - get - - list - - watch - - create - - delete - - patch - - update -- apiGroups: - - "" - resources: - - pods - verbs: - - get - - list - - watch - - delete -- apiGroups: - - "" - resources: - - services - verbs: - - get - - list - - watch - - create - - delete - - patch - - update -- apiGroups: - - "" - resources: - - endpoints - verbs: - - get - - list - - watch -- apiGroups: - - extensions - resources: - - deployments - - deployments/scale - - replicasets - verbs: - - get - - list - - watch - - create - - delete - - patch - - update -- apiGroups: - - apps - resources: - - deployments - - deployments/scale - - deployments/status - - statefulsets - verbs: - - get - - list - - watch - - create - - delete - - patch - - update -- apiGroups: - - "" - resources: - - events - verbs: - - create -- apiGroups: - - extensions - resources: - - replicationcontrollers - verbs: - - get - - list - - watch - - create - - delete - - patch - - update -- apiGroups: - - apps.openshift.io - resources: - - deploymentconfigs - - deploymentconfigs/scale - - deploymentconfigs/status - - deploymentconfigs/finalizers - verbs: - - get - - list - - watch - - create - - delete - - patch - - update -- apiGroups: - - build.openshift.io - resources: - - buildconfigs - - builds - verbs: - - create - - delete - - get - - list - - patch - - watch - - update -- apiGroups: - - image.openshift.io - resources: - - imagestreams - - imagestreams/status - verbs: - - create - - delete - - get - - list - - watch - - patch - - update -- apiGroups: - - "" - resources: - - replicationcontrollers - verbs: - - get - - list - - watch - - create - - delete - - patch - - update -- apiGroups: - - "" - resources: - - secrets - verbs: - - get - - list - - create - - delete - - patch - - update -- apiGroups: - - extensions - resources: - - networkpolicies - verbs: - - get - - list - - watch - - create - - delete - - patch - - update -- apiGroups: - - route.openshift.io - resources: - - routes - verbs: - - get - - list - - create - - delete - - patch - - update -- apiGroups: - - "" - resources: - - persistentvolumeclaims - verbs: - - get - - list - - create - - delete - - patch - - update - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: strimzi-topic-operator - labels: - app: strimzi -rules: -- apiGroups: - - kafka.strimzi.io - resources: - - kafkatopics - verbs: - - get - - list - - watch - - create - - patch - - update - - delete -- apiGroups: - - "" - resources: - - events - verbs: - - create - ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: strimzi-cluster-operator - labels: - app: strimzi - ---- -apiVersion: rbac.authorization.k8s.io/v1beta1 -kind: ClusterRole -metadata: - name: strimzi-kafka-broker - labels: - app: strimzi -rules: -- apiGroups: - - "" - resources: - - nodes - verbs: - - get - ---- -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - name: kafkatopics.kafka.strimzi.io - labels: - app: strimzi - annotations: - "helm.sh/hook": "crd-install" -spec: - group: kafka.strimzi.io - version: v1alpha1 - scope: Namespaced - names: - kind: KafkaTopic - listKind: KafkaTopicList - singular: kafkatopic - plural: kafkatopics - shortNames: - - kt - validation: - openAPIV3Schema: - properties: - spec: - type: object - properties: - partitions: - type: integer - minimum: 1 - replicas: - type: integer - minimum: 1 - maximum: 32767 - config: - type: object - topicName: - type: string - required: - - partitions - - replicas - ---- -apiVersion: extensions/v1beta1 -kind: Deployment -metadata: - name: strimzi-cluster-operator - labels: - app: strimzi -spec: - replicas: 1 - template: - metadata: - labels: - name: strimzi-cluster-operator - spec: - serviceAccountName: strimzi-cluster-operator - containers: - - name: strimzi-cluster-operator - image: strimzi/cluster-operator:0.9.0 - imagePullPolicy: IfNotPresent - env: - - name: STRIMZI_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: STRIMZI_FULL_RECONCILIATION_INTERVAL_MS - value: "120000" - - name: STRIMZI_OPERATION_TIMEOUT_MS - value: "300000" - - name: STRIMZI_DEFAULT_ZOOKEEPER_IMAGE - value: strimzi/zookeeper:0.9.0 - - name: STRIMZI_DEFAULT_KAFKA_IMAGE - value: strimzi/kafka:0.9.0 - - name: STRIMZI_DEFAULT_KAFKA_CONNECT_IMAGE - value: strimzi/kafka-connect:0.9.0 - - name: STRIMZI_DEFAULT_KAFKA_CONNECT_S2I_IMAGE - value: strimzi/kafka-connect-s2i:0.9.0 - - name: STRIMZI_DEFAULT_KAFKA_MIRRORMAKER_IMAGE - value: strimzi/kafka-mirror-maker:0.9.0 - - name: STRIMZI_DEFAULT_TOPIC_OPERATOR_IMAGE - value: strimzi/topic-operator:0.9.0 - - name: STRIMZI_DEFAULT_USER_OPERATOR_IMAGE - value: strimzi/user-operator:0.9.0 - - name: STRIMZI_DEFAULT_KAFKA_INIT_IMAGE - value: strimzi/kafka-init:0.9.0 - - name: STRIMZI_DEFAULT_TLS_SIDECAR_ZOOKEEPER_IMAGE - value: strimzi/zookeeper-stunnel:0.9.0 - - name: STRIMZI_DEFAULT_TLS_SIDECAR_KAFKA_IMAGE - value: strimzi/kafka-stunnel:0.9.0 - - name: STRIMZI_DEFAULT_TLS_SIDECAR_ENTITY_OPERATOR_IMAGE - value: strimzi/entity-operator-stunnel:0.9.0 - - name: STRIMZI_LOG_LEVEL - value: INFO - livenessProbe: - httpGet: - path: /healthy - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 30 - readinessProbe: - httpGet: - path: /ready - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 30 - resources: - limits: - cpu: 1000m - memory: 256Mi - requests: - cpu: 200m - memory: 256Mi - strategy: - type: Recreate - ---- -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - name: kafkaconnects2is.kafka.strimzi.io - labels: - app: strimzi - annotations: - "helm.sh/hook": "crd-install" -spec: - group: kafka.strimzi.io - version: v1alpha1 - scope: Namespaced - names: - kind: KafkaConnectS2I - listKind: KafkaConnectS2IList - singular: kafkaconnects2i - plural: kafkaconnects2is - shortNames: - - kcs2i - validation: - openAPIV3Schema: - properties: - spec: - type: object - properties: - replicas: - type: integer - image: - type: string - livenessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - readinessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - jvmOptions: - type: object - properties: - -XX: - type: object - -Xms: - type: string - pattern: '[0-9]+[mMgG]?' - -Xmx: - type: string - pattern: '[0-9]+[mMgG]?' - affinity: - type: object - properties: - nodeAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - preference: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: object - properties: - nodeSelectorTerms: - type: array - items: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - podAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - podAntiAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - metrics: - type: object - template: - type: object - properties: - deployment: - type: object - properties: {} - pod: - type: object - properties: {} - apiService: - type: object - properties: {} - authentication: - type: object - properties: - certificateAndKey: - type: object - properties: - certificate: - type: string - key: - type: string - secretName: - type: string - required: - - certificate - - key - - secretName - passwordSecret: - type: object - properties: - password: - type: string - secretName: - type: string - required: - - password - - secretName - type: - type: string - enum: - - tls - - scram-sha-512 - username: - type: string - required: - - type - bootstrapServers: - type: string - config: - type: object - insecureSourceRepository: - type: boolean - logging: - type: object - properties: - loggers: - type: object - name: - type: string - type: - type: string - enum: - - inline - - external - required: - - type - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - tls: - type: object - properties: - trustedCertificates: - type: array - items: - type: object - properties: - certificate: - type: string - secretName: - type: string - required: - - certificate - - secretName - required: - - trustedCertificates - tolerations: - type: array - items: - type: object - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - type: integer - value: - type: string - required: - - bootstrapServers - ---- -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - name: kafkaconnects.kafka.strimzi.io - labels: - app: strimzi - annotations: - "helm.sh/hook": "crd-install" -spec: - group: kafka.strimzi.io - version: v1alpha1 - scope: Namespaced - names: - kind: KafkaConnect - listKind: KafkaConnectList - singular: kafkaconnect - plural: kafkaconnects - shortNames: - - kc - validation: - openAPIV3Schema: - properties: - spec: - type: object - properties: - replicas: - type: integer - image: - type: string - livenessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - readinessProbe: - type: object - properties: - initialDelaySeconds: - type: integer - minimum: 0 - timeoutSeconds: - type: integer - minimum: 0 - jvmOptions: - type: object - properties: - -XX: - type: object - -Xms: - type: string - pattern: '[0-9]+[mMgG]?' - -Xmx: - type: string - pattern: '[0-9]+[mMgG]?' - affinity: - type: object - properties: - nodeAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - preference: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: object - properties: - nodeSelectorTerms: - type: array - items: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - podAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - podAntiAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - tolerations: - type: array - items: - type: object - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - type: integer - value: - type: string - logging: - type: object - properties: - loggers: - type: object - name: - type: string - type: - type: string - enum: - - inline - - external - required: - - type - metrics: - type: object - template: - type: object - properties: - deployment: - type: object - properties: {} - pod: - type: object - properties: {} - apiService: - type: object - properties: {} - authentication: - type: object - properties: - certificateAndKey: - type: object - properties: - certificate: - type: string - key: - type: string - secretName: - type: string - required: - - certificate - - key - - secretName - passwordSecret: - type: object - properties: - password: - type: string - secretName: - type: string - required: - - password - - secretName - type: - type: string - enum: - - tls - - scram-sha-512 - username: - type: string - required: - - type - bootstrapServers: - type: string - config: - type: object - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - tls: - type: object - properties: - trustedCertificates: - type: array - items: - type: object - properties: - certificate: - type: string - secretName: - type: string - required: - - certificate - - secretName - required: - - trustedCertificates - required: - - bootstrapServers - ---- -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - name: kafkamirrormakers.kafka.strimzi.io - labels: - app: strimzi - annotations: - "helm.sh/hook": "crd-install" -spec: - group: kafka.strimzi.io - version: v1alpha1 - scope: Namespaced - names: - kind: KafkaMirrorMaker - listKind: KafkaMirrorMakerList - singular: kafkamirrormaker - plural: kafkamirrormakers - shortNames: - - kmm - validation: - openAPIV3Schema: - properties: - spec: - type: object - properties: - replicas: - type: integer - minimum: 1 - image: - type: string - whitelist: - type: string - consumer: - type: object - properties: - numStreams: - type: integer - minimum: 1 - groupId: - type: string - bootstrapServers: - type: string - authentication: - type: object - properties: - certificateAndKey: - type: object - properties: - certificate: - type: string - key: - type: string - secretName: - type: string - required: - - certificate - - key - - secretName - passwordSecret: - type: object - properties: - password: - type: string - secretName: - type: string - required: - - password - - secretName - type: - type: string - enum: - - tls - - scram-sha-512 - username: - type: string - required: - - type - config: - type: object - tls: - type: object - properties: - trustedCertificates: - type: array - items: - type: object - properties: - certificate: - type: string - secretName: - type: string - required: - - certificate - - secretName - required: - - trustedCertificates - required: - - groupId - - bootstrapServers - producer: - type: object - properties: - bootstrapServers: - type: string - authentication: - type: object - properties: - certificateAndKey: - type: object - properties: - certificate: - type: string - key: - type: string - secretName: - type: string - required: - - certificate - - key - - secretName - passwordSecret: - type: object - properties: - password: - type: string - secretName: - type: string - required: - - password - - secretName - type: - type: string - enum: - - tls - - scram-sha-512 - username: - type: string - required: - - type - config: - type: object - tls: - type: object - properties: - trustedCertificates: - type: array - items: - type: object - properties: - certificate: - type: string - secretName: - type: string - required: - - certificate - - secretName - required: - - trustedCertificates - required: - - bootstrapServers - resources: - type: object - properties: - limits: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - requests: - type: object - properties: - cpu: - type: string - pattern: '[0-9]+m?$' - memory: - type: string - pattern: '[0-9]+([kKmMgGtTpPeE]i?)?$' - affinity: - type: object - properties: - nodeAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - preference: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: object - properties: - nodeSelectorTerms: - type: array - items: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - podAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - podAntiAffinity: - type: object - properties: - preferredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - podAffinityTerm: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - weight: - type: integer - requiredDuringSchedulingIgnoredDuringExecution: - type: array - items: - type: object - properties: - labelSelector: - type: object - properties: - matchExpressions: - type: array - items: - type: object - properties: - key: - type: string - operator: - type: string - values: - type: array - items: - type: string - matchLabels: - type: object - namespaces: - type: array - items: - type: string - topologyKey: - type: string - tolerations: - type: array - items: - type: object - properties: - effect: - type: string - key: - type: string - operator: - type: string - tolerationSeconds: - type: integer - value: - type: string - jvmOptions: - type: object - properties: - -XX: - type: object - -Xms: - type: string - pattern: '[0-9]+[mMgG]?' - -Xmx: - type: string - pattern: '[0-9]+[mMgG]?' - logging: - type: object - properties: - loggers: - type: object - name: - type: string - type: - type: string - enum: - - inline - - external - required: - - type - metrics: - type: object - template: - type: object - properties: - deployment: - type: object - properties: {} - pod: - type: object - properties: {} - required: - - replicas - - whitelist - - consumer - - producer - ---- diff --git a/vnfs/DAaaS/kafka/values.yaml b/vnfs/DAaaS/kafka/values.yaml deleted file mode 100644 index 80954fc0..00000000 --- a/vnfs/DAaaS/kafka/values.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# Default values for kafka. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -namespace: kafka -cluster_name: my-cluster -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little - # resources, such as Minikube. If you do want to specify resources, uncomment the following - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # limits: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi - -nodeSelector: {} - -tolerations: [] - -affinity: {} diff --git a/vnfs/DAaaS/kc/topic.yaml b/vnfs/DAaaS/kc/topic.yaml deleted file mode 100644 index 780ed32f..00000000 --- a/vnfs/DAaaS/kc/topic.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: kafka.strimzi.io/v1alpha1 -kind: KafkaTopic -metadata: - name: {{ .Values.topic.name }} - labels: - strimzi.io/cluster: {{ .Values.topic.cluster }} - annotations: - "helm.sh/hook": "post-install" -spec: - partitions: {{ .Values.topic.partitions }} - replicas: {{ .Values.topic.replicas }} diff --git a/vnfs/DAaaS/kc/values.yaml b/vnfs/DAaaS/kc/values.yaml deleted file mode 100644 index e877085c..00000000 --- a/vnfs/DAaaS/kc/values.yaml +++ /dev/null @@ -1,10 +0,0 @@ -# Default values for kafka. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -namespace: kafka -topic: - name: orders - cluster: my-cluster - partitions: 10 - replicas: 2 \ No newline at end of file diff --git a/vnfs/DAaaS/prometheus-operator/.helmignore b/vnfs/DAaaS/prometheus-operator/.helmignore deleted file mode 100644 index f0c13194..00000000 --- a/vnfs/DAaaS/prometheus-operator/.helmignore +++ /dev/null @@ -1,21 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj diff --git a/vnfs/DAaaS/prometheus-operator/Chart.yaml b/vnfs/DAaaS/prometheus-operator/Chart.yaml deleted file mode 100644 index c560114a..00000000 --- a/vnfs/DAaaS/prometheus-operator/Chart.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -description: Provides easy monitoring definitions for Kubernetes services, and deployment and management of Prometheus instances. -icon: https://raw.githubusercontent.com/prometheus/prometheus.github.io/master/assets/prometheus_logo-cb55bb5c346.png -engine: gotpl -maintainers: - - name: gianrubio - email: gianrubio@gmail.com -name: prometheus-operator -sources: - - https://github.com/coreos/prometheus-operator - - https://coreos.com/operators/prometheus -version: 1.8.0 -appVersion: 0.26.0 -home: https://github.com/coreos/prometheus-operator -keywords: -- operator -- prometheus diff --git a/vnfs/DAaaS/prometheus-operator/README.md b/vnfs/DAaaS/prometheus-operator/README.md deleted file mode 100644 index 914b67d6..00000000 --- a/vnfs/DAaaS/prometheus-operator/README.md +++ /dev/null @@ -1,305 +0,0 @@ -# prometheus-operator - -Installs [prometheus-operator](https://github.com/coreos/prometheus-operator) to create/configure/manage Prometheus clusters atop Kubernetes. - -## TL;DR; - -```console -$ helm install stable/prometheus-operator -``` - -## Introduction - -This chart bootstraps a [prometheus-operator](https://github.com/coreos/prometheus-operator) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. The chart can be installed multiple times to create separate Prometheus instances managed by Prometheus Operator. - -## Prerequisites - - Kubernetes 1.10+ with Beta APIs - - Helm 2.10+ (For a workaround using an earlier version see [below](#helm-210-workaround)) - -## Installing the Chart - -To install the chart with the release name `my-release`: - -```console -$ helm install --name my-release stable/prometheus-operator -``` - -The command deploys prometheus-operator on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation. - -The default installation includes Prometheus Operator, Alertmanager, Grafana, and configuration for scraping Kubernetes infrastructure. - -## Uninstalling the Chart - -To uninstall/delete the `my-release` deployment: - -```console -$ helm delete my-release -``` - -The command removes all the Kubernetes components associated with the chart and deletes the release. - -CRDs created by this chart are not removed by default and should be manually cleaned up: - -``` -kubectl delete crd prometheuses.monitoring.coreos.com -kubectl delete crd prometheusrules.monitoring.coreos.com -kubectl delete crd servicemonitors.monitoring.coreos.com -kubectl delete crd alertmanagers.monitoring.coreos.com -``` - -## Configuration - -The following tables lists the configurable parameters of the prometheus-operator chart and their default values. - -### General -| Parameter | Description | Default | -| ----- | ----------- | ------ | -| `nameOverride` | Provide a name in place of `prometheus-operator` |`""`| -| `fullNameOverride` | Provide a name to substitute for the full names of resources |`""`| -| `commonLabels` | Labels to apply to all resources | `[]` | -| `defaultRules.create` | Create default rules for monitoring the cluster | `true` | -| `defaultRules.labels` | Labels for default rules for monitoring the cluster | `{}` | -| `defaultRules.annotations` | Annotations for default rules for monitoring the cluster | `{}` | -| `global.rbac.create` | Create RBAC resources | `true` | -| `global.rbac.pspEnabled` | Create pod security policy resources | `true` | -| `global.imagePullSecrets` | Reference to one or more secrets to be used when pulling images | `[]` | - -### Prometheus Operator -| Parameter | Description | Default | -| ----- | ----------- | ------ | -| `prometheusOperator.enabled` | Deploy Prometheus Operator. Only one of these should be deployed into the cluster | `true` | -| `prometheusOperator.serviceAccount` | Create a serviceaccount for the operator | `true` | -| `prometheusOperator.name` | Operator serviceAccount name | `""` | -| `prometheusOperator.createCustomResource` | Create CRDs. Required if deploying anything besides the operator itself as part of the release. The operator will create / update these on startup. If your Helm version < 2.10 you will have to either create the CRDs first or deploy the operator first, then the rest of the resources | `true` | -| `prometheusOperator.crdApiGroup` | Specify the API Group for the CustomResourceDefinitions | `monitoring.coreos.com` | -| `prometheusOperator.cleanupCustomResource` | Attempt to delete CRDs when the release is removed. This option may be useful while testing but is not recommended, as deleting the CRD definition will delete resources and prevent the operator from being able to clean up resources that it manages | `false` | -| `prometheusOperator.podLabels` | Labels to add to the operator pod | `{}` | -| `prometheusOperator.priorityClassName` | Name of Priority Class to assign pods | `nil` | -| `prometheusOperator.kubeletService.enabled` | If true, the operator will create and maintain a service for scraping kubelets | `true` | -| `prometheusOperator.kubeletService.namespace` | Namespace to deploy kubelet service | `kube-system` | -| `prometheusOperator.serviceMonitor.selfMonitor` | Enable monitoring of prometheus operator | `true` | -| `prometheusOperator.service.type` | Prometheus operator service type | `ClusterIP` | -| `prometheusOperator.service.clusterIP` | Prometheus operator service clusterIP IP | `""` | -| `prometheusOperator.service.nodePort` | Port to expose prometheus operator service on each node | `38080` | -| `prometheusOperator.service.annotations` | Annotations to be added to the prometheus operator service | `{}` | -| `prometheusOperator.service.labels` | Prometheus Operator Service Labels | `{}` | -| `prometheusOperator.service.externalIPs` | List of IP addresses at which the Prometheus Operator server service is available | `[]` | -| `prometheusOperator.service.loadBalancerIP` | Prometheus Operator Loadbalancer IP | `""` | -| `prometheusOperator.service.loadBalancerSourceRanges` | Prometheus Operator Load Balancer Source Ranges | `[]` | -| `prometheusOperator.resources` | Resource limits for prometheus operator | `{}` | -| `prometheusOperator.securityContext` | SecurityContext for prometheus operator | `{"runAsNonRoot": true, "runAsUser": 65534}` | -| `prometheusOperator.nodeSelector` | Prometheus operator node selector https://kubernetes.io/docs/user-guide/node-selection/ | `{}` | -| `prometheusOperator.tolerations` | Tolerations for use with node taints https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ | `[]` | -| `prometheusOperator.affinity` | Assign the prometheus operator to run on specific nodes https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | `{}` | -| `prometheusOperator.image.repository` | Repository for prometheus operator image | `quay.io/coreos/prometheus-operator` | -| `prometheusOperator.image.tag` | Tag for prometheus operator image | `v0.26.0` | -| `prometheusOperator.image.pullPolicy` | Pull policy for prometheus operator image | `IfNotPresent` | -| `prometheusOperator.configmapReloadImage.repository` | Repository for configmapReload image | `quay.io/coreos/configmap-reload` | -| `prometheusOperator.configmapReloadImage.tag` | Tag for configmapReload image | `v0.0.1` | -| `prometheusOperator.prometheusConfigReloaderImage.repository` | Repository for config-reloader image | `quay.io/coreos/prometheus-config-reloader` | -| `prometheusOperator.prometheusConfigReloaderImage.tag` | Tag for config-reloader image | `v0.26.0` | -| `prometheusOperator.hyperkubeImage.repository` | Repository for hyperkube image used to perform maintenance tasks | `k8s.gcr.io/hyperkube` | -| `prometheusOperator.hyperkubeImage.tag` | Tag for hyperkube image used to perform maintenance tasks | `v1.12.1` | -| `prometheusOperator.hyperkubeImage.repository` | Image pull policy for hyperkube image used to perform maintenance tasks | `IfNotPresent` | - -### Prometheus -| Parameter | Description | Default | -| ----- | ----------- | ------ | -| `prometheus.enabled` | Deploy prometheus | `true` | -| `prometheus.serviceMonitor.selfMonitor` | Create a `serviceMonitor` to automatically monitor the prometheus instance | `true` | -| `prometheus.serviceAccount.create` | Create a default serviceaccount for prometheus to use | `true` | -| `prometheus.serviceAccount.name` | Name for prometheus serviceaccount | `""` | -| `prometheus.rbac.roleNamespaces` | Create role bindings in the specified namespaces, to allow Prometheus monitoring a role binding in the release namespace will always be created. | `["kube-system"]` | -| `prometheus.podDisruptionBudget.enabled` | If true, create a pod disruption budget for prometheus pods. The created resource cannot be modified once created - it must be deleted to perform a change | `true` | -| `prometheus.podDisruptionBudget.minAvailable` | Minimum number / percentage of pods that should remain scheduled | `1` | -| `prometheus.podDisruptionBudget.maxUnavailable` | Maximum number / percentage of pods that may be made unavailable | `""` | -| `prometheus.ingress.enabled` | If true, Prometheus Ingress will be created | `false` | -| `prometheus.ingress.annotations` | Prometheus Ingress annotations | `{}` | -| `prometheus.ingress.labels` | Prometheus Ingress additional labels | `{}` | -| `prometheus.ingress.hosts` | Prometheus Ingress hostnames | `[]` | -| `prometheus.ingress.tls` | Prometheus Ingress TLS configuration (YAML) | `[]` | -| `prometheus.service.type` | Prometheus Service type | `ClusterIP` | -| `prometheus.service.clusterIP` | Prometheus service clusterIP IP | `""` | -| `prometheus.service.nodePort` | Prometheus Service port for NodePort service type | `39090` | -| `prometheus.service.annotations` | Prometheus Service Annotations | `{}` | -| `prometheus.service.labels` | Prometheus Service Labels | `{}` | -| `prometheus.service.externalIPs` | List of IP addresses at which the Prometheus server service is available | `[]` | -| `prometheus.service.loadBalancerIP` | Prometheus Loadbalancer IP | `""` | -| `prometheus.service.loadBalancerSourceRanges` | Prometheus Load Balancer Source Ranges | `[]` | -| `prometheus.additionalServiceMonitors` | List of `serviceMonitor` objects to create. See https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#servicemonitorspec | `[]` | -| `prometheus.prometheusSpec.podMetadata` | Standard object’s metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#metadata Metadata Labels and Annotations gets propagated to the prometheus pods. | `{}` | -| `prometheus.prometheusSpec.serviceMonitorSelectorNilUsesHelmValues` | If true, a nil or {} value for prometheus.prometheusSpec.serviceMonitorSelector will cause the prometheus resource to be created with selectors based on values in the helm deployment, which will also match the servicemonitors created | `true` | -| `prometheus.prometheusSpec.serviceMonitorSelector` | ServiceMonitors to be selected for target discovery. | `{}` | -| `prometheus.prometheusSpec.serviceMonitorNamespaceSelector` | Namespaces to be selected for ServiceMonitor discovery. If nil, only check own namespace. | `{}` | -| `prometheus.prometheusSpec.image.repository` | Base image to use for a Prometheus deployment. | `quay.io/prometheus/prometheus` | -| `prometheus.prometheusSpec.image.tag` | Tag of Prometheus container image to be deployed. | `v2.5.0` | -| `prometheus.prometheusSpec.paused` | When a Prometheus deployment is paused, no actions except for deletion will be performed on the underlying objects. | `false` | -| `prometheus.prometheusSpec.replicas` | Number of instances to deploy for a Prometheus deployment. | `1` | -| `prometheus.prometheusSpec.retention` | Time duration Prometheus shall retain data for. Must match the regular expression `[0-9]+(ms\|s\|m\|h\|d\|w\|y)` (milliseconds seconds minutes hours days weeks years). | `120h` | -| `prometheus.prometheusSpec.logLevel` | Log level for Prometheus to be configured with. | `info` | -| `prometheus.prometheusSpec.scrapeInterval` | Interval between consecutive scrapes. | `""` | -| `prometheus.prometheusSpec.evaluationInterval` | Interval between consecutive evaluations. | `""` | -| `prometheus.prometheusSpec.externalLabels` | The labels to add to any time series or alerts when communicating with external systems (federation, remote storage, Alertmanager). | `[]` | -| `prometheus.prometheusSpec.externalUrl` | The external URL the Prometheus instances will be available under. This is necessary to generate correct URLs. This is necessary if Prometheus is not served from root of a DNS name. | `""` | -| `prometheus.prometheusSpec.routePrefix` | The route prefix Prometheus registers HTTP handlers for. This is useful, if using ExternalURL and a proxy is rewriting HTTP routes of a request, and the actual ExternalURL is still true, but the server serves requests under a different route prefix. For example for use with `kubectl proxy`. | `/` | -| `prometheus.prometheusSpec.storageSpec` | Storage spec to specify how storage shall be used. | `{}` | -| `prometheus.prometheusSpec.ruleSelectorNilUsesHelmValues` | If true, a nil or {} value for prometheus.prometheusSpec.ruleSelector will cause the prometheus resource to be created with selectors based on values in the helm deployment, which will also match the PrometheusRule resources created. | `true` | -| `prometheus.prometheusSpec.ruleSelector` | A selector to select which PrometheusRules to mount for loading alerting rules from. Until (excluding) Prometheus Operator v0.24.0 Prometheus Operator will migrate any legacy rule ConfigMaps to PrometheusRule custom resources selected by RuleSelector. Make sure it does not match any config maps that you do not want to be migrated. | `{}` | -| `prometheus.prometheusSpec.ruleNamespaceSelector` | Namespaces to be selected for PrometheusRules discovery. If unspecified, only the same namespace as the Prometheus object is in is used. | `{}` | -| `prometheus.prometheusSpec.alertingEndpoints` | Alertmanagers to which alerts will be sent https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerendpoints Default configuration will connect to the alertmanager deployed as part of this release | `[]` | -| `prometheus.prometheusSpec.resources` | Define resources requests and limits for single Pods. | `{}` | -| `prometheus.prometheusSpec.nodeSelector` | Define which Nodes the Pods are scheduled on. | `{}` | -| `prometheus.prometheusSpec.secrets` | Secrets is a list of Secrets in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods. The Secrets are mounted into /etc/prometheus/secrets/. Secrets changes after initial creation of a Prometheus object are not reflected in the running Pods. To change the secrets mounted into the Prometheus Pods, the object must be deleted and recreated with the new list of secrets. | `[]` | -| `prometheus.prometheusSpec.configMaps` | ConfigMaps is a list of ConfigMaps in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods. The ConfigMaps are mounted into /etc/prometheus/configmaps/ | `[]` | -|`prometheus.prometheusSpec.podAntiAffinity` | Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node. The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided. The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node. The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured. | `""` | -| `prometheus.prometheusSpec.tolerations` | If specified, the pod's tolerations. | `[]` | -| `prometheus.prometheusSpec.remoteWrite` | If specified, the remote_write spec. This is an experimental feature, it may change in any upcoming release in a breaking way. | `[]` | -| `prometheus.prometheusSpec.remoteRead` | If specified, the remote_read spec. This is an experimental feature, it may change in any upcoming release in a breaking way. | `[]` | -| `prometheus.prometheusSpec.securityContext` | SecurityContext holds pod-level security attributes and common container settings. This defaults to non root user with uid 1000 and gid 2000 in order to support migration from operator version <0.26. | `{"runAsNonRoot": true, "runAsUser": 1000, "fsGroup": 2000}` | -| `prometheus.prometheusSpec.listenLocal` | ListenLocal makes the Prometheus server listen on loopback, so that it does not bind against the Pod IP. | `false` | -| `prometheus.prometheusSpec.containers` | Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to a Prometheus pod. |`[]`| -| `prometheus.prometheusSpec.additionalScrapeConfigs` | AdditionalScrapeConfigs allows specifying additional Prometheus scrape configurations. Scrape configurations are appended to the configurations generated by the Prometheus Operator. Job configurations must have the form as specified in the official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#. As scrape configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible scrape configs are going to break Prometheus after the upgrade. | `{}` | -| `prometheus.prometheusSpec.additionalScrapeConfigsExternal` | Enable additional scrape configs that are managed externally to this chart. Note that the prometheus will fail to provision if the correct secret does not exist. | `false` | -| `prometheus.prometheusSpec.additionalAlertManagerConfigs` | AdditionalAlertManagerConfigs allows for manual configuration of alertmanager jobs in the form as specified in the official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#. AlertManager configurations specified are appended to the configurations generated by the Prometheus Operator. As AlertManager configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible AlertManager configs are going to break Prometheus after the upgrade. | `{}` | -| `prometheus.prometheusSpec.additionalAlertRelabelConfigs` | AdditionalAlertRelabelConfigs allows specifying additional Prometheus alert relabel configurations. Alert relabel configurations specified are appended to the configurations generated by the Prometheus Operator. Alert relabel configurations specified must have the form as specified in the official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs. As alert relabel configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible alert relabel configs are going to break Prometheus after the upgrade. | `[]` | -| `prometheus.prometheusSpec.thanos` | Thanos configuration allows configuring various aspects of a Prometheus server in a Thanos environment. This section is experimental, it may change significantly without deprecation notice in any release.This is experimental and may change significantly without backward compatibility in any release. See https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#thanosspec | `{}` | -| `prometheus.prometheusSpec.priorityClassName` | Priority class assigned to the Pods | `""` | - -### Alertmanager -| Parameter | Description | Default | -| ----- | ----------- | ------ | -| `alertmanager.enabled` | Deploy alertmanager | `true` | -| `alertmanager.serviceAccount.create` | Create a `serviceAccount` for alertmanager | `true` | -| `alertmanager.serviceAccount.name` | Name for Alertmanager service account | `""` | -| `alertmanager.podDisruptionBudget.enabled` | If true, create a pod disruption budget for Alertmanager pods. The created resource cannot be modified once created - it must be deleted to perform a change | `true` | -| `alertmanager.podDisruptionBudget.minAvailable` | Minimum number / percentage of pods that should remain scheduled | `1` | -| `alertmanager.podDisruptionBudget.maxUnavailable` | Maximum number / percentage of pods that may be made unavailable | `""` | -| `alertmanager.ingress.enabled` | If true, Alertmanager Ingress will be created | `false` | -| `alertmanager.ingress.annotations` | Alertmanager Ingress annotations | `{}` | -| `alertmanager.ingress.labels` | Alertmanager Ingress additional labels | `{}` | -| `alertmanager.ingress.hosts` | Alertmanager Ingress hostnames | `[]` | -| `alertmanager.ingress.tls` | Alertmanager Ingress TLS configuration (YAML) | `[]` | -| `alertmanager.service.type` | Alertmanager Service type | `ClusterIP` | -| `alertmanager.service.clusterIP` | Alertmanager service clusterIP IP | `""` | -| `alertmanager.service.nodePort` | Alertmanager Service port for NodePort service type | `30903` | -| `alertmanager.service.annotations` | Alertmanager Service annotations | `{}` | -| `alertmanager.service.labels` | Alertmanager Service Labels | `{}` | -| `alertmanager.service.externalIPs` | List of IP addresses at which the Alertmanager server service is available | `[]` | -| `alertmanager.service.loadBalancerIP` | Alertmanager Loadbalancer IP | `""` | -| `alertmanager.service.loadBalancerSourceRanges` | Alertmanager Load Balancer Source Ranges | `[]` | -| `alertmanager.config` | Provide YAML to configure Alertmanager. See https://prometheus.io/docs/alerting/configuration/#configuration-file. The default provided works to suppress the DeadMansSwitch alert from `defaultRules.create` | `{"global":{"resolve_timeout":"5m"},"route":{"group_by":["job"],"group_wait":"30s","group_interval":"5m","repeat_interval":"12h","receiver":"null","routes":[{"match":{"alertname":"DeadMansSwitch"},"receiver":"null"}]},"receivers":[{"name":"null"}]}` | -| `alertmanager.alertmanagerSpec.podMetadata` | Standard object’s metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#metadata Metadata Labels and Annotations gets propagated to the prometheus pods. | `{}` | -| `alertmanager.alertmanagerSpec.image.tag` | Tag of Alertmanager container image to be deployed. | `v0.15.3` | -| `alertmanager.alertmanagerSpec.image.repository` | Base image that is used to deploy pods, without tag. | `quay.io/prometheus/alertmanager` | -| `alertmanager.alertmanagerSpec.secrets` | Secrets is a list of Secrets in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods. The Secrets are mounted into /etc/alertmanager/secrets/. | `[]` | -| `alertmanager.alertmanagerSpec.configMaps` | ConfigMaps is a list of ConfigMaps in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods. The ConfigMaps are mounted into /etc/alertmanager/configmaps/ | `[]` | -| `alertmanager.alertmanagerSpec.logLevel` | Log level for Alertmanager to be configured with. | `info` | -| `alertmanager.alertmanagerSpec.replicas` | Size is the expected size of the alertmanager cluster. The controller will eventually make the size of the running cluster equal to the expected size. | `1` | -| `alertmanager.alertmanagerSpec.retention` | Time duration Alertmanager shall retain data for. Value must match the regular expression `[0-9]+(ms\|s\|m\|h)` (milliseconds seconds minutes hours). | `120h` | -| `alertmanager.alertmanagerSpec.storage` | Storage is the definition of how storage will be used by the Alertmanager instances. | `{}` | -| `alertmanager.alertmanagerSpec.externalUrl` | The external URL the Alertmanager instances will be available under. This is necessary to generate correct URLs. This is necessary if Alertmanager is not served from root of a DNS name. | `""` | -| `alertmanager.alertmanagerSpec.routePrefix` | The route prefix Alertmanager registers HTTP handlers for. This is useful, if using ExternalURL and a proxy is rewriting HTTP routes of a request, and the actual ExternalURL is still true, but the server serves requests under a different route prefix. For example for use with `kubectl proxy`. | `/` | -| `alertmanager.alertmanagerSpec.paused` | If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions. | `false` | -| `alertmanager.alertmanagerSpec.nodeSelector` | Define which Nodes the Pods are scheduled on. | `{}` | -| `alertmanager.alertmanagerSpec.resources` | Define resources requests and limits for single Pods. | `{}` | -| `alertmanager.alertmanagerSpec.podAntiAffinity` | Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node. The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided. The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node. The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured. | `""` | -| `alertmanager.alertmanagerSpec.tolerations` | If specified, the pod's tolerations. | `[]` | -| `alertmanager.alertmanagerSpec.securityContext` | SecurityContext holds pod-level security attributes and common container settings. This defaults to non root user with uid 1000 and gid 2000 in order to support migration from operator version < 0.26 | `{"runAsNonRoot": true, "runAsUser": 1000, "fsGroup": 2000}` | -| `alertmanager.alertmanagerSpec.listenLocal` | ListenLocal makes the Alertmanager server listen on loopback, so that it does not bind against the Pod IP. Note this is only for the Alertmanager UI, not the gossip communication. | `false` | -| `alertmanager.alertmanagerSpec.containers` | Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an Alertmanager pod. | `[]` | -| `alertmanager.alertmanagerSpec.priorityClassName` | Priority class assigned to the Pods | `""` | -| `alertmanager.alertmanagerSpec.additionalPeers` | AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster. | `[]` | - -### Grafana -| Parameter | Description | Default | -| ----- | ----------- | ------ | -| `grafana.enabled` | If true, deploy the grafana sub-chart | `true` | -| `grafana.adminPassword` | Admin password to log into the grafana UI | "prom-operator" | -| `grafana.defaultDashboardsEnabled` | Deploy default dashboards. These are loaded using the sidecar | `true` | -| `grafana.ingress.enabled` | Enables Ingress for Grafana | `false` | -| `grafana.ingress.annotations` | Ingress annotations for Grafana | `{}` | -| `grafana.ingress.labels` | Custom labels for Grafana Ingress | `{}` | -| `grafana.ingress.hosts` | Ingress accepted hostnames for Grafana| `[]` | -| `grafana.ingress.tls` | Ingress TLS configuration for Grafana | `[]` | -| `grafana.sidecar.dashboards.enabled` | Enable the Grafana sidecar to automatically load dashboards with a label `{{ grafana.sidecar.dashboards.label }}=1` | `true` | -| `grafana.sidecar.dashboards.label` | If the sidecar is enabled, configmaps with this label will be loaded into Grafana as dashboards | `grafana_dashboard` | -| `grafana.sidecar.datasources.enabled` | Enable the Grafana sidecar to automatically load dashboards with a label `{{ grafana.sidecar.datasources.label }}=1` | `true` | -| `grafana.sidecar.datasources.label` | If the sidecar is enabled, configmaps with this label will be loaded into Grafana as datasources configurations | `grafana_datasource` | -| `grafana.rbac.pspUseAppArmor` | Enforce AppArmor in created PodSecurityPolicy (requires rbac.pspEnabled) | `true` | - -### Exporters -| Parameter | Description | Default | -| ----- | ----------- | ------ | -| `kubeApiServer.enabled` | Deploy `serviceMonitor` to scrape the Kubernetes API server | `true` | -| `kubeApiServer.tlsConfig.serverName` | Name of the server to use when validating TLS certificate | `kubernetes` | -| `kubeApiServer.tlsConfig.insecureSkipVerify` | Skip TLS certificate validation when scraping | `false` | -| `kubeApiServer.serviceMonitor.jobLabel` | The name of the label on the target service to use as the job name in prometheus | `component` | -| `kubeApiServer.serviceMonitor.selector` | The service selector | `{"matchLabels":{"component":"apiserver","provider":"kubernetes"}}` -| `kubelet.enabled` | Deploy servicemonitor to scrape the kubelet service. See also `prometheusOperator.kubeletService` | `true` | -| `kubelet.namespace` | Namespace where the kubelet is deployed. See also `prometheusOperator.kubeletService.namespace` | `kube-system` | -| `kubelet.serviceMonitor.https` | Enable scraping of the kubelet over HTTPS. For more information, see https://github.com/coreos/prometheus-operator/issues/926 | `false` | -| `kubeControllerManager.enabled` | Deploy a `service` and `serviceMonitor` to scrape the Kubernetes controller-manager | `true` | -| `kubeControllerManager.endpoints` | Endpoints where Controller-manager runs. Provide this if running Controller-manager outside the cluster | `[]` | -| `kubeControllermanager.service.port` | Controller-manager port for the service runs on | `10252` | -| `kubeControllermanager.service.targetPort` | Controller-manager targetPort for the service runs on | `10252` | -| `kubeControllermanager.service.targetPort.selector` | Controller-manager service selector | `{"k8s-app" : "kube-controller-manager" }` -| `coreDns.enabled` | Deploy coreDns scraping components. Use either this or kubeDns | true | -| `coreDns.service.port` | CoreDns port | `9153` | -| `coreDns.service.targetPort` | CoreDns targetPort | `9153` | -| `coreDns.service.selector` | CoreDns service selector | `{"k8s-app" : "coredns" }` -| `kubeDns.enabled` | Deploy kubeDns scraping components. Use either this or coreDns| `false` | -| `kubeDns.service.selector` | CoreDns service selector | `{"k8s-app" : "kube-dns" }` | -| `kubeEtcd.enabled` | Deploy components to scrape etcd | `true` | -| `kubeEtcd.endpoints` | Endpoints where etcd runs. Provide this if running etcd outside the cluster | `[]` | -| `kubeEtcd.service.port` | Etct port | `4001` | -| `kubeEtcd.service.targetPort` | Etct targetPort | `4001` | -| `kubeEtcd.service.selector` | Selector for etcd if running inside the cluster | `{"k8s-app":"etcd-server"}` | -| `kubeEtcd.servicemonitor.scheme` | Etcd servicemonitor scheme | `http` | -| `kubeEtcd.servicemonitor.insecureSkipVerify` | Skip validating etcd TLS certificate when scraping | `false` | -| `kubeEtcd.servicemonitor.serverName` | Etcd server name to validate certificate against when scraping | `""` | -| `kubeEtcd.servicemonitor.caFile` | Certificate authority file to use when connecting to etcd. See `prometheus.prometheusSpec.secrets` | `""` | -| `kubeEtcd.servicemonitor.certFile` | Client certificate file to use when connecting to etcd. See `prometheus.prometheusSpec.secrets` | `""` | -| `kubeEtcd.servicemonitor.keyFile` | Client key file to use when connecting to etcd. See `prometheus.prometheusSpec.secrets` | `""` | -| `kubeScheduler.enabled` | Deploy a `service` and `serviceMonitor` to scrape the Kubernetes scheduler | `true` | -| `kubeScheduler.endpoints` | Endpoints where scheduler runs. Provide this if running scheduler outside the cluster | `[]` | -| `kubeScheduler.service.port` | Scheduler port for the service runs on | `10251` | -| `kubeScheduler.service.targetPort` | Scheduler targetPort for the service runs on | `10251` | -| `kubeScheduler.service.targetPort.selector` | Scheduler service selector | `{"k8s-app" : "kube-scheduler" }` -| `kubeStateMetrics.enabled` | Deploy the `kube-state-metrics` chart and configure a servicemonitor to scrape | `true` | -| `kube-state-metrics.rbac.create` | Create RBAC components in kube-state-metrics. See `global.rbac.create` | `true` | -| `nodeExporter.enabled` | Deploy the `prometheus-node-exporter` and scrape it | `true` | -| `nodeExporter.jobLabel` | The name of the label on the target service to use as the job name in prometheus. See `prometheus-node-exporter.podLabels.jobLabel=node-exporter` default | `jobLabel` | -| `prometheus-node-exporter.podLabels` | Additional labels for pods in the DaemonSet | `{"jobLabel":"node-exporter"}` | -| `prometheus-node-exporter.extraArgs` | Additional arguments for the node exporter container | `["--collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+)($|/)", "--collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$"]` | - - -Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, - -```console -$ helm install --name my-release stable/prometheus-operator --set prometheusOperator.enabled=true -``` - -Alternatively, one or more YAML files that specify the values for the above parameters can be provided while installing the chart. For example, - -```console -$ helm install --name my-release stable/prometheus-operator -f values1.yaml,values2.yaml -``` - -> **Tip**: You can use the default [values.yaml](values.yaml) - - -## Developing Prometheus Rules and Grafana Dashboards - -This chart Grafana Dashboards and Prometheus Rules are just a copy from coreos/prometheus-operator and other sources, synced (with alterations) by scripts in [hack](hack) folder. In order to introduce any changes you need to first [add them to original repo](https://github.com/coreos/prometheus-operator/blob/master/contrib/kube-prometheus/docs/developing-prometheus-rules-and-grafana-dashboards.md) and then sync there by scripts. - -## Further Information - -For more in-depth documentation of configuration options meanings, please see -- [Prometheus Operator](https://github.com/coreos/prometheus-operator) -- [Prometheus](https://prometheus.io/docs/introduction/overview/) -- [Grafana](https://github.com/helm/charts/tree/master/stable/grafana#grafana-helm-chart) - -## Helm <2.10 workaround -The `crd-install` hook is required to deploy the prometheus operator CRDs before they are used. If you are forced to use an earlier version of Helm you can work around this requirement as follows: -1. Install prometheus-operator by itself, disabling everything but the prometheus-operator component, and also setting `prometheusOperator.serviceMonitor.selfMonitor=false` -2. Install all the other components, and configure `prometheus.additionalServiceMonitors` to scrape the prometheus-operator service. diff --git a/vnfs/DAaaS/prometheus-operator/charts/grafana-1.24.2.tgz b/vnfs/DAaaS/prometheus-operator/charts/grafana-1.24.2.tgz deleted file mode 100644 index 4ef89b99..00000000 Binary files a/vnfs/DAaaS/prometheus-operator/charts/grafana-1.24.2.tgz and /dev/null differ diff --git a/vnfs/DAaaS/prometheus-operator/charts/prometheus-node-exporter-1.1.0.tgz b/vnfs/DAaaS/prometheus-operator/charts/prometheus-node-exporter-1.1.0.tgz deleted file mode 100644 index f2b780e7..00000000 Binary files a/vnfs/DAaaS/prometheus-operator/charts/prometheus-node-exporter-1.1.0.tgz and /dev/null differ diff --git a/vnfs/DAaaS/prometheus-operator/ci/test-values.yaml b/vnfs/DAaaS/prometheus-operator/ci/test-values.yaml deleted file mode 100644 index 8398d4f7..00000000 --- a/vnfs/DAaaS/prometheus-operator/ci/test-values.yaml +++ /dev/null @@ -1,1019 +0,0 @@ -# Default values for prometheus-operator. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -## Provide a name in place of prometheus-operator for `app:` labels -## -nameOverride: "" - -## Provide a name to substitue for the full names of resources -## -fullnameOverride: "" - -## Labels to apply to all resources -## -commonLabels: {} -# scmhash: abc123 -# myLabel: aakkmd - -## Create default rules for monitoring the cluster -## -defaultRules: - create: true - ## Labels for default rules - labels: {} - ## Annotations for default rules - annotations: {} - -## -global: - rbac: - create: true - pspEnabled: true - - ## Reference to one or more secrets to be used when pulling images - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ - ## - imagePullSecrets: [] - # - name: "image-pull-secret" - -## Configuration for alertmanager -## ref: https://prometheus.io/docs/alerting/alertmanager/ -## -alertmanager: - - ## Deploy alertmanager - ## - enabled: true - - ## Service account for Alertmanager to use. - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - ## - serviceAccount: - create: true - name: "" - - ## Configure pod disruption budgets for Alertmanager - ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget - ## This configuration is immutable once created and will require the PDB to be deleted to be changed - ## https://github.com/kubernetes/kubernetes/issues/45398 - ## - podDisruptionBudget: - enabled: false - minAvailable: 1 - maxUnavailable: "" - - ## Alertmanager configuration directives - ## ref: https://prometheus.io/docs/alerting/configuration/#configuration-file - ## https://prometheus.io/webtools/alerting/routing-tree-editor/ - ## - config: - global: - resolve_timeout: 5m - route: - group_by: ['job'] - group_wait: 30s - group_interval: 5m - repeat_interval: 12h - receiver: 'null' - routes: - - match: - alertname: DeadMansSwitch - receiver: 'null' - receivers: - - name: 'null' - - ## Alertmanager template files to format alerts - ## ref: https://prometheus.io/docs/alerting/notifications/ - ## https://prometheus.io/docs/alerting/notification_examples/ - ## - templateFiles: {} - # - # An example template: - # template_1.tmpl: |- - # {{ define "cluster" }}{{ .ExternalURL | reReplaceAll ".*alertmanager\\.(.*)" "$1" }}{{ end }} - # - # {{ define "slack.myorg.text" }} - # {{- $root := . -}} - # {{ range .Alerts }} - # *Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}` - # *Cluster:* {{ template "cluster" $root }} - # *Description:* {{ .Annotations.description }} - # *Graph:* <{{ .GeneratorURL }}|:chart_with_upwards_trend:> - # *Runbook:* <{{ .Annotations.runbook }}|:spiral_note_pad:> - # *Details:* - # {{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}` - # {{ end }} - - ingress: - enabled: false - - annotations: {} - - labels: {} - - ## Hosts must be provided if Ingress is enabled. - ## - hosts: [] - # - alertmanager.domain.com - - ## TLS configuration for Alertmanager Ingress - ## Secret must be manually created in the namespace - ## - tls: [] - # - secretName: alertmanager-general-tls - # hosts: - # - alertmanager.example.com - - ## Configuration for Alertmanager service - ## - service: - annotations: {} - ## Port to expose on each node - ## Only used if service.type is 'NodePort' - ## - nodePort: 30903 - - ## Service type - ## - type: ClusterIP - - ## If true, create a serviceMonitor for alertmanager - ## - serviceMonitor: - selfMonitor: true - - ## Settings affecting alertmanagerSpec - ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerspec - ## - alertmanagerSpec: - ## Standard object’s metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#metadata - ## Metadata Labels and Annotations gets propagated to the Alertmanager pods. - ## - podMetadata: {} - - ## Image of Alertmanager - ## - image: - repository: quay.io/prometheus/alertmanager - tag: v0.15.3 - - ## Secrets is a list of Secrets in the same namespace as the Alertmanager object, which shall be mounted into the - ## Alertmanager Pods. The Secrets are mounted into /etc/alertmanager/secrets/. - ## - secrets: [] - - ## ConfigMaps is a list of ConfigMaps in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods. - ## The ConfigMaps are mounted into /etc/alertmanager/configmaps/. - ## - configMaps: [] - - ## Log level for Alertmanager to be configured with. - ## - logLevel: info - - ## Size is the expected size of the alertmanager cluster. The controller will eventually make the size of the - ## running cluster equal to the expected size. - replicas: 1 - - ## Time duration Alertmanager shall retain data for. Default is '120h', and must match the regular expression - ## [0-9]+(ms|s|m|h) (milliseconds seconds minutes hours). - ## - retention: 120h - - ## Storage is the definition of how storage will be used by the Alertmanager instances. - ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/storage.md - ## - storage: {} - # volumeClaimTemplate: - # spec: - # storageClassName: gluster - # accessModes: ["ReadWriteOnce"] - # resources: - # requests: - # storage: 50Gi - # selector: {} - - - ## The external URL the Alertmanager instances will be available under. This is necessary to generate correct URLs. This is necessary if Alertmanager is not served from root of a DNS name. string false - ## - externalUrl: - - ## The route prefix Alertmanager registers HTTP handlers for. This is useful, if using ExternalURL and a proxy is rewriting HTTP routes of a request, and the actual ExternalURL is still true, - ## but the server serves requests under a different route prefix. For example for use with kubectl proxy. - ## - routePrefix: / - - ## If set to true all actions on the underlying managed objects are not going to be performed, except for delete actions. - ## - paused: false - - ## Define which Nodes the Pods are scheduled on. - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: {} - - ## Define resources requests and limits for single Pods. - ## ref: https://kubernetes.io/docs/user-guide/compute-resources/ - ## - resources: {} - # requests: - # memory: 400Mi - - ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node. - ## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided. - ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node. - ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured. - ## - podAntiAffinity: "" - - ## If specified, the pod's tolerations. - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - # - key: "key" - # operator: "Equal" - # value: "value" - # effect: "NoSchedule" - - ## SecurityContext holds pod-level security attributes and common container settings. - ## This defaults to non root user with uid 1000 and gid 2000. *v1.PodSecurityContext false - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - ## - securityContext: - runAsNonRoot: true - runAsUser: 1000 - fsGroup: 2000 - - ## ListenLocal makes the Alertmanager server listen on loopback, so that it does not bind against the Pod IP. - ## Note this is only for the Alertmanager UI, not the gossip communication. - ## - listenLocal: false - - ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an Alertmanager pod. - ## - containers: [] - - ## Priority class assigned to the Pods - ## - priorityClassName: "" - - ## AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster. - ## - additionalPeers: [] - -## Using default values from https://github.com/helm/charts/blob/master/stable/grafana/values.yaml -## -grafana: - enabled: true - - ## Deploy default dashboards. - ## - defaultDashboardsEnabled: true - - adminPassword: prom-operator - - ingress: - ## If true, Prometheus Ingress will be created - ## - enabled: false - - ## Annotations for Prometheus Ingress - ## - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" - - ## Labels to be added to the Ingress - ## - labels: {} - - ## Hostnames. - ## Must be provided if Ingress is enable. - ## - # hosts: - # - prometheus.domain.com - hosts: [] - - ## TLS configuration for prometheus Ingress - ## Secret must be manually created in the namespace - ## - tls: [] - # - secretName: prometheus-general-tls - # hosts: - # - prometheus.example.com - - sidecar: - dashboards: - enabled: true - label: grafana_dashboard - datasources: - enabled: true - label: grafana_datasource - -## Component scraping the kube api server -## -kubeApiServer: - enabled: true - tlsConfig: - serverName: kubernetes - insecureSkipVerify: false - - serviceMonitor: - jobLabel: component - selector: - matchLabels: - component: apiserver - provider: kubernetes - -## Component scraping the kubelet and kubelet-hosted cAdvisor -## -kubelet: - enabled: true - namespace: kube-system - - serviceMonitor: - ## Enable scraping the kubelet over https. For requirements to enable this see - ## https://github.com/coreos/prometheus-operator/issues/926 - ## - https: false - -## Component scraping the kube controller manager -## -kubeControllerManager: - enabled: true - - ## If your kube controller manager is not deployed as a pod, specify IPs it can be found on - ## - endpoints: [] - # - 10.141.4.22 - # - 10.141.4.23 - # - 10.141.4.24 - - ## If using kubeControllerManager.endpoints only the port and targetPort are used - ## - service: - port: 10252 - targetPort: 10252 - selector: - k8s-app: kube-controller-manager -## Component scraping coreDns. Use either this or kubeDns -## -coreDns: - enabled: true - service: - port: 9153 - targetPort: 9153 - selector: - k8s-app: coredns - -## Component scraping kubeDns. Use either this or coreDns -## -kubeDns: - enabled: false - service: - selector: - k8s-app: kube-dns -## Component scraping etcd -## -kubeEtcd: - enabled: true - - ## If your etcd is not deployed as a pod, specify IPs it can be found on - ## - endpoints: [] - # - 10.141.4.22 - # - 10.141.4.23 - # - 10.141.4.24 - - ## Etcd service. If using kubeEtcd.endpoints only the port and targetPort are used - ## - service: - port: 4001 - targetPort: 4001 - selector: - k8s-app: etcd-server - - ## Configure secure access to the etcd cluster by loading a secret into prometheus and - ## specifying security configuration below. For example, with a secret named etcd-client-cert - ## - ## serviceMonitor: - ## scheme: https - ## insecureSkipVerify: false - ## serverName: localhost - ## caFile: /etc/prometheus/secrets/etcd-client-cert/etcd-ca - ## certFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client - ## keyFile: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key - ## - serviceMonitor: - scheme: http - insecureSkipVerify: false - serverName: "" - caFile: "" - certFile: "" - keyFile: "" - - -## Component scraping kube scheduler -## -kubeScheduler: - enabled: true - - ## If your kube scheduler is not deployed as a pod, specify IPs it can be found on - ## - endpoints: [] - # - 10.141.4.22 - # - 10.141.4.23 - # - 10.141.4.24 - - ## If using kubeScheduler.endpoints only the port and targetPort are used - ## - service: - port: 10251 - targetPort: 10251 - selector: - k8s-app: kube-scheduler - -## Component scraping kube state metrics -## -kubeStateMetrics: - enabled: true - -## Configuration for kube-state-metrics subchart -## -kube-state-metrics: - rbac: - create: true - -## Deploy node exporter as a daemonset to all nodes -## -nodeExporter: - enabled: true - - ## Use the value configured in prometheus-node-exporter.podLabels - ## - jobLabel: jobLabel - -## Configuration for prometheus-node-exporter subchart -## -prometheus-node-exporter: - podLabels: - ## Add the 'node-exporter' label to be used by serviceMonitor to match standard common usage in rules and grafana dashboards - ## - jobLabel: node-exporter - extraArgs: - - --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker/.+)($|/) - - --collector.filesystem.ignored-fs-types=^(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)$ - -## Manages Prometheus and Alertmanager components -## -prometheusOperator: - enabled: true - - ## Service account for Alertmanager to use. - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - ## - serviceAccount: - create: true - name: "" - - ## Configuration for Prometheus operator service - ## - service: - ## Port to expose on each node - ## Only used if service.type is 'NodePort' - ## - nodePort: 38080 - - ## Service type - ## - type: ClusterIP - - ## Deploy CRDs used by Prometheus Operator. - ## - createCustomResource: true - - ## Attempt to clean up CRDs created by Prometheus Operator. - ## - cleanupCustomResource: true - - ## Labels to add to the operator pod - ## - podLabels: {} - - ## Assign a PriorityClassName to pods if set - # priorityClassName: "" - - ## If true, the operator will create and maintain a service for scraping kubelets - ## ref: https://github.com/coreos/prometheus-operator/blob/master/helm/prometheus-operator/README.md - ## - kubeletService: - enabled: true - namespace: kube-system - - ## Create a servicemonitor for the operator - ## - serviceMonitor: - selfMonitor: true - - ## Resource limits & requests - ## - resources: {} - # limits: - # cpu: 200m - # memory: 200Mi - # requests: - # cpu: 100m - # memory: 100Mi - - ## Define which Nodes the Pods are scheduled on. - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: {} - - ## Tolerations for use with node taints - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - # - key: "key" - # operator: "Equal" - # value: "value" - # effect: "NoSchedule" - - ## Assign the prometheus operator to run on specific nodes - ## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ - ## - affinity: {} - # requiredDuringSchedulingIgnoredDuringExecution: - # nodeSelectorTerms: - # - matchExpressions: - # - key: kubernetes.io/e2e-az-name - # operator: In - # values: - # - e2e-az1 - # - e2e-az2 - - securityContext: - runAsNonRoot: true - runAsUser: 65534 - - ## Prometheus-operator image - ## - image: - repository: quay.io/coreos/prometheus-operator - tag: v0.26.0 - pullPolicy: IfNotPresent - - ## Configmap-reload image to use for reloading configmaps - ## - configmapReloadImage: - repository: quay.io/coreos/configmap-reload - tag: v0.0.1 - - ## Prometheus-config-reloader image to use for config and rule reloading - ## - prometheusConfigReloaderImage: - repository: quay.io/coreos/prometheus-config-reloader - tag: v0.26.0 - - ## Hyperkube image to use when cleaning up - ## - hyperkubeImage: - repository: k8s.gcr.io/hyperkube - tag: v1.12.1 - pullPolicy: IfNotPresent - -## Deploy a Prometheus instance -## -prometheus: - - enabled: true - - ## Service account for Prometheuses to use. - ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ - ## - serviceAccount: - create: true - name: "" - - ## Configuration for Prometheus service - ## - service: - annotations: {} - - ## Port to expose on each node - ## Only used if service.type is 'NodePort' - ## - nodePort: 39090 - - ## Service type - ## - type: ClusterIP - - rbac: - ## Create role bindings in the specified namespaces, to allow Prometheus monitoring - ## a role binding in the release namespace will always be created. - ## - roleNamespaces: - - kube-system - - ## Configure pod disruption budgets for Prometheus - ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget - ## This configuration is immutable once created and will require the PDB to be deleted to be changed - ## https://github.com/kubernetes/kubernetes/issues/45398 - ## - podDisruptionBudget: - enabled: false - minAvailable: 1 - maxUnavailable: "" - - ingress: - enabled: false - annotations: {} - labels: {} - - ## Hostnames. - ## Must be provided if Ingress is enabled. - ## - # hosts: - # - prometheus.domain.com - hosts: [] - - ## TLS configuration for Prometheus Ingress - ## Secret must be manually created in the namespace - ## - tls: [] - # - secretName: prometheus-general-tls - # hosts: - # - prometheus.example.com - - serviceMonitor: - selfMonitor: true - - ## Settings affecting prometheusSpec - ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec - ## - prometheusSpec: - - ## Interval between consecutive scrapes. - ## - scrapeInterval: "" - - ## Interval between consecutive evaluations. - ## - evaluationInterval: "" - - ## ListenLocal makes the Prometheus server listen on loopback, so that it does not bind against the Pod IP. - ## - listenLocal: false - - ## Image of Prometheus. - ## - image: - repository: quay.io/prometheus/prometheus - tag: v2.5.0 - - # repository: quay.io/coreos/prometheus - # tag: v2.5.0 - - ## Tolerations for use with node taints - ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - ## - tolerations: [] - # - key: "key" - # operator: "Equal" - # value: "value" - # effect: "NoSchedule" - - ## Alertmanagers to which alerts will be sent - ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerendpoints - ## - ## Default configuration will connect to the alertmanager deployed as part of this release - ## - alertingEndpoints: [] - # - name: "" - # namespace: "" - # port: http - # scheme: http - - ## External labels to add to any time series or alerts when communicating with external systems - ## - externalLabels: {} - - ## External URL at which Prometheus will be reachable. - ## - externalUrl: "" - - ## Define which Nodes the Pods are scheduled on. - ## ref: https://kubernetes.io/docs/user-guide/node-selection/ - ## - nodeSelector: {} - - ## Secrets is a list of Secrets in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods. - ## The Secrets are mounted into /etc/prometheus/secrets/. Secrets changes after initial creation of a Prometheus object are not - ## reflected in the running Pods. To change the secrets mounted into the Prometheus Pods, the object must be deleted and recreated - ## with the new list of secrets. - ## - secrets: [] - - ## ConfigMaps is a list of ConfigMaps in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods. - ## The ConfigMaps are mounted into /etc/prometheus/configmaps/. - ## - configMaps: [] - - ## Namespaces to be selected for PrometheusRules discovery. - ## If unspecified, only the same namespace as the Prometheus object is in is used. - ## - ruleNamespaceSelector: {} - - ## If true, a nil or {} value for prometheus.prometheusSpec.ruleSelector will cause the - ## prometheus resource to be created with selectors based on values in the helm deployment, - ## which will also match the PrometheusRule resources created - ## - ruleSelectorNilUsesHelmValues: true - - ## Rules CRD selector - ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/design.md - ## If unspecified the release `app` and `release` will be used as the label selector - ## to load rules - ## - ruleSelector: {} - ## Example which select all prometheusrules resources - ## with label "prometheus" with values any of "example-rules" or "example-rules-2" - # ruleSelector: - # matchExpressions: - # - key: prometheus - # operator: In - # values: - # - example-rules - # - example-rules-2 - # - ## Example which select all prometheusrules resources with label "role" set to "example-rules" - # ruleSelector: - # matchLabels: - # role: example-rules - - ## If true, a nil or {} value for prometheus.prometheusSpec.serviceMonitorSelector will cause the - ## prometheus resource to be created with selectors based on values in the helm deployment, - ## which will also match the servicemonitors created - ## - serviceMonitorSelectorNilUsesHelmValues: true - - ## serviceMonitorSelector will limit which servicemonitors are used to create scrape - ## configs in Prometheus. See serviceMonitorSelectorUseHelmLabels - ## - serviceMonitorSelector: {} - - # serviceMonitorSelector: {} - # matchLabels: - # prometheus: somelabel - - ## serviceMonitorNamespaceSelector will limit namespaces from which serviceMonitors are used to create scrape - ## configs in Prometheus. By default all namespaces will be used - ## - serviceMonitorNamespaceSelector: {} - - ## How long to retain metrics - ## - retention: 10d - - ## If true, the Operator won't process any Prometheus configuration changes - ## - paused: false - - ## Number of Prometheus replicas desired - ## - replicas: 1 - - ## Log level for Prometheus be configured in - ## - logLevel: info - - ## Prefix used to register routes, overriding externalUrl route. - ## Useful for proxies that rewrite URLs. - ## - routePrefix: / - - ## Standard object’s metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#metadata - ## Metadata Labels and Annotations gets propagated to the prometheus pods. - ## - podMetadata: {} - # labels: - # app: prometheus - # k8s-app: prometheus - - ## Pod anti-affinity can prevent the scheduler from placing Prometheus replicas on the same node. - ## The default value "soft" means that the scheduler should *prefer* to not schedule two replica pods onto the same node but no guarantee is provided. - ## The value "hard" means that the scheduler is *required* to not schedule two replica pods onto the same node. - ## The value "" will disable pod anti-affinity so that no anti-affinity rules will be configured. - podAntiAffinity: "" - - ## The remote_read spec configuration for Prometheus. - ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#remotereadspec - remoteRead: {} - # - url: http://remote1/read - - ## The remote_write spec configuration for Prometheus. - ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#remotewritespec - remoteWrite: {} - # remoteWrite: - # - url: http://remote1/push - - ## Resource limits & requests - ## - resources: {} - # requests: - # memory: 400Mi - - ## Prometheus StorageSpec for persistent data - ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/user-guides/storage.md - ## - storageSpec: {} - # volumeClaimTemplate: - # spec: - # storageClassName: gluster - # accessModes: ["ReadWriteOnce"] - # resources: - # requests: - # storage: 50Gi - # selector: {} - - ## AdditionalScrapeConfigs allows specifying additional Prometheus scrape configurations. Scrape configurations - ## are appended to the configurations generated by the Prometheus Operator. Job configurations must have the form - ## as specified in the official Prometheus documentation: - ## https://prometheus.io/docs/prometheus/latest/configuration/configuration/#. As scrape configs are - ## appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility - ## to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible - ## scrape configs are going to break Prometheus after the upgrade. - ## - ## The scrape configuraiton example below will find master nodes, provided they have the name .*mst.*, relabel the - ## port to 2379 and allow etcd scraping provided it is running on all Kubernetes master nodes - ## - additionalScrapeConfigs: [] - # - job_name: kube-etcd - # kubernetes_sd_configs: - # - role: node - # scheme: https - # tls_config: - # ca_file: /etc/prometheus/secrets/etcd-client-cert/etcd-ca - # cert_file: /etc/prometheus/secrets/etcd-client-cert/etcd-client - # key_file: /etc/prometheus/secrets/etcd-client-cert/etcd-client-key - # relabel_configs: - # - action: labelmap - # regex: __meta_kubernetes_node_label_(.+) - # - source_labels: [__address__] - # action: replace - # target_label: __address__ - # regex: ([^:;]+):(\d+) - # replacement: ${1}:2379 - # - source_labels: [__meta_kubernetes_node_name] - # action: keep - # regex: .*mst.* - # - source_labels: [__meta_kubernetes_node_name] - # action: replace - # target_label: node - # regex: (.*) - # replacement: ${1} - # metric_relabel_configs: - # - regex: (kubernetes_io_hostname|failure_domain_beta_kubernetes_io_region|beta_kubernetes_io_os|beta_kubernetes_io_arch|beta_kubernetes_io_instance_type|failure_domain_beta_kubernetes_io_zone) - # action: labeldrop - - - ## AdditionalAlertManagerConfigs allows for manual configuration of alertmanager jobs in the form as specified - ## in the official Prometheus documentation https://prometheus.io/docs/prometheus/latest/configuration/configuration/#. - ## AlertManager configurations specified are appended to the configurations generated by the Prometheus Operator. - ## As AlertManager configs are appended, the user is responsible to make sure it is valid. Note that using this - ## feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release - ## notes to ensure that no incompatible AlertManager configs are going to break Prometheus after the upgrade. - ## - additionalAlertManagerConfigs: [] - # - consul_sd_configs: - # - server: consul.dev.test:8500 - # scheme: http - # datacenter: dev - # tag_separator: ',' - # services: - # - metrics-prometheus-alertmanager - - ## AdditionalAlertRelabelConfigs allows specifying Prometheus alert relabel configurations. Alert relabel configurations specified are appended - ## to the configurations generated by the Prometheus Operator. Alert relabel configurations specified must have the form as specified in the - ## official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs. - ## As alert relabel configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the - ## possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible alert relabel - ## configs are going to break Prometheus after the upgrade. - ## - additionalAlertRelabelConfigs: [] - # - separator: ; - # regex: prometheus_replica - # replacement: $1 - # action: labeldrop - - ## SecurityContext holds pod-level security attributes and common container settings. - ## This defaults to non root user with uid 1000 and gid 2000. - ## https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md - ## - securityContext: - runAsNonRoot: true - runAsUser: 1000 - fsGroup: 2000 - - ## Priority class assigned to the Pods - ## - priorityClassName: "" - - ## Thanos configuration allows configuring various aspects of a Prometheus server in a Thanos environment. - ## This section is experimental, it may change significantly without deprecation notice in any release. - ## This is experimental and may change significantly without backward compatibility in any release. - ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#thanosspec - ## - thanos: {} - - ## Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to a Prometheus pod. - ## - containers: [] - - ## Enable additional scrape configs that are managed externally to this chart. Note that the prometheus - ## will fail to provision if the correct secret does not exist. - ## - additionalScrapeConfigsExternal: false - - additionalServiceMonitors: [] - ## Name of the ServiceMonitor to create - ## - # - name: "" - - ## Additional labels to set used for the ServiceMonitorSelector. Together with standard labels from - ## the chart - ## - # additionalLabels: {} - - ## Service label for use in assembling a job name of the form