diff --git a/charts/helm-apps/Chart.yaml b/charts/helm-apps/Chart.yaml index a611102..8ec5de7 100644 --- a/charts/helm-apps/Chart.yaml +++ b/charts/helm-apps/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: helm-apps description: A Helm applications library type: library -version: 1.2.12 +version: 2.0.0 maintainers: - name: alvnukov url: https://github.com/alvnukov diff --git a/charts/helm-apps/templates/_apps-components.tpl b/charts/helm-apps/templates/_apps-components.tpl index 55efa93..2032388 100644 --- a/charts/helm-apps/templates/_apps-components.tpl +++ b/charts/helm-apps/templates/_apps-components.tpl @@ -170,7 +170,6 @@ spec: {{- $_ = set $ "CurrentApp" . }} --- {{- include "apps-utils.printPath" $ }} -{{- include "apps-deckhouse-metrics.render" $ }} {{- $_ = set $ "CurrentApp" $currentApp }} {{- end }} {{- include "apps-utils.leaveScope" $ }} diff --git a/charts/helm-apps/templates/_apps-deckhouse.tpl b/charts/helm-apps/templates/_apps-deckhouse.tpl deleted file mode 100644 index 22aa807..0000000 --- a/charts/helm-apps/templates/_apps-deckhouse.tpl +++ /dev/null @@ -1,37 +0,0 @@ -{{- define "apps-deckhouse.metrics" }} -{{- $ := . }} -{{- range $metricName, $metric := $.CurrentApp.deckhouseMetrics }} -{{- if include "fl.isTrue" (list $ . .enabled) }} ---- -apiVersion: deckhouse.io/v1beta1 -kind: {{ .kind }} -{{- if not (hasKey . "name")}} -{{- $_ := set . "name" (printf "%s-%s" $.CurrentApp.name (lower $metricName)) }} -{{- end }} -{{- include "apps-helpers.metadataGenerator" (list $ .)}} -spec: - query: {{ include "fl.valueQuoted" (list $ . .query) }} -{{- end }} -{{- end }} -{{- end }} - -{{- define "apps-deckhouse-metrics" }} - {{- $ := index . 0 }} - {{- $RelatedScope := index . 1 }} - {{- if not (kindIs "invalid" $RelatedScope) }} - - {{- $_ := set $RelatedScope "__GroupVars__" (dict "type" "apps-deckhouse-metrics" "name" "apps-deckhouse-metrics") }} - {{- include "apps-utils.renderApps" (list $ $RelatedScope) }} -{{- end -}} -{{- end -}} - -{{- define "apps-deckhouse-metrics.render" }} -{{- $ := . }} -{{- with $.CurrentApp }} -apiVersion: deckhouse.io/v1beta1 -kind: {{ include "fl.valueQuoted" (list $ . .kind) }} -{{- include "apps-helpers.metadataGenerator" (list $ .)}} -spec: - query: {{ include "fl.valueQuoted" (list $ . .query) }} -{{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/helm-apps/templates/_apps-infra.tpl b/charts/helm-apps/templates/_apps-infra.tpl deleted file mode 100644 index 6022416..0000000 --- a/charts/helm-apps/templates/_apps-infra.tpl +++ /dev/null @@ -1,83 +0,0 @@ -# TODO: -{{- define "apps-infra" }} - {{- $ := index . 0 }} - {{- $RelatedScope := index . 1 -}} - {{- include "apps-utils.enterScope" (list $ "apps-infra") }} - {{- if hasKey $RelatedScope "node-users"}} - {{- include "apps-infra.node-users" (list $ (index $RelatedScope "node-users")) }} - {{- end }} - {{- if hasKey $RelatedScope "node-groups"}} - {{- include "apps-infra.node-groups" (list $ (index $RelatedScope "node-groups")) }} - {{- end }} - {{- include "apps-utils.leaveScope" $ }} -{{- end }} - -{{- define "apps-infra.node-users"}} - {{- $ := index . 0 }} - {{- $RelatedScope := index . 1 -}} - {{- include "apps-utils.enterScope" (list $ "node-users") }} - {{- range $_appName, $_app := omit $RelatedScope "global" "enabled" "_include" "__GroupVars__" -}} - {{- include "apps-utils.enterScope" (list $ $_appName) }} - {{- $_ := set . "name" $_appName }} - {{- $_ = set $ "CurrentApp" $_app }} -{{- include "apps-utils.preRenderHooks" $ }} - {{- if include "fl.isTrue" (list $ . .enabled) }} -apiVersion: deckhouse.io/v1 -kind: NodeUser -metadata: - name: {{ .name | quote }} - annotations: - {{- include "fl.value" (list $ . .annotations) | nindent 4 }} - labels: - {{- include "fl.value" (list $ . .labels) | nindent 4 }} -spec: - {{- $specs := dict }} - {{- $_ := set $specs "Lists" (list "extraGroups" "nodeGroups" "sshPublicKeys") }} - {{- $_ = set $specs "Maps" (list) }} - {{- $_ = set $specs "Strings" (list "sshPublicKey" "passwordHash") }} - {{- $_ = set $specs "Numbers" (list "uid") }} - {{- $_ = set $specs "Bools" (list "isSudoer") }} - {{- $_ = set $specs "Required" (list "uid") }} - {{- include "apps-utils.generateSpecs" (list $ . $specs) | indent 2 }} - {{- end }} - {{- include "apps-utils.leaveScope" $ }} - {{- end }} - {{- include "apps-utils.leaveScope" $ }} -{{- end }} - -{{- define "apps-infra.node-groups"}} - {{- $ := index . 0 }} - {{- $RelatedScope := index . 1 -}} - {{- include "apps-utils.enterScope" (list $ "node-groups") }} - {{- range $_appName, $_app := omit $RelatedScope "global" "enabled" "_include" "__GroupVars__" -}} - {{- include "apps-utils.enterScope" (list $ $_appName) }} - {{- $_ := set . "name" $_appName }} - {{- $_ = set $ "CurrentApp" $_app }} - {{- if ._preRenderHook }} - {{- $_ := include "fl.value" (list $ . ._preRenderHook) }} - {{- end }} - {{- if include "fl.isTrue" (list $ . .enabled) }} ---- -#{{ print "#" $.CurrentPath }} -apiVersion: deckhouse.io/v1 -kind: NodeGroup -metadata: - name: {{ .name | quote }} - annotations: - {{- include "fl.value" (list $ . .annotations) | nindent 4 }} - labels: - {{- include "fl.value" (list $ . .labels) | nindent 4 }} -spec: - {{- $specs := dict }} - {{- $_ := set $specs "Lists" (list ) }} - {{- $_ = set $specs "Maps" (list) }} - {{- $_ = set $specs "Strings" (list ) }} - {{- $_ = set $specs "Numbers" (list ) }} - {{- $_ = set $specs "Bools" (list ) }} - {{- $_ = set $specs "Required" (list ) }} - {{- include "apps-utils.generateSpecs" (list $ . $specs) | indent 2 }} - {{- end }} - {{- include "apps-utils.leaveScope" $ }} - {{- end }} - {{- include "apps-utils.leaveScope" $ }} -{{- end }} \ No newline at end of file diff --git a/charts/helm-apps/templates/_apps-kafka-strimzi.tpl b/charts/helm-apps/templates/_apps-kafka-strimzi.tpl deleted file mode 100644 index f7badfe..0000000 --- a/charts/helm-apps/templates/_apps-kafka-strimzi.tpl +++ /dev/null @@ -1,226 +0,0 @@ -{{- define "apps-kafka-strimzi" }} - {{- $ := index . 0 }} - {{- $RelatedScope := index . 1 }} - {{- if not (kindIs "invalid" $RelatedScope) }} - {{- $_ := set $RelatedScope "__GroupVars__" (dict "type" "apps-kafka-strimzi" "name" "apps-kafka-strimzi") }} - {{- include "apps-utils.renderApps" (list $ $RelatedScope) }} -{{- end -}} -{{- end -}} - -{{- define "apps-kafka-strimzi.render"}} - {{- $ := index . }} - {{- $_ := set $ "CurrentKafka" $.CurrentApp }} - {{- with $.CurrentApp }} -apiVersion: kafka.strimzi.io/v1beta2 -kind: Kafka -metadata: - name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }} -spec: - kafkaExporter: - groupRegex: ".*" - topicRegex: ".*" - resources: {{- include "fl.generateContainerResources" (list $ . .exporter.resources) | nindent 6 }} - template: - pod: - metadata: - labels: - prometheus.deckhouse.io/custom-target: kafka-exporter - annotations: - prometheus.deckhouse.io/port: "9404" - prometheus.deckhouse.io/sample-limit: "{{ include "fl.value" (list $ . .prometheusSampleLimit) | default 10000 }}" - {{- include "fl.value" (list $ . .annotations) | nindent 12 }} - {{- with .exporter.tolerations }} - tolerations: {{ include "fl.value" (list $ $.CurrentApp .) | nindent 8 }} - {{- end }} - {{- with .exporter.affinity }} - affinity: {{ include "fl.value" (list $ . .) | nindent 10 }} - {{- end }} - kafka: - version: {{ include "fl.value" (list $ . .version) }} - replicas: {{ include "fl.value" (list $ . .replicas) }} - resources: {{ include "fl.generateContainerResources" (list $ . .resources) | nindent 6 }} - jvmOptions: {{ include "fl.value" (list $ . .jvmOptions ) | nindent 6 }} - listeners: - - name: plain - port: 9092 - type: internal - tls: false - - name: tls - port: 9093 - type: internal - tls: true - template: - pod: - metadata: - labels: - prometheus.deckhouse.io/custom-target: kafka - annotations: - prometheus.deckhouse.io/port: "9404" - prometheus.deckhouse.io/sample-limit: "{{ include "fl.value" (list $ . .prometheusSampleLimit) | default 50000 }}" - priorityClassName: {{ include "fl.valueQuoted" (list $ . .priorityClassName) }} - {{- with .tolerations }} - tolerations: {{ include "fl.value" (list $ $.CurrentApp .) | nindent 8 }} - {{- end }} - {{- with .affinity }} - affinity: {{ include "fl.value" (list $ $.CurrentApp .) | nindent 10 }} - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - topologyKey: "kubernetes.io/hostname" - labelSelector: - matchLabels: - strimzi.io/name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-kafka - {{- end }} - terminationGracePeriodSeconds: 120 - metricsConfig: - type: jmxPrometheusExporter - valueFrom: - configMapKeyRef: - name: kafka-metrics - key: kafka-metrics-config.yml - config: - auto.create.topics.enable: "false" - offsets.topic.replication.factor: 1 - transaction.state.log.replication.factor: 1 - transaction.state.log.min.isr: 1 - log.message.format.version: "2.7" - inter.broker.protocol.version: "2.7" - storage: - type: jbod - volumes: - - id: 0 - type: persistent-claim - size: {{ include "fl.value" (list $ . .storage.size) }} - class: {{ include "fl.value" (list $ . .storage.class) }} - deleteClaim: false - zookeeper: - priorityClassName: {{ include "fl.valueQuoted" (list $ . .priorityClassName) }} - replicas: {{ include "fl.value" (list $ . .zookeeper.replicas) }} - resources: {{ include "fl.generateContainerResources" (list $ . .zookeeper.resources) | nindent 6 }} - template: - pod: - metadata: - labels: - prometheus.deckhouse.io/custom-target: zookeeper - annotations: - prometheus.deckhouse.io/port: "9404" - prometheus.deckhouse.io/sample-limit: "{{ include "fl.value" (list $ . .prometheusSampleLimit) | default 5000 }}" - {{- with .zookeeper.tolerations }} - tolerations: {{ include "fl.value" (list $ $.CurrentApp .) | nindent 8 }} - {{- end }} - priorityClassName: {{ include "fl.valueQuoted" (list $ . .priorityClassName) }} - affinity: - {{- include "fl.value" (list $ $.CurrentApp .zookeeper.affinity) | nindent 10 }} - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - topologyKey: "kubernetes.io/hostname" - labelSelector: - matchLabels: - strimzi.io/name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-zookeeper - terminationGracePeriodSeconds: 120 - metricsConfig: {{ include "fl.value" (list $ . .zookeeper.metricsConfig) | nindent 6 }} - jvmOptions: {{ include "fl.value" (list $ . .zookeeper.jvmOptions) | nindent 6 }} - storage: - type: persistent-claim - size: {{ include "fl.value" (list $ . .zookeeper.storage.size) }} - class: {{ include "fl.value" (list $ . .zookeeper.storage.class) }} - deleteClaim: false - entityOperator: - priorityClassName: {{ include "fl.valueQuoted" (list $ . .priorityClassName) }} - template: - pod: - metadata: - labels: - apps-kafka-strimzi: entity-operator - priorityClassName: {{ include "fl.valueQuoted" (list $ . .priorityClassName) }} - {{- with .entityOperator.tolerations }} - tolerations: {{ include "fl.value" (list $ $.CurrentApp .) | nindent 8 }} - {{- end }} - {{- with .entityOperator.affinity }} - affinity: {{ include "fl.value" (list $ $.CurrentApp .) | nindent 10 }} - {{- end }} - topicOperator: - resources: {{ include "fl.generateContainerResources" (list $ . .entityOperator.topicOperator.resources) | nindent 8 }} - userOperator: - resources: {{ include "fl.generateContainerResources" (list $ . .entityOperator.userOperator.resources) | nindent 8 }} - -{{- include "kafka-topics" (list $ . .topics) }} - ---- -apiVersion: autoscaling.k8s.io/v1beta2 -kind: VerticalPodAutoscaler -metadata: - name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-kafka -spec: - targetRef: - apiVersion: "apps/v1" - kind: StatefulSet - name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-kafka - updatePolicy: - updateMode: "Off" - ---- -apiVersion: autoscaling.k8s.io/v1beta2 -kind: VerticalPodAutoscaler -metadata: - name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-zookeeper -spec: - targetRef: - apiVersion: "apps/v1" - kind: StatefulSet - name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-zookeeper - updatePolicy: - updateMode: "Off" - ---- -apiVersion: autoscaling.k8s.io/v1beta2 -kind: VerticalPodAutoscaler -metadata: - name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-entity-operator -spec: - targetRef: - apiVersion: "apps/v1" - kind: Deployment - name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-entity-operator - updatePolicy: - updateMode: "Off" - ---- -apiVersion: autoscaling.k8s.io/v1beta2 -kind: VerticalPodAutoscaler -metadata: - name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-kafka-exporter -spec: - targetRef: - apiVersion: "apps/v1" - kind: Deployment - name: {{ $.CurrentKafka.name }}-{{ $.Values.global.env }}-kafka-exporter - updatePolicy: - updateMode: "Off" - - -{{- end }} -{{- end }} - -{{- define "kafka-topics"}} - {{- $ := index . 0 }} - {{- $relativeScope := index . 1 }} - {{- $topics := index . 2 }} -{{- range $name, $topic := $topics }} ---- -apiVersion: kafka.strimzi.io/v1beta1 -kind: KafkaTopic -metadata: - name: {{ $name }} - labels: - strimzi.io/cluster: {{ $.CurrentApp.name }}-{{ $.Values.global.env }} -spec: - topicName: {{ $name }} - partitions: {{ include "fl.value" (list $ . .partitions) }} - replicas: {{ include "fl.value" (list $ . .replicas) }} - config: - retention.ms: {{ include "fl.value" (list $ . .retention) }} - segment.bytes: {{ include "fl.value" (list $ . .segment_bytes) }} - min.insync.replicas: {{ include "fl.value" (list $ . .min_insync_replicas) }} -{{- end }} -{{- end }} - diff --git a/charts/helm-apps/templates/_apps-prometheus.tpl b/charts/helm-apps/templates/_apps-prometheus.tpl deleted file mode 100644 index 956aa0f..0000000 --- a/charts/helm-apps/templates/_apps-prometheus.tpl +++ /dev/null @@ -1,57 +0,0 @@ -{{- define "apps-custom-prometheus-rules" }} - {{- $ := index . 0 }} - {{- $RelatedScope := index . 1 }} - {{- if not (kindIs "invalid" $RelatedScope) }} - {{- $_ := set $RelatedScope "__GroupVars__" (dict "type" "apps-custom-prometheus-rules" "name" "apps-custom-prometheus-rules") }} - {{- include "apps-utils.renderApps" (list $ $RelatedScope) }} -{{- end -}} -{{- end -}} - -{{- define "apps-custom-prometheus-rules.render" }} -{{- $ := . }} -{{- with $.CurrentApp }} -apiVersion: deckhouse.io/v1 -kind: CustomPrometheusRules -metadata: - labels: - component: rules - prometheus: main - name: {{ include "fl.value" (list $ . .name)}} -spec: - groups: - {{- range $_groupName, $_group := .groups }} - - name: {{ include "fl.value" (list $ . $_groupName)}} - rules: - {{- range $_alertName, $alert := .alerts}} - - alert: {{ include "fl.value" (list $ . $_alertName)}} - {{- if include "fl.isTrue" (list $ . .isTemplate) }} - {{- include "fl.value" (list $ . .content) | nindent 10 }} - {{- else }} - {{- .content | nindent 10 }} - {{- end }} - {{- end }} -{{- end }} -{{- end }} -{{- end }} - -{{- define "apps-grafana-dashboards" }} - {{- $ := index . 0 }} - {{- $RelatedScope := index . 1 }} - {{- if not (kindIs "invalid" $RelatedScope) }} - {{- $_ := set $RelatedScope "__GroupVars__" (dict "type" "apps-grafana-dashboards" "name" "apps-grafana-dashboards") }} - {{- include "apps-utils.renderApps" (list $ $RelatedScope) }} -{{- end -}} -{{- end -}} - -{{- define "apps-grafana-dashboards.render" }} -{{- $ := . }} -{{- with $.CurrentApp }} -apiVersion: deckhouse.io/v1alpha1 -kind: GrafanaDashboardDefinition -{{- include "apps-helpers.metadataGenerator" (list $ .) }} -spec: - folder: {{ include "fl.value" (list $ . .folder) | default "Custom" }} - definition: | - {{ $.Files.Get (printf "dashboards/%s.json" .name) | nindent 4 }} -{{- end }} -{{- end }} diff --git a/charts/helm-apps/templates/_apps-stateful.tpl b/charts/helm-apps/templates/_apps-stateful.tpl index 3635833..540e99f 100644 --- a/charts/helm-apps/templates/_apps-stateful.tpl +++ b/charts/helm-apps/templates/_apps-stateful.tpl @@ -51,9 +51,7 @@ spec: {{- include "apps-components.verticalPodAutoscaler" (list $ . .verticalPodAutoscaler "StatefulSet") -}} -{{- include "apps-deckhouse.metrics" $ -}} - {{ $serviceAccount -}} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/helm-apps/templates/_apps-stateless.tpl b/charts/helm-apps/templates/_apps-stateless.tpl index cf6ba34..79a09e3 100644 --- a/charts/helm-apps/templates/_apps-stateless.tpl +++ b/charts/helm-apps/templates/_apps-stateless.tpl @@ -49,8 +49,6 @@ spec: {{- include "apps-components.horizontalPodAutoscaler" (list $ . "Deployment") -}} -{{- include "apps-deckhouse.metrics" $ -}} - {{ $serviceAccount -}} {{- end }} diff --git a/charts/helm-apps/templates/_apps-utils.tpl b/charts/helm-apps/templates/_apps-utils.tpl index e52efc7..b176078 100644 --- a/charts/helm-apps/templates/_apps-utils.tpl +++ b/charts/helm-apps/templates/_apps-utils.tpl @@ -216,10 +216,6 @@ "dex-clients" "dex-authenticators" "limit-range" -"kafka-strimzi" -"custom-prometheus-rules" -"grafana-dashboards" -"infra" "pvcs" "certificates" "services" diff --git a/tests/.helm/values.yaml b/tests/.helm/values.yaml index d942398..4d73b96 100644 --- a/tests/.helm/values.yaml +++ b/tests/.helm/values.yaml @@ -54,7 +54,7 @@ apps-configmaps: data: nginx.conf: | configline1 - configline2 + configline2 ## Имя чарта. Ниже перечисляются CronJob'ы для развертывания. # Указано в .helm/requirements.yaml в репозитории приложения в ключах dependencies.name или dependencies.alias. @@ -1449,42 +1449,6 @@ apps-stateless: staticTag: "3" command: | - tail -apps-custom-prometheus-rules: - test-rule: - _include: ["apps-default-library-app"] - groups: - test-group: - alerts: - test-alert: - isTemplate: false - content: | - for: 5m - expr: sum(kafka_consumergroup_lag{}) by (consumergroup, topic) > 10000 - labels: - severity_level: "4" - annotations: - description: "Too many unprocessed messages in sentry in kafka in a topic" - summary: |- - Слишком много не обработанных сообщений в топиках kafka sentry - Проверить работу consumer топика - plk_markup_format: markdown - plk_protocol_version: "1" - plk_labels_as_annotations: pod,instance - sentry-kafka-lag: - isTemplate: true - content: | - for: 5m - expr: sum(kafka_consumergroup_lag{}) by (consumergroup, topic) > 50000 - labels: - severity_level: "3" - annotations: - description: "Too many unprocessed messages in sentry in kafka in a topic" - summary: |- - Слишком много не обработанных сообщений в топиках kafka sentry - Проверить работу consumer топика - plk_markup_format: markdown - plk_protocol_version: "1" - plk_labels_as_annotations: pod,instance apps-limit-range: mem-dafault: @@ -1557,150 +1521,6 @@ apps-certificates: hosts: | - "example-1.org" - "example-2.org" -apps-kafka-strimzi: - test-kafka: - kafka: - _include: ["base-defaultApp-stateful"] - brokers: - host: - _default: kafka-sentry-test-kafka-bootstrap - prod: kafka-sentry-prod-kafka-bootstrap - hosts: - _default: - - kafka-sentry-test-kafka-brokers - prod: - - kafka-sentry-prod-kafka-brokers - port: - _default: 9092 - version: - _default: 2.7.0 - replicas: - _default: 1 - prod: 3 - resources: - requests: - mcpu: - _default: 100 - prod: 1000 - memoryMb: - _default: 768 - prod: 4096 - limits: - memoryMb: - _default: 768 - prod: 4096 - jvmOptions: - _default: | - -Xms: 512m - -Xmx: 512m - prod: | - -Xms: 2048m - -Xmx: 2048m - storage: - size: - _default: 5Gi - prod: 100Gi - - ui: - ingress: - url: - prod: sentry-kafka.{{ include "fl.value" (list $ . $.Values.global.baseUrl) }} - dex: - allowedGroups: - _default: - - hypermetrica-external-admins - resources: - requests: - mcpu: 100 - memoryMb: 512 - limits: - memoryMb: 512 - memory: 512Mi - _include: ["base-defaultApp"] - exporter: - _include: ["base-defaultApp-stateful"] - resources: - requests: - mcpu: 200 - memoryMb: 128 - limits: - memoryMb: 128 - entityOperator: - _include: ["base-defaultApp-stateful"] - topicOperator: - resources: - requests: - mcpu: 50 - memoryMb: 256 - limits: - memoryMb: 256 - userOperator: - resources: - requests: - mcpu: 50 - memoryMb: 256 - limits: - memoryMb: 256 - topics: - snuba-commit-log: - _include: ["default-kafkaTopic"] - cdc: - _include: ["default-kafkaTopic"] - event-replacements: - _include: ["default-kafkaTopic"] - event-replacements-legacy: - _include: ["default-kafkaTopic"] - events: - _include: ["default-kafkaTopic"] - partitions: - _default: 1 - replicas: - _default: 3 - events-subscription-results: - _include: ["default-kafkaTopic"] - ingest-attachments: - _include: ["default-kafkaTopic"] - ingest-events: - _include: ["default-kafkaTopic"] - partitions: - _default: 6 - ingest-metrics: - _include: ["default-kafkaTopic"] - ingest-sessions: - _include: ["default-kafkaTopic"] - ingest-transactions: - _include: ["default-kafkaTopic"] - outcomes: - _include: ["default-kafkaTopic"] - snuba-queries: - _include: ["default-kafkaTopic"] - transactions-subscription-results: - _include: ["default-kafkaTopic"] - zookeeper: - _include: ["base-defaultApp-stateful"] - replicas: - _default: 1 - prod: 3 - resources: - requests: - mcpu: 500 - memoryMb: 1024 - limits: - memoryMb: 1024 - jvmOptions: - _default: | - -Xms: 512m - -Xmx: 512m - metricsConfig: | - type: jmxPrometheusExporter - valueFrom: - configMapKeyRef: - name: kafka-metrics - key: zookeeper-metrics-config.yml - storage: - size: - _default: 1Gi - prod: 10Gi fromSecretsEnvVars-test: # __GroupVars__ указываает что блок является группой и будет обрабатываться библиотекой helm-apps, @@ -1906,7 +1726,7 @@ apps-services: port: 80 selector: | app: test-app - + test-env-yaml: __GroupVars__: type: apps-stateless