diff --git a/operations/helm/charts/mimir-distributed/CHANGELOG.md b/operations/helm/charts/mimir-distributed/CHANGELOG.md index acf96b39916..8b4e6744499 100644 --- a/operations/helm/charts/mimir-distributed/CHANGELOG.md +++ b/operations/helm/charts/mimir-distributed/CHANGELOG.md @@ -29,6 +29,7 @@ Entries should include a reference to the Pull Request that introduced the chang ## main / unreleased +* [FEATURE] Add support for GEM's federation-frontend. See the `federation_frontend` section in the values file. #9673 * [ENHANCEMENT] Add support for setting type and internal traffic policy for Kubernetes service. Set `internalTrafficPolicy=Cluster` by default in all services with type `ClusterIP`. #9619 * [ENHANCEMENT] Add the possibility to create a dedicated serviceAccount for the `alertmanager` component by setting `alertmanager.serviceAcount.create` to true in the values. #9781 * [BUGFIX] Fix PVC template in AlertManager to not show diff in ArgoCD. #9774 diff --git a/operations/helm/charts/mimir-distributed/ci/offline/test-enterprise-federation-frontend-values.yaml b/operations/helm/charts/mimir-distributed/ci/offline/test-enterprise-federation-frontend-values.yaml new file mode 100644 index 00000000000..1306280920e --- /dev/null +++ b/operations/helm/charts/mimir-distributed/ci/offline/test-enterprise-federation-frontend-values.yaml @@ -0,0 +1,80 @@ +# Enable enterprise features (required for federation-frontend) +enterprise: + enabled: true + +# Enable and configure federation-frontend +federation_frontend: + enabled: true + replicas: 2 + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 1 + memory: 256Mi + +mimir: + structuredConfig: + auth: + type: trust + instrumentation: + enabled: false + # The federation-frontend doesn't handle auth. Disabling multi-tenant means the FF doesn't need to check for the X-Scope-OrgID header + # and will use the auth material from the proxy_targets configuration. + # If using the federation-frontend. + multitenancy_enabled: false + federation: + proxy_targets: + - name: "mimir-distributed-1" + url: "http://mimir-query-frontend.real-deployment.svc.cluster.local:8080/prometheus" + - name: "mimir-distributed-2" + url: "http://mimir-query-frontend.real-deployment.svc.cluster.local:8080/prometheus" + +# Disable all other components +distributor: + replicas: 0 +admin_api: + replicas: 0 +alertmanager: + enabled: false +ingester: + replicas: 0 +gateway: + replicas: 0 +querier: + replicas: 0 +query_frontend: + replicas: 0 +query_scheduler: + enabled: false +compactor: + replicas: 0 +store_gateway: + replicas: 0 +ruler: + enabled: false +overrides_exporter: + enabled: false + +# Disable all caches +admin-cache: + enabled: false +chunks-cache: + enabled: false +index-cache: + enabled: false +metadata-cache: + enabled: false +results-cache: + enabled: false + +# Keep using minio to allow setting up the admin bucket +minio: + enabled: false + +rollout_operator: + enabled: true + +tokengenJob: + enable: false diff --git a/operations/helm/charts/mimir-distributed/templates/_helpers.tpl b/operations/helm/charts/mimir-distributed/templates/_helpers.tpl index 0a35c171cb4..15efff476ae 100644 --- a/operations/helm/charts/mimir-distributed/templates/_helpers.tpl +++ b/operations/helm/charts/mimir-distributed/templates/_helpers.tpl @@ -444,6 +444,7 @@ Examples: "compactor" "compactor" "continuous-test" "continuous_test" "distributor" "distributor" + "federation-frontend" "federation_frontend" "gateway" "gateway" "gr-aggr-cache" "gr-aggr-cache" "gr-metricname-cache" "gr-metricname-cache" @@ -452,8 +453,8 @@ Examples: "index-cache" "index-cache" "ingester" "ingester" "memcached" "memcached" - "metadata-cache" "metadata-cache" "meta-monitoring" "metaMonitoring.grafanaAgent" + "metadata-cache" "metadata-cache" "nginx" "nginx" "overrides-exporter" "overrides_exporter" "querier" "querier" diff --git a/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-dep.yaml b/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-dep.yaml new file mode 100644 index 00000000000..773b7092be2 --- /dev/null +++ b/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-dep.yaml @@ -0,0 +1,142 @@ +{{- if and .Values.enterprise.enabled .Values.federation_frontend.enabled }} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "mimir.resourceName" (dict "ctx" . "component" "federation-frontend") }} + labels: + {{- include "mimir.labels" (dict "ctx" . "component" "federation-frontend") | nindent 4 }} + annotations: + {{- toYaml .Values.federation_frontend.annotations | nindent 4 }} + namespace: {{ .Release.Namespace | quote }} +spec: + replicas: {{ .Values.federation_frontend.replicas }} + selector: + matchLabels: + {{- include "mimir.selectorLabels" (dict "ctx" . "component" "federation-frontend" "memberlist" true) | nindent 6 }} + strategy: + {{- toYaml .Values.federation_frontend.strategy | nindent 4 }} + template: + metadata: + labels: + {{- include "mimir.podLabels" (dict "ctx" . "component" "federation-frontend" "memberlist" true) | nindent 8 }} + annotations: + {{- include "mimir.podAnnotations" (dict "ctx" . "component" "federation-frontend") | nindent 8 }} + spec: + serviceAccountName: {{ template "mimir.serviceAccountName" . }} + {{- if .Values.federation_frontend.priorityClassName }} + priorityClassName: {{ .Values.federation_frontend.priorityClassName }} + {{- end }} + securityContext: + {{- include "mimir.lib.podSecurityContext" (dict "ctx" . "component" "federation-frontend") | nindent 8 }} + {{- with .Values.federation_frontend.initContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- if .Values.image.pullSecrets }} + imagePullSecrets: + {{- range .Values.image.pullSecrets }} + - name: {{ . }} + {{- end }} + {{- end }} + containers: + - name: federation-frontend + image: {{ include "mimir.imageReference" . | quote }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + args: + - "-target=federation-frontend" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + {{- range $key, $value := .Values.federation_frontend.extraArgs }} + - "-{{ $key }}={{ $value }}" + {{- end }} + volumeMounts: + {{- if .Values.federation_frontend.extraVolumeMounts }} + {{ toYaml .Values.federation_frontend.extraVolumeMounts | nindent 12}} + {{- end }} + {{- if .Values.global.extraVolumeMounts }} + {{ toYaml .Values.global.extraVolumeMounts | nindent 12}} + {{- end }} + - name: config + mountPath: /etc/mimir + - name: license + mountPath: /license + - name: runtime-config + mountPath: /var/{{ include "mimir.name" . }} + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: {{ include "mimir.serverHttpListenPort" . }} + protocol: TCP + - name: grpc + containerPort: {{ include "mimir.serverGrpcListenPort" . }} + protocol: TCP + - name: memberlist + containerPort: {{ include "mimir.memberlistBindPort" . }} + protocol: TCP + livenessProbe: + {{- toYaml .Values.federation_frontend.livenessProbe | nindent 12 }} + readinessProbe: + {{- toYaml .Values.federation_frontend.readinessProbe | nindent 12 }} + resources: + {{- toYaml .Values.federation_frontend.resources | nindent 12 }} + securityContext: + {{- toYaml .Values.federation_frontend.containerSecurityContext | nindent 12 }} + {{- $jaeger_queue_size := dig "jaegerReporterMaxQueueSize" nil .Values.federation_frontend }} + {{- if or .Values.global.extraEnv .Values.federation_frontend.env $jaeger_queue_size }} + env: + {{- with .Values.global.extraEnv }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.federation_frontend.env }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- if $jaeger_queue_size }} + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: {{$jaeger_queue_size | toString | toYaml }} + {{- end }} + {{- end }} + {{- if or .Values.global.extraEnvFrom .Values.federation_frontend.extraEnvFrom }} + envFrom: + {{- with .Values.global.extraEnvFrom }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with .Values.federation_frontend.extraEnvFrom }} + {{- toYaml . | nindent 12 }} + {{- end }} + {{- end }} +{{- if .Values.federation_frontend.extraContainers }} +{{ toYaml .Values.federation_frontend.extraContainers | nindent 8 }} +{{- end }} + {{- with .Values.federation_frontend.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.federation_frontend.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- include "mimir.lib.topologySpreadConstraints" (dict "ctx" . "component" "federation-frontend") | nindent 6 }} + {{- with .Values.federation_frontend.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + terminationGracePeriodSeconds: {{ .Values.federation_frontend.terminationGracePeriodSeconds }} + volumes: + - name: config + {{- include "mimir.configVolume" . | nindent 10 }} + - name: license + secret: + secretName: {{ tpl .Values.license.secretName . }} + - name: runtime-config + configMap: + name: {{ template "mimir.fullname" . }}-runtime + {{- if .Values.federation_frontend.extraVolumes }} + {{- toYaml .Values.federation_frontend.extraVolumes | nindent 8 }} + {{- end }} + {{- if .Values.global.extraVolumes }} + {{ toYaml .Values.global.extraVolumes | nindent 8}} + {{- end }} + - name: active-queries + emptyDir: {} +{{- end }} diff --git a/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-pdb.yaml b/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-pdb.yaml new file mode 100644 index 00000000000..ab656902c28 --- /dev/null +++ b/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-pdb.yaml @@ -0,0 +1,3 @@ +{{- if and .Values.enterprise.enabled .Values.federation_frontend.enabled }} +{{- include "mimir.lib.podDisruptionBudget" (dict "ctx" $ "component" "federation-frontend" "memberlist" true) }} +{{- end }} diff --git a/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-servmon.yaml b/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-servmon.yaml new file mode 100644 index 00000000000..971ace61410 --- /dev/null +++ b/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-servmon.yaml @@ -0,0 +1,3 @@ +{{- if and .Values.enterprise.enabled .Values.federation_frontend.enabled }} +{{- include "mimir.lib.serviceMonitor" (dict "ctx" $ "component" "federation-frontend" "memberlist" true) }} +{{- end }} diff --git a/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-svc.yaml b/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-svc.yaml new file mode 100644 index 00000000000..a40114c031b --- /dev/null +++ b/operations/helm/charts/mimir-distributed/templates/federation-frontend/federation-frontend-svc.yaml @@ -0,0 +1,27 @@ +{{- if and .Values.enterprise.enabled .Values.federation_frontend.enabled }} +apiVersion: v1 +kind: Service +metadata: + name: {{ include "mimir.resourceName" (dict "ctx" . "component" "federation-frontend") }} + labels: + {{- include "mimir.labels" (dict "ctx" . "component" "federation-frontend" "memberlist" true) | nindent 4 }} + {{- with .Values.federation_frontend.service.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + annotations: + {{- toYaml .Values.federation_frontend.service.annotations | nindent 4 }} + namespace: {{ .Release.Namespace | quote }} +spec: + type: ClusterIP + ports: + - port: {{ include "mimir.serverHttpListenPort" . }} + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: {{ include "mimir.serverGrpcListenPort" . }} + protocol: TCP + name: grpc + targetPort: grpc + selector: + {{- include "mimir.selectorLabels" (dict "ctx" . "component" "federation-frontend" "memberlist" true) | nindent 4 }} +{{- end }} diff --git a/operations/helm/charts/mimir-distributed/templates/minio/create-bucket-job.yaml b/operations/helm/charts/mimir-distributed/templates/minio/create-bucket-job.yaml index 5c92e40cca3..4685ace2dbe 100644 --- a/operations/helm/charts/mimir-distributed/templates/minio/create-bucket-job.yaml +++ b/operations/helm/charts/mimir-distributed/templates/minio/create-bucket-job.yaml @@ -1,9 +1,9 @@ +{{- if .Values.minio.enabled }} +{{- if .Values.minio.buckets }} # Minio provides post-install hook to create bucket # however the hook won't be executed if helm install is run # with --wait flag. Hence this job is a workaround for that. # See https://github.com/grafana/mimir/issues/2464 -{{- if .Values.minio.enabled }} -{{- if .Values.minio.buckets }} apiVersion: batch/v1 kind: Job metadata: diff --git a/operations/helm/charts/mimir-distributed/templates/validate.yaml b/operations/helm/charts/mimir-distributed/templates/validate.yaml index f2dd5e9bc62..99b45fb8ab4 100644 --- a/operations/helm/charts/mimir-distributed/templates/validate.yaml +++ b/operations/helm/charts/mimir-distributed/templates/validate.yaml @@ -264,3 +264,7 @@ {{- if and .Values.ingress.enabled .Values.gateway.ingress.enabled -}} {{- fail "You have selected both ingress.enabled and gateway.ingress.enabled, you must select either ingress or gateway but not both" -}} {{- end -}} + +{{- if and (not .Values.enterprise.enabled) .Values.federation_frontend.enabled -}} +{{- fail "You have federation_frontend.enabled=true, but enterprise.enabled=false. Federation Frontend is an enterprise-only feature and requires enterprise mode to be enabled." }} +{{- end -}} diff --git a/operations/helm/charts/mimir-distributed/values.yaml b/operations/helm/charts/mimir-distributed/values.yaml index 84791dfe1cd..55793b3c96e 100644 --- a/operations/helm/charts/mimir-distributed/values.yaml +++ b/operations/helm/charts/mimir-distributed/values.yaml @@ -50,11 +50,11 @@ global: clusterDomain: cluster.local. # -- Common environment variables to add to all pods directly managed by this chart. - # scope: admin-api, alertmanager, compactor, continuous-test, distributor, gateway, graphite-proxy, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, smoke-test, tokengen + # scope: admin-api, alertmanager, compactor, continuous-test, distributor, gateway, graphite-proxy, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, smoke-test, tokengen, federation-frontend extraEnv: [] # -- Common source of environment injections to add to all pods directly managed by this chart. - # scope: admin-api, alertmanager, compactor, continuous-test, distributor, gateway, graphite-proxy, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, smoke-test, tokengen + # scope: admin-api, alertmanager, compactor, continuous-test, distributor, gateway, graphite-proxy, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, smoke-test, tokengen, federation-frontend # For example to inject values from a Secret, use: # extraEnvFrom: # - secretRef: @@ -62,19 +62,19 @@ global: extraEnvFrom: [] # -- Common volumes to add to all pods directly managed by this chart. - # scope: admin-api, alertmanager, compactor, continuous-test, distributor, gateway, graphite-proxy, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, smoke-test, tokengen + # scope: admin-api, alertmanager, compactor, continuous-test, distributor, gateway, graphite-proxy, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, smoke-test, tokengen, federation-frontend extraVolumes: [] # -- Common mount points to add to all pods directly managed by this chart. - # scope: admin-api, alertmanager, compactor, continuous-test, distributor, gateway, graphite-proxy, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, smoke-test, tokengen + # scope: admin-api, alertmanager, compactor, continuous-test, distributor, gateway, graphite-proxy, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, smoke-test, tokengen, federation-frontend extraVolumeMounts: [] # -- Pod annotations for all pods directly managed by this chart. Usable for example to associate a version to 'global.extraEnv' and 'global.extraEnvFrom' and trigger a restart of the affected services. - # scope: admin-api, alertmanager, compactor, distributor, gateway, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, tokengen + # scope: admin-api, alertmanager, compactor, distributor, gateway, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, tokengen, federation-frontend podAnnotations: {} # -- Pod labels for all pods directly managed by this chart. - # scope: admin-api, alertmanager, compactor, distributor, gateway, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, tokengen + # scope: admin-api, alertmanager, compactor, distributor, gateway, ingester, memcached, nginx, overrides-exporter, querier, query-frontend, query-scheduler, ruler, store-gateway, tokengen, federation-frontend podLabels: {} serviceAccount: @@ -294,7 +294,11 @@ mimir: ingester: url: http://{{ template "mimir.fullname" . }}-ingester-headless.{{ .Release.Namespace }}.svc:{{ include "mimir.serverHttpListenPort" . }} query_frontend: + {{ if .Values.federation_frontend.enabled }} + url: http://{{ template "mimir.fullname" . }}-federation-frontend.{{ .Release.Namespace }}.svc:{{ include "mimir.serverHttpListenPort" . }} + {{ else }} url: http://{{ template "mimir.fullname" . }}-query-frontend.{{ .Release.Namespace }}.svc:{{ include "mimir.serverHttpListenPort" . }} + {{ end }} ruler: url: http://{{ template "mimir.fullname" . }}-ruler.{{ .Release.Namespace }}.svc:{{ include "mimir.serverHttpListenPort" . }} store_gateway: @@ -4426,6 +4430,93 @@ gr-metricname-cache: annotations: {} labels: {} +federation_frontend: + # -- Specifies whether the federation-frontend should be enabled + enabled: false + # -- Number of replicas for the federation-frontend + replicas: 2 + # -- Deployment strategy for the federation-frontend pods + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 0 + maxSurge: 15% + + # -- Resource requests and limits for the federation-frontend + resources: + requests: + cpu: 100m + memory: 128Mi + + initContainers: [] + + # -- Additional CLI arguments for the federation-frontend container + extraArgs: {} + + # -- Additional environment variables for the federation-frontend container + env: [] + + # -- Extra environment from secret/configmap for continuous test containers + # For example to inject values from a Secret, use: + # extraEnvFrom: + # - secretRef: + # name: mysecret + extraEnvFrom: [] + + # -- Additional volume mounts for the federation-frontend container + extraVolumeMounts: [] + # -- Additional volumes for the federation-frontend pods + extraVolumes: [] + + # -- Additional containers to be added to the graphite-metric-name-cache pod. + extraContainers: [] + + # -- The name of the PriorityClass for federation-frontend pods + priorityClassName: null + # -- SecurityContext override for federation-frontend pods + securityContext: {} + + # -- The SecurityContext for federation-frontend containers + containerSecurityContext: + allowPrivilegeEscalation: false + readOnlyRootFilesystem: true + capabilities: + drop: [ALL] + + # -- Grace period to allow the federation-frontend to shutdown before it is killed + terminationGracePeriodSeconds: 180 + # -- Affinity configuration for federation-frontend pods + affinity: {} + # -- Node selector configuration for federation-frontend pods + nodeSelector: {} + # -- Tolerations for federation-frontend pods + tolerations: [] + # -- Additional pod labels + podLabels: {} + # -- Additional pod annotations + podAnnotations: {} + # -- Additional annotations for the Deployment + annotations: {} + # -- Readiness probe configuration + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + # -- Service configuration + service: + # -- Additional annotations for the federation-frontend service + annotations: {} + # -- Additional labels for the federation-frontend service + labels: {} + # -- Pod Disruption Budget configuration + podDisruptionBudget: + maxUnavailable: 1 + + # -- Jaeger reporter queue size + # Set to 'null' to use the Jaeger client's default value + jaegerReporterMaxQueueSize: null + # -- Settings for the smoke-test job. This is meant to run as a Helm test hook # (`helm test RELEASE`) after installing the chart. It quickly verifies # that writing and reading metrics works. Currently not supported for diff --git a/operations/helm/tests/enterprise-https-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml b/operations/helm/tests/enterprise-https-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml deleted file mode 100644 index 374758234cb..00000000000 --- a/operations/helm/tests/enterprise-https-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Source: mimir-distributed/templates/minio/create-bucket-job.yaml -# Minio provides post-install hook to create bucket -# however the hook won't be executed if helm install is run -# with --wait flag. Hence this job is a workaround for that. -# See https://github.com/grafana/mimir/issues/2464 diff --git a/operations/helm/tests/large-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml b/operations/helm/tests/large-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml deleted file mode 100644 index 374758234cb..00000000000 --- a/operations/helm/tests/large-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Source: mimir-distributed/templates/minio/create-bucket-job.yaml -# Minio provides post-install hook to create bucket -# however the hook won't be executed if helm install is run -# with --wait flag. Hence this job is a workaround for that. -# See https://github.com/grafana/mimir/issues/2464 diff --git a/operations/helm/tests/openshift-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml b/operations/helm/tests/openshift-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml deleted file mode 100644 index 374758234cb..00000000000 --- a/operations/helm/tests/openshift-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Source: mimir-distributed/templates/minio/create-bucket-job.yaml -# Minio provides post-install hook to create bucket -# however the hook won't be executed if helm install is run -# with --wait flag. Hence this job is a workaround for that. -# See https://github.com/grafana/mimir/issues/2464 diff --git a/operations/helm/tests/scheduler-name-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml b/operations/helm/tests/scheduler-name-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml deleted file mode 100644 index 374758234cb..00000000000 --- a/operations/helm/tests/scheduler-name-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Source: mimir-distributed/templates/minio/create-bucket-job.yaml -# Minio provides post-install hook to create bucket -# however the hook won't be executed if helm install is run -# with --wait flag. Hence this job is a workaround for that. -# See https://github.com/grafana/mimir/issues/2464 diff --git a/operations/helm/tests/small-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml b/operations/helm/tests/small-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml deleted file mode 100644 index 374758234cb..00000000000 --- a/operations/helm/tests/small-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -# Source: mimir-distributed/templates/minio/create-bucket-job.yaml -# Minio provides post-install hook to create bucket -# however the hook won't be executed if helm install is run -# with --wait flag. Hence this job is a workaround for that. -# See https://github.com/grafana/mimir/issues/2464 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/deployment.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/deployment.yaml new file mode 100644 index 00000000000..61590e53c83 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/deployment.yaml @@ -0,0 +1,65 @@ +--- +# Source: mimir-distributed/charts/rollout_operator/templates/deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-federation-frontend-values-rollout-operator + labels: + helm.sh/chart: rollout-operator-0.18.0 + app.kubernetes.io/name: rollout-operator + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/version: "v0.19.1" + app.kubernetes.io/managed-by: Helm +spec: + replicas: 1 + minReadySeconds: 10 + selector: + matchLabels: + app.kubernetes.io/name: rollout-operator + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + template: + metadata: + labels: + app.kubernetes.io/name: rollout-operator + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + spec: + serviceAccountName: test-enterprise-federation-frontend-values-rollout-operator + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + containers: + - name: rollout-operator + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + image: "grafana/rollout-operator:v0.19.1" + imagePullPolicy: IfNotPresent + args: + - -kubernetes.namespace=citestns + ports: + - name: http-metrics + containerPort: 8001 + protocol: TCP + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 5 + timeoutSeconds: 1 + resources: + limits: + memory: 200Mi + requests: + cpu: 100m + memory: 100Mi diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/role.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/role.yaml new file mode 100644 index 00000000000..14d6a51f3a2 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/role.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/charts/rollout_operator/templates/role.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: test-enterprise-federation-frontend-values-rollout-operator +rules: +- apiGroups: + - "" + resources: + - pods + verbs: + - list + - get + - watch + - delete +- apiGroups: + - apps + resources: + - statefulsets + verbs: + - list + - get + - watch +- apiGroups: + - apps + resources: + - statefulsets/status + verbs: + - update diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/rolebinding.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/rolebinding.yaml new file mode 100644 index 00000000000..0a191fd6088 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/rolebinding.yaml @@ -0,0 +1,13 @@ +--- +# Source: mimir-distributed/charts/rollout_operator/templates/rolebinding.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: test-enterprise-federation-frontend-values-rollout-operator +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: test-enterprise-federation-frontend-values-rollout-operator +subjects: +- kind: ServiceAccount + name: test-enterprise-federation-frontend-values-rollout-operator diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/serviceaccount.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/serviceaccount.yaml new file mode 100644 index 00000000000..2b0eeffcb8c --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/charts/rollout_operator/templates/serviceaccount.yaml @@ -0,0 +1,12 @@ +--- +# Source: mimir-distributed/charts/rollout_operator/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-enterprise-federation-frontend-values-rollout-operator + labels: + helm.sh/chart: rollout-operator-0.18.0 + app.kubernetes.io/name: rollout-operator + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/version: "v0.19.1" + app.kubernetes.io/managed-by: Helm diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/admin-api/admin-api-dep.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/admin-api/admin-api-dep.yaml new file mode 100644 index 00000000000..7b2c03eb0b1 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/admin-api/admin-api-dep.yaml @@ -0,0 +1,118 @@ +--- +# Source: mimir-distributed/templates/admin-api/admin-api-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + {} + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: admin-api + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: test-enterprise-federation-frontend-values-mimir-admin-api + namespace: "citestns" +spec: + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: admin-api + strategy: + rollingUpdate: + maxSurge: 15% + maxUnavailable: 0 + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: admin-api + app.kubernetes.io/part-of: memberlist + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + containers: + - name: admin-api + imagePullPolicy: IfNotPresent + args: + - "-target=admin-api" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: license + mountPath: /license + - name: storage + mountPath: "/data" + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + resources: + requests: + cpu: 10m + memory: 32Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: admin-api + terminationGracePeriodSeconds: 60 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: storage + emptyDir: {} + - name: active-queries + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/admin-api/admin-api-pdb.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/admin-api/admin-api-pdb.yaml new file mode 100644 index 00000000000..fb08b8a8918 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/admin-api/admin-api-pdb.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/admin-api/admin-api-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-federation-frontend-values-mimir-admin-api + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: admin-api + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: admin-api + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/admin-api/admin-api-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/admin-api/admin-api-svc.yaml new file mode 100644 index 00000000000..dd6ae495be2 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/admin-api/admin-api-svc.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/templates/admin-api/admin-api-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-admin-api + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: admin-api + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: admin-api diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/compactor/compactor-pdb.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/compactor/compactor-pdb.yaml new file mode 100644 index 00000000000..271bf6d81fa --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/compactor/compactor-pdb.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/compactor/compactor-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-federation-frontend-values-mimir-compactor + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: compactor + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: compactor + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/compactor/compactor-statefulset.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/compactor/compactor-statefulset.yaml new file mode 100644 index 00000000000..95ff65866ab --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/compactor/compactor-statefulset.yaml @@ -0,0 +1,126 @@ +--- +# Source: mimir-distributed/templates/compactor/compactor-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-federation-frontend-values-mimir-compactor + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: compactor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + podManagementPolicy: OrderedReady + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: compactor + updateStrategy: + type: RollingUpdate + serviceName: test-enterprise-federation-frontend-values-mimir-compactor + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: storage + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: "2Gi" + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: compactor + app.kubernetes.io/part-of: memberlist + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: compactor + terminationGracePeriodSeconds: 900 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: active-queries + emptyDir: {} + containers: + - name: compactor + imagePullPolicy: IfNotPresent + args: + - "-target=compactor" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: license + mountPath: /license + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 60 + resources: + requests: + cpu: 100m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/compactor/compactor-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/compactor/compactor-svc.yaml new file mode 100644 index 00000000000..b7c1dcac199 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/compactor/compactor-svc.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/templates/compactor/compactor-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-compactor + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: compactor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: compactor diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-dep.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-dep.yaml new file mode 100644 index 00000000000..fc4164ea28a --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-dep.yaml @@ -0,0 +1,131 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-federation-frontend-values-mimir-distributor + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + # If replicas is not number (when using values file it's float64, when using --set arg it's int64) and is false (i.e. null) don't set it + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: distributor + strategy: + rollingUpdate: + maxSurge: 15% + maxUnavailable: 0 + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + containers: + - name: distributor + imagePullPolicy: IfNotPresent + args: + - "-target=distributor" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + # When write requests go through distributors via gRPC, we want gRPC clients to re-resolve the distributors DNS + # endpoint before the distributor process is terminated, in order to avoid any failures during graceful shutdown. + # To achieve it, we set a shutdown delay greater than the gRPC max connection age. + - "-server.grpc.keepalive.max-connection-age=60s" + - "-server.grpc.keepalive.max-connection-age-grace=5m" + - "-server.grpc.keepalive.max-connection-idle=1m" + - "-shutdown-delay=90s" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: license + mountPath: /license + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + resources: + requests: + cpu: 100m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + env: + - name: "GOMAXPROCS" + value: "8" + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: "1000" + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: distributor + terminationGracePeriodSeconds: 100 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: storage + emptyDir: {} + - name: active-queries + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-pdb.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-pdb.yaml new file mode 100644 index 00000000000..f99388e1c26 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-pdb.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-federation-frontend-values-mimir-distributor + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: distributor + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: distributor + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-svc-headless.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-svc-headless.yaml new file mode 100644 index 00000000000..219c44a6131 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-svc-headless.yaml @@ -0,0 +1,32 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-distributor-headless + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + clusterIP: None + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: distributor diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-svc.yaml new file mode 100644 index 00000000000..17c163c00fc --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/distributor/distributor-svc.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-distributor + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: distributor diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/federation-frontend/federation-frontend-dep.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/federation-frontend/federation-frontend-dep.yaml new file mode 100644 index 00000000000..2978e6ad324 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/federation-frontend/federation-frontend-dep.yaml @@ -0,0 +1,107 @@ +--- +# Source: mimir-distributed/templates/federation-frontend/federation-frontend-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-federation-frontend-values-mimir-federation-frontend + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: federation-frontend + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + replicas: 2 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: federation-frontend + strategy: + rollingUpdate: + maxSurge: 15% + maxUnavailable: 0 + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: federation-frontend + app.kubernetes.io/part-of: memberlist + annotations: + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + containers: + - name: federation-frontend + imagePullPolicy: IfNotPresent + args: + - "-target=federation-frontend" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: license + mountPath: /license + - name: runtime-config + mountPath: /var/mimir + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + resources: + limits: + cpu: 1 + memory: 256Mi + requests: + cpu: 100m + memory: 128Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + + terminationGracePeriodSeconds: 180 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: active-queries + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/federation-frontend/federation-frontend-pdb.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/federation-frontend/federation-frontend-pdb.yaml new file mode 100644 index 00000000000..bc0e01bbc04 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/federation-frontend/federation-frontend-pdb.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/federation-frontend/federation-frontend-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-federation-frontend-values-mimir-federation-frontend + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: federation-frontend + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: federation-frontend + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/federation-frontend/federation-frontend-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/federation-frontend/federation-frontend-svc.yaml new file mode 100644 index 00000000000..e13b7dfd659 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/federation-frontend/federation-frontend-svc.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/templates/federation-frontend/federation-frontend-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-federation-frontend + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: federation-frontend + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: federation-frontend diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gateway/gateway-dep.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gateway/gateway-dep.yaml new file mode 100644 index 00000000000..4630ccef88f --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gateway/gateway-dep.yaml @@ -0,0 +1,109 @@ +--- +# Source: mimir-distributed/templates/gateway/gateway-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + {} + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: gateway + app.kubernetes.io/managed-by: Helm + name: test-enterprise-federation-frontend-values-mimir-gateway + namespace: "citestns" +spec: + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: gateway + strategy: + rollingUpdate: + maxSurge: 15% + maxUnavailable: 0 + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: gateway + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + containers: + - name: gateway + imagePullPolicy: IfNotPresent + args: + - "-target=gateway" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: license + mountPath: /license + - name: tmp + mountPath: /data + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 15 + timeoutSeconds: 1 + resources: + {} + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: gateway + terminationGracePeriodSeconds: 30 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: tmp + emptyDir: {} + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: storage + emptyDir: {} + - name: active-queries + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gateway/gateway-pdb.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gateway/gateway-pdb.yaml new file mode 100644 index 00000000000..5fe298c7c0e --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gateway/gateway-pdb.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/gateway/gateway-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-federation-frontend-values-mimir-gateway + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: gateway + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: gateway + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gateway/gateway-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gateway/gateway-svc.yaml new file mode 100644 index 00000000000..19e89e9b60a --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gateway/gateway-svc.yaml @@ -0,0 +1,29 @@ +--- +# Source: mimir-distributed/templates/gateway/gateway-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-gateway + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: gateway + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 80 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 8080 + protocol: TCP + name: legacy-http-metrics + targetPort: http-metrics + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: gateway diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gossip-ring/gossip-ring-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gossip-ring/gossip-ring-svc.yaml new file mode 100644 index 00000000000..0aec825b5e9 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/gossip-ring/gossip-ring-svc.yaml @@ -0,0 +1,26 @@ +--- +# Source: mimir-distributed/templates/gossip-ring/gossip-ring-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-gossip-ring + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: gossip-ring + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + type: ClusterIP + clusterIP: None + ports: + - name: gossip-ring + port: 7946 + appProtocol: tcp + protocol: TCP + targetPort: 7946 + publishNotReadyAddresses: true + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/part-of: memberlist diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-pdb.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-pdb.yaml new file mode 100644 index 00000000000..940666249b9 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-pdb.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-federation-frontend-values-mimir-ingester + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-statefulset.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-statefulset.yaml new file mode 100644 index 00000000000..9bda7209d95 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-statefulset.yaml @@ -0,0 +1,423 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-federation-frontend-values-mimir-ingester-zone-a + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "ingester-zone-a" + rollout-group: ingester + zone: zone-a + annotations: + rollout-max-unavailable: "50" + namespace: "citestns" +spec: + podManagementPolicy: Parallel + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + rollout-group: ingester + zone: zone-a + updateStrategy: + type: OnDelete + serviceName: test-enterprise-federation-frontend-values-mimir-ingester-headless + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: storage + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: "2Gi" + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + name: "ingester-zone-a" + rollout-group: ingester + zone: zone-a + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + terminationGracePeriodSeconds: 1200 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: active-queries + emptyDir: {} + containers: + - name: ingester + imagePullPolicy: IfNotPresent + args: + - "-target=ingester" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + - "-ingester.ring.instance-availability-zone=zone-a" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: license + mountPath: /license + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 60 + resources: + requests: + cpu: 100m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + env: + + - name: "GOMAXPROCS" + value: "4" + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: "1000" +--- +# Source: mimir-distributed/templates/ingester/ingester-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-federation-frontend-values-mimir-ingester-zone-b + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "ingester-zone-b" + rollout-group: ingester + zone: zone-b + annotations: + rollout-max-unavailable: "50" + namespace: "citestns" +spec: + podManagementPolicy: Parallel + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + rollout-group: ingester + zone: zone-b + updateStrategy: + type: OnDelete + serviceName: test-enterprise-federation-frontend-values-mimir-ingester-headless + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: storage + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: "2Gi" + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + name: "ingester-zone-b" + rollout-group: ingester + zone: zone-b + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + terminationGracePeriodSeconds: 1200 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: active-queries + emptyDir: {} + containers: + - name: ingester + imagePullPolicy: IfNotPresent + args: + - "-target=ingester" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + - "-ingester.ring.instance-availability-zone=zone-b" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: license + mountPath: /license + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 60 + resources: + requests: + cpu: 100m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + env: + + - name: "GOMAXPROCS" + value: "4" + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: "1000" +--- +# Source: mimir-distributed/templates/ingester/ingester-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-federation-frontend-values-mimir-ingester-zone-c + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "ingester-zone-c" + rollout-group: ingester + zone: zone-c + annotations: + rollout-max-unavailable: "50" + namespace: "citestns" +spec: + podManagementPolicy: Parallel + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + rollout-group: ingester + zone: zone-c + updateStrategy: + type: OnDelete + serviceName: test-enterprise-federation-frontend-values-mimir-ingester-headless + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: storage + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: "2Gi" + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + name: "ingester-zone-c" + rollout-group: ingester + zone: zone-c + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + terminationGracePeriodSeconds: 1200 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: active-queries + emptyDir: {} + containers: + - name: ingester + imagePullPolicy: IfNotPresent + args: + - "-target=ingester" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + - "-ingester.ring.instance-availability-zone=zone-c" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: license + mountPath: /license + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 60 + resources: + requests: + cpu: 100m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + env: + + - name: "GOMAXPROCS" + value: "4" + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: "1000" diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-svc-headless.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-svc-headless.yaml new file mode 100644 index 00000000000..b46ddec5e34 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-svc-headless.yaml @@ -0,0 +1,32 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-ingester-headless + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + clusterIP: None + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-svc.yaml new file mode 100644 index 00000000000..6720cb433fa --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/ingester/ingester-svc.yaml @@ -0,0 +1,105 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-ingester-zone-a + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "ingester-zone-a" + rollout-group: ingester + zone: zone-a + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + rollout-group: ingester + zone: zone-a +--- +# Source: mimir-distributed/templates/ingester/ingester-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-ingester-zone-b + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "ingester-zone-b" + rollout-group: ingester + zone: zone-b + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + rollout-group: ingester + zone: zone-b +--- +# Source: mimir-distributed/templates/ingester/ingester-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-ingester-zone-c + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "ingester-zone-c" + rollout-group: ingester + zone: zone-c + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: ingester + rollout-group: ingester + zone: zone-c diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/license-secret.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/license-secret.yaml new file mode 100644 index 00000000000..0c35f53415e --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/license-secret.yaml @@ -0,0 +1,13 @@ +--- +# Source: mimir-distributed/templates/license-secret.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-enterprise-federation-frontend-values-mimir-license + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +data: + license.jwt: Tk9UQVZBTElETElDRU5TRQ== diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/mimir-config.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/mimir-config.yaml new file mode 100644 index 00000000000..2d86ead21ae --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/mimir-config.yaml @@ -0,0 +1,143 @@ +--- +# Source: mimir-distributed/templates/mimir-config.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: test-enterprise-federation-frontend-values-mimir-config + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +data: + mimir.yaml: | + + activity_tracker: + filepath: /active-query-tracker/activity.log + admin_api: + leader_election: + enabled: true + ring: + kvstore: + store: memberlist + admin_client: + storage: null + alertmanager: + data_dir: /data + enable_api: true + external_url: /alertmanager + fallback_config_file: /configs/alertmanager_fallback_config.yaml + auth: + admin: + pass_access_policy_name: true + pass_token_name: true + type: trust + blocks_storage: + backend: s3 + bucket_store: + sync_dir: /data/tsdb-sync + tsdb: + dir: /data/tsdb + head_compaction_interval: 15m + wal_replay_concurrency: 3 + cluster_name: test-enterprise-federation-frontend-values + compactor: + compaction_interval: 30m + data_dir: /data + deletion_delay: 2h + first_level_compaction_wait_period: 25m + max_closing_blocks_concurrency: 2 + max_opening_blocks_concurrency: 4 + sharding_ring: + heartbeat_period: 1m + heartbeat_timeout: 4m + wait_stability_min_duration: 1m + symbols_flushers_concurrency: 4 + distributor: + ring: + heartbeat_period: 1m + heartbeat_timeout: 4m + federation: + proxy_targets: + - name: mimir-distributed-1 + url: http://mimir-query-frontend.real-deployment.svc.cluster.local:8080/prometheus + - name: mimir-distributed-2 + url: http://mimir-query-frontend.real-deployment.svc.cluster.local:8080/prometheus + frontend: + log_query_request_headers: X-Access-Policy-Name,X-Token-Name + parallelize_shardable_queries: true + frontend_worker: + frontend_address: test-enterprise-federation-frontend-values-mimir-query-frontend-headless.citestns.svc:9095 + grpc_client_config: + max_send_msg_size: 419430400 + gateway: + proxy: + admin_api: + url: http://test-enterprise-federation-frontend-values-mimir-admin-api.citestns.svc:8080 + alertmanager: + url: http://test-enterprise-federation-frontend-values-mimir-alertmanager-headless.citestns.svc:8080 + compactor: + url: http://test-enterprise-federation-frontend-values-mimir-compactor.citestns.svc:8080 + default: + url: http://test-enterprise-federation-frontend-values-mimir-admin-api.citestns.svc:8080 + distributor: + url: dns:///test-enterprise-federation-frontend-values-mimir-distributor-headless.citestns.svc.cluster.local.:9095 + ingester: + url: http://test-enterprise-federation-frontend-values-mimir-ingester-headless.citestns.svc:8080 + query_frontend: + url: http://test-enterprise-federation-frontend-values-mimir-federation-frontend.citestns.svc:8080 + ruler: + url: http://test-enterprise-federation-frontend-values-mimir-ruler.citestns.svc:8080 + store_gateway: + url: http://test-enterprise-federation-frontend-values-mimir-store-gateway-headless.citestns.svc:8080 + ingester: + ring: + final_sleep: 0s + heartbeat_period: 2m + heartbeat_timeout: 10m + num_tokens: 512 + tokens_file_path: /data/tokens + unregister_on_shutdown: false + zone_awareness_enabled: true + ingester_client: + grpc_client_config: + max_recv_msg_size: 104857600 + max_send_msg_size: 104857600 + instrumentation: + distributor_client: + address: dns:///test-enterprise-federation-frontend-values-mimir-distributor-headless.citestns.svc.cluster.local.:9095 + enabled: false + license: + path: /license/license.jwt + limits: + max_cache_freshness: 10m + max_query_parallelism: 240 + max_total_query_length: 12000h + memberlist: + abort_if_cluster_join_fails: false + compression_enabled: false + join_members: + - dns+test-enterprise-federation-frontend-values-mimir-gossip-ring.citestns.svc.cluster.local.:7946 + multitenancy_enabled: false + querier: + max_concurrent: 16 + query_scheduler: + max_outstanding_requests_per_tenant: 800 + ruler: + alertmanager_url: dnssrvnoa+http://_http-metrics._tcp.test-enterprise-federation-frontend-values-mimir-alertmanager-headless.citestns.svc.cluster.local./alertmanager + enable_api: true + rule_path: /data + runtime_config: + file: /var/mimir/runtime.yaml + store_gateway: + sharding_ring: + heartbeat_period: 1m + heartbeat_timeout: 4m + kvstore: + prefix: multi-zone/ + tokens_file_path: /data/tokens + unregister_on_shutdown: false + wait_stability_min_duration: 1m + zone_awareness_enabled: true + usage_stats: + installation_mode: helm diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/podsecuritypolicy.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/podsecuritypolicy.yaml new file mode 100644 index 00000000000..6816e2c315c --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/podsecuritypolicy.yaml @@ -0,0 +1,40 @@ +--- +# Source: mimir-distributed/templates/podsecuritypolicy.yaml +apiVersion: policy/v1beta1 +kind: PodSecurityPolicy +metadata: + name: test-enterprise-federation-frontend-values-mimir + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + annotations: + "seccomp.security.alpha.kubernetes.io/allowedProfileNames": runtime/default +spec: + privileged: false + allowPrivilegeEscalation: false + volumes: + - 'configMap' + - 'emptyDir' + - 'persistentVolumeClaim' + - 'secret' + hostNetwork: false + hostIPC: false + hostPID: false + runAsUser: + rule: MustRunAsNonRoot + seLinux: + rule: RunAsAny + supplementalGroups: + rule: MustRunAs + ranges: + - min: 1 + max: 65535 + fsGroup: + rule: MustRunAs + ranges: + - min: 1 + max: 65535 + readOnlyRootFilesystem: true + requiredDropCapabilities: + - ALL diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/querier/querier-dep.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/querier/querier-dep.yaml new file mode 100644 index 00000000000..21becfca1bf --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/querier/querier-dep.yaml @@ -0,0 +1,123 @@ +--- +# Source: mimir-distributed/templates/querier/querier-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-federation-frontend-values-mimir-querier + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: querier + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + # If replicas is not number (when using values file it's float64, when using --set arg it's int64) and is false (i.e. null) don't set it + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: querier + strategy: + rollingUpdate: + maxSurge: 15% + maxUnavailable: 0 + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: querier + app.kubernetes.io/part-of: memberlist + annotations: + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + containers: + - name: querier + imagePullPolicy: IfNotPresent + args: + - "-target=querier" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: license + mountPath: /license + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + resources: + requests: + cpu: 100m + memory: 128Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + env: + - name: "GOMAXPROCS" + value: "5" + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: "5000" + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: querier + terminationGracePeriodSeconds: 180 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: storage + emptyDir: {} + - name: active-queries + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/querier/querier-pdb.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/querier/querier-pdb.yaml new file mode 100644 index 00000000000..f7ca0b54916 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/querier/querier-pdb.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/querier/querier-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-federation-frontend-values-mimir-querier + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: querier + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: querier + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/querier/querier-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/querier/querier-svc.yaml new file mode 100644 index 00000000000..05728ae54cb --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/querier/querier-svc.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/templates/querier/querier-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-querier + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: querier + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: querier diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-dep.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-dep.yaml new file mode 100644 index 00000000000..23d7c992f1b --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-dep.yaml @@ -0,0 +1,120 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-federation-frontend-values-mimir-query-frontend + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + # If replicas is not number (when using values file it's float64, when using --set arg it's int64) and is false (i.e. null) don't set it + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: query-frontend + strategy: + rollingUpdate: + maxSurge: 15% + maxUnavailable: 0 + type: RollingUpdate + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: query-frontend + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + containers: + - name: query-frontend + imagePullPolicy: IfNotPresent + args: + - "-target=query-frontend" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + # Reduce the likelihood of queries hitting terminated query-frontends. + - "-server.grpc.keepalive.max-connection-age=30s" + - "-shutdown-delay=90s" + volumeMounts: + - name: runtime-config + mountPath: /var/mimir + - name: license + mountPath: /license + - name: config + mountPath: /etc/mimir + - name: storage + mountPath: /data + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + resources: + requests: + cpu: 100m + memory: 128Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + env: + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: "5000" + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: query-frontend + terminationGracePeriodSeconds: 390 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: storage + emptyDir: {} + - name: active-queries + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-pdb.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-pdb.yaml new file mode 100644 index 00000000000..8de5330a064 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-pdb.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-federation-frontend-values-mimir-query-frontend + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: query-frontend + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml new file mode 100644 index 00000000000..5a5d0262e89 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml @@ -0,0 +1,32 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-query-frontend-headless + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + clusterIP: None + publishNotReadyAddresses: true + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: query-frontend diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc.yaml new file mode 100644 index 00000000000..51f7ac4feed --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc.yaml @@ -0,0 +1,29 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-query-frontend + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: query-frontend diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/role.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/role.yaml new file mode 100644 index 00000000000..d6ca01671ac --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/role.yaml @@ -0,0 +1,16 @@ +--- +# Source: mimir-distributed/templates/role.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: test-enterprise-federation-frontend-values-mimir + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +rules: +- apiGroups: ['extensions'] + resources: ['podsecuritypolicies'] + verbs: ['use'] + resourceNames: [test-enterprise-federation-frontend-values-mimir] diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/rolebinding.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/rolebinding.yaml new file mode 100644 index 00000000000..306e6aa65da --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/rolebinding.yaml @@ -0,0 +1,20 @@ +--- +# Source: mimir-distributed/templates/rolebinding.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: test-enterprise-federation-frontend-values-mimir + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: test-enterprise-federation-frontend-values-mimir +subjects: +- kind: ServiceAccount + name: test-enterprise-federation-frontend-values-mimir +- kind: ServiceAccount + name: test-enterprise-federation-frontend-values-mimir-distributed diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/runtime-configmap.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/runtime-configmap.yaml new file mode 100644 index 00000000000..af87bb780cf --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/runtime-configmap.yaml @@ -0,0 +1,15 @@ +--- +# Source: mimir-distributed/templates/runtime-configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: test-enterprise-federation-frontend-values-mimir-runtime + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +data: + runtime.yaml: | + + {} diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/serviceaccount.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/serviceaccount.yaml new file mode 100644 index 00000000000..700c150b4fb --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/serviceaccount.yaml @@ -0,0 +1,13 @@ +--- +# Source: mimir-distributed/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-enterprise-federation-frontend-values-mimir + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + annotations: + {} + namespace: "citestns" diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml new file mode 100644 index 00000000000..1cefaf6829d --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-federation-frontend-values-mimir-store-gateway + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/managed-by: Helm + namespace: "citestns" +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml new file mode 100644 index 00000000000..ff3e5b00d69 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml @@ -0,0 +1,426 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-federation-frontend-values-mimir-store-gateway-zone-a + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "store-gateway-zone-a" + rollout-group: store-gateway + zone: zone-a + annotations: + rollout-max-unavailable: "50" + namespace: "citestns" +spec: + podManagementPolicy: OrderedReady + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + rollout-group: store-gateway + zone: zone-a + updateStrategy: + type: OnDelete + serviceName: test-enterprise-federation-frontend-values-mimir-store-gateway-headless + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: storage + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: "2Gi" + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + name: "store-gateway-zone-a" + rollout-group: store-gateway + zone: zone-a + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + terminationGracePeriodSeconds: 120 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: active-queries + emptyDir: {} + containers: + - name: store-gateway + imagePullPolicy: IfNotPresent + args: + - "-target=store-gateway" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + - "-store-gateway.sharding-ring.instance-availability-zone=zone-a" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: license + mountPath: /license + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 60 + resources: + requests: + cpu: 100m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + env: + - name: "GOMAXPROCS" + value: "5" + - name: "GOMEMLIMIT" + value: "536870912" + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: "1000" +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-federation-frontend-values-mimir-store-gateway-zone-b + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "store-gateway-zone-b" + rollout-group: store-gateway + zone: zone-b + annotations: + rollout-max-unavailable: "50" + namespace: "citestns" +spec: + podManagementPolicy: OrderedReady + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + rollout-group: store-gateway + zone: zone-b + updateStrategy: + type: OnDelete + serviceName: test-enterprise-federation-frontend-values-mimir-store-gateway-headless + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: storage + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: "2Gi" + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + name: "store-gateway-zone-b" + rollout-group: store-gateway + zone: zone-b + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + terminationGracePeriodSeconds: 120 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: active-queries + emptyDir: {} + containers: + - name: store-gateway + imagePullPolicy: IfNotPresent + args: + - "-target=store-gateway" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + - "-store-gateway.sharding-ring.instance-availability-zone=zone-b" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: license + mountPath: /license + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 60 + resources: + requests: + cpu: 100m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + env: + - name: "GOMAXPROCS" + value: "5" + - name: "GOMEMLIMIT" + value: "536870912" + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: "1000" +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-federation-frontend-values-mimir-store-gateway-zone-c + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "store-gateway-zone-c" + rollout-group: store-gateway + zone: zone-c + annotations: + rollout-max-unavailable: "50" + namespace: "citestns" +spec: + podManagementPolicy: OrderedReady + replicas: 0 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + rollout-group: store-gateway + zone: zone-c + updateStrategy: + type: OnDelete + serviceName: test-enterprise-federation-frontend-values-mimir-store-gateway-headless + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: storage + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: "2Gi" + template: + metadata: + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + name: "store-gateway-zone-c" + rollout-group: store-gateway + zone: zone-c + annotations: + namespace: "citestns" + spec: + serviceAccountName: test-enterprise-federation-frontend-values-mimir + securityContext: + fsGroup: 10001 + runAsGroup: 10001 + runAsNonRoot: true + runAsUser: 10001 + seccompProfile: + type: RuntimeDefault + topologySpreadConstraints: + - maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway + labelSelector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + terminationGracePeriodSeconds: 120 + volumes: + - name: config + configMap: + name: test-enterprise-federation-frontend-values-mimir-config + items: + - key: "mimir.yaml" + path: "mimir.yaml" + - name: license + secret: + secretName: test-enterprise-federation-frontend-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-federation-frontend-values-mimir-runtime + - name: active-queries + emptyDir: {} + containers: + - name: store-gateway + imagePullPolicy: IfNotPresent + args: + - "-target=store-gateway" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + - "-store-gateway.sharding-ring.instance-availability-zone=zone-c" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: license + mountPath: /license + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: active-queries + mountPath: /active-query-tracker + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + - name: memberlist + containerPort: 7946 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 60 + resources: + requests: + cpu: 100m + memory: 512Mi + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + env: + - name: "GOMAXPROCS" + value: "5" + - name: "GOMEMLIMIT" + value: "536870912" + - name: "JAEGER_REPORTER_MAX_QUEUE_SIZE" + value: "1000" diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml new file mode 100644 index 00000000000..2768beedfbc --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml @@ -0,0 +1,32 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-store-gateway-headless + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + clusterIP: None + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway diff --git a/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc.yaml b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc.yaml new file mode 100644 index 00000000000..f2084b761a2 --- /dev/null +++ b/operations/helm/tests/test-enterprise-federation-frontend-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc.yaml @@ -0,0 +1,105 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-store-gateway-zone-a + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "store-gateway-zone-a" + rollout-group: store-gateway + zone: zone-a + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + rollout-group: store-gateway + zone: zone-a +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-store-gateway-zone-b + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "store-gateway-zone-b" + rollout-group: store-gateway + zone: zone-b + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + rollout-group: store-gateway + zone: zone-b +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-federation-frontend-values-mimir-store-gateway-zone-c + labels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/managed-by: Helm + name: "store-gateway-zone-c" + rollout-group: store-gateway + zone: zone-c + annotations: + {} + namespace: "citestns" +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-federation-frontend-values + app.kubernetes.io/component: store-gateway + rollout-group: store-gateway + zone: zone-c