diff --git a/.github/workflows/test-build-deploy.yml b/.github/workflows/test-build-deploy.yml index 32976f81be2..4a1617a7e6e 100644 --- a/.github/workflows/test-build-deploy.yml +++ b/.github/workflows/test-build-deploy.yml @@ -71,6 +71,26 @@ jobs: - name: Check Jsonnet Tests run: make BUILD_IN_CONTAINER=false check-jsonnet-tests + lint-helm: + runs-on: ubuntu-latest + container: + image: grafana/mimir-build-image:publish-multiarch-images-7a4b40a6d + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + # Commands in the Makefile are hardcoded with an assumed file structure of the CI container + # Symlink ensures paths specified in previous commands don’t break + - name: Symlink Expected Path to Workspace + run: | + mkdir -p /go/src/github.com/grafana/mimir + ln -s $GITHUB_WORKSPACE/* /go/src/github.com/grafana/mimir + - name: Set up Helm + uses: azure/setup-helm@v1 + with: + version: v3.5.2 + - name: Check Helm Tests + run: make BUILD_IN_CONTAINER=false check-helm-tests + test: runs-on: ubuntu-latest strategy: diff --git a/Makefile b/Makefile index 9bcfd16793c..dd04a798935 100644 --- a/Makefile +++ b/Makefile @@ -496,6 +496,12 @@ check-jsonnet-getting-started: | sed 's/\(jb install github.com\/grafana\/mimir\/operations\/mimir@main\)/\1 \&\& rm -fr .\/vendor\/mimir \&\& cp -r ..\/operations\/mimir .\/vendor\/mimir\//g' \ | bash +build-helm-tests: + @./operations/helm/tests/build.sh + +check-helm-tests: build-helm-tests + @git diff --exit-code -- ./operations/helm/tests || (echo "Please rebuild helm tests output 'make build-helm-tests'" && false) + build-jsonnet-tests: @./operations/mimir-tests/build.sh diff --git a/docs/internal/contributing/contributing-to-helm-chart.md b/docs/internal/contributing/contributing-to-helm-chart.md index 54f9e8acc55..119e31bb4e3 100644 --- a/docs/internal/contributing/contributing-to-helm-chart.md +++ b/docs/internal/contributing/contributing-to-helm-chart.md @@ -6,6 +6,13 @@ Please see the [general workflow](README.md#workflow) for reference. - Changelog is in the chart itself [operations/helm/charts/mimir-distributed/CHANGELOG.md](https://github.com/grafana/mimir/blob/main/operations/helm/charts/mimir-distributed/CHANGELOG.md). - If you made any changes to the [operations/helm/charts/mimir-distributed/Chart.yaml](https://github.com/grafana/mimir/blob/main/operations/helm/charts/mimir-distributed/Chart.yaml), run `make doc` and commit the changed files to update the [operations/helm/charts/mimir-distributed/README.md](https://github.com/grafana/mimir/blob/main/operations/helm/charts/mimir-distributed/README.md). +- If your changes impact the test configurations in the [operations/helm/charts/mimir-distributed/ci](https://github.com/grafana/mimir/blob/main/operations/helm/charts/mimir-distributed/ci) directory, see [Updating compiled manifests](#updating-compiled-manifests). + +## Updating compiled manifests + +We keep a compiled version of the helm chart for each values file in the `ci` directory. +This makes it easy to see how a given PR impacts the final output. +A PR check will fail if you forget to update the compiled manifests, and you can use `make build-helm-tests` to update them. ## Versioning diff --git a/operations/helm/charts/mimir-distributed/ci/test-enterprise-values.yaml b/operations/helm/charts/mimir-distributed/ci/test-enterprise-values.yaml index 61bf81e07f7..05cd858de7b 100644 --- a/operations/helm/charts/mimir-distributed/ci/test-enterprise-values.yaml +++ b/operations/helm/charts/mimir-distributed/ci/test-enterprise-values.yaml @@ -1,4 +1,6 @@ # Test values to limit the load during CI +kubeVersionOverride: "1.20" + enterprise: enabled: true diff --git a/operations/helm/charts/mimir-distributed/ci/test-oss-values.yaml b/operations/helm/charts/mimir-distributed/ci/test-oss-values.yaml index 909a0510ae6..b713a3b1599 100644 --- a/operations/helm/charts/mimir-distributed/ci/test-oss-values.yaml +++ b/operations/helm/charts/mimir-distributed/ci/test-oss-values.yaml @@ -1,4 +1,6 @@ # Test values to limit the load during CI +kubeVersionOverride: "1.20" + alertmanager: persistentVolume: enabled: false diff --git a/operations/helm/tests/build.sh b/operations/helm/tests/build.sh new file mode 100755 index 00000000000..b281e960299 --- /dev/null +++ b/operations/helm/tests/build.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# SPDX-License-Identifier: AGPL-3.0-only + +set -euo pipefail + +CHART_PATH=operations/helm/charts/mimir-distributed + +# Start from a clean slate +rm -rf operations/helm/tests/*-generated + +# Install chart dependencies for this branch +helm dependency update "$CHART_PATH" + +# Locally render the chart for every test file +TESTS=$(ls -1 ${CHART_PATH}/ci/*values.yaml) + +for FILEPATH in $TESTS; do + # Extract the filename (without extension). + TEST_NAME=$(basename -s '.yaml' "$FILEPATH") + + echo "Templating $TEST_NAME" + helm template "${TEST_NAME}" ${CHART_PATH} -f "${FILEPATH}" --output-dir "operations/helm/tests/${TEST_NAME}-generated" +done diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/configmap.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/configmap.yaml new file mode 100644 index 00000000000..9ab8577d049 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/configmap.yaml @@ -0,0 +1,111 @@ +--- +# Source: mimir-distributed/charts/minio/templates/configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: test-enterprise-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-enterprise-values + heritage: Helm +data: + initialize: |- + #!/bin/sh + set -e ; # Have script exit in the event of a failed command. + MC_CONFIG_DIR="/etc/minio/mc/" + MC="/usr/bin/mc --insecure --config-dir ${MC_CONFIG_DIR}" + + # connectToMinio + # Use a check-sleep-check loop to wait for Minio service to be available + connectToMinio() { + SCHEME=$1 + ATTEMPTS=0 ; LIMIT=29 ; # Allow 30 attempts + set -e ; # fail if we can't read the keys. + ACCESS=$(cat /config/accesskey) ; SECRET=$(cat /config/secretkey) ; + set +e ; # The connections to minio are allowed to fail. + echo "Connecting to Minio server: $SCHEME://$MINIO_ENDPOINT:$MINIO_PORT" ; + MC_COMMAND="${MC} config host add myminio $SCHEME://$MINIO_ENDPOINT:$MINIO_PORT $ACCESS $SECRET" ; + $MC_COMMAND ; + STATUS=$? ; + until [ $STATUS = 0 ] + do + ATTEMPTS=`expr $ATTEMPTS + 1` ; + echo \"Failed attempts: $ATTEMPTS\" ; + if [ $ATTEMPTS -gt $LIMIT ]; then + exit 1 ; + fi ; + sleep 2 ; # 1 second intervals between attempts + $MC_COMMAND ; + STATUS=$? ; + done ; + set -e ; # reset `e` as active + return 0 + } + + # checkBucketExists ($bucket) + # Check if the bucket exists, by using the exit code of `mc ls` + checkBucketExists() { + BUCKET=$1 + CMD=$(${MC} ls myminio/$BUCKET > /dev/null 2>&1) + return $? + } + + # createBucket ($bucket, $policy, $purge) + # Ensure bucket exists, purging if asked to + createBucket() { + BUCKET=$1 + POLICY=$2 + PURGE=$3 + VERSIONING=$4 + + # Purge the bucket, if set & exists + # Since PURGE is user input, check explicitly for `true` + if [ $PURGE = true ]; then + if checkBucketExists $BUCKET ; then + echo "Purging bucket '$BUCKET'." + set +e ; # don't exit if this fails + ${MC} rm -r --force myminio/$BUCKET + set -e ; # reset `e` as active + else + echo "Bucket '$BUCKET' does not exist, skipping purge." + fi + fi + + # Create the bucket if it does not exist + if ! checkBucketExists $BUCKET ; then + echo "Creating bucket '$BUCKET'" + ${MC} mb myminio/$BUCKET + else + echo "Bucket '$BUCKET' already exists." + fi + + + # set versioning for bucket + if [ ! -z $VERSIONING ] ; then + if [ $VERSIONING = true ] ; then + echo "Enabling versioning for '$BUCKET'" + ${MC} version enable myminio/$BUCKET + elif [ $VERSIONING = false ] ; then + echo "Suspending versioning for '$BUCKET'" + ${MC} version suspend myminio/$BUCKET + fi + else + echo "Bucket '$BUCKET' versioning unchanged." + fi + + # At this point, the bucket should exist, skip checking for existence + # Set policy on the bucket + echo "Setting policy of bucket '$BUCKET' to '$POLICY'." + ${MC} policy set $POLICY myminio/$BUCKET + } + + # Try connecting to Minio instance + scheme=http + connectToMinio $scheme + # Create the buckets + createBucket mimir-tsdb none false + createBucket mimir-ruler none false + createBucket enterprise-metrics-tsdb none false + createBucket enterprise-metrics-admin none false + createBucket enterprise-metrics-ruler none false diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/deployment.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/deployment.yaml new file mode 100644 index 00000000000..098d932170e --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/deployment.yaml @@ -0,0 +1,72 @@ +--- +# Source: mimir-distributed/charts/minio/templates/deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-enterprise-values + heritage: Helm +spec: + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 100% + maxUnavailable: 0 + selector: + matchLabels: + app: minio + release: test-enterprise-values + template: + metadata: + name: test-enterprise-values-minio + labels: + app: minio + release: test-enterprise-values + annotations: + checksum/secrets: aac2dea246043210c2649ffaf6c6ea57cd94d0aaf2b21759b8b38a093096478e + checksum/config: 8109517e3e9f729fb84cca8217b59099354497df0ca310f4e4b07d4951b02dc4 + spec: + serviceAccountName: "test-enterprise-values-minio" + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 + containers: + - name: minio + image: "minio/minio:RELEASE.2021-02-14T04-01-33Z" + imagePullPolicy: IfNotPresent + command: + - "/bin/sh" + - "-ce" + - "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs/ server /export" + volumeMounts: + - name: export + mountPath: /export + ports: + - name: http + containerPort: 9000 + env: + - name: MINIO_ACCESS_KEY + valueFrom: + secretKeyRef: + name: test-enterprise-values-minio + key: accesskey + - name: MINIO_SECRET_KEY + valueFrom: + secretKeyRef: + name: test-enterprise-values-minio + key: secretkey + resources: + requests: + cpu: 100m + memory: 128Mi + volumes: + - name: export + persistentVolumeClaim: + claimName: test-enterprise-values-minio + - name: minio-user + secret: + secretName: test-enterprise-values-minio diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-create-bucket-job.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-create-bucket-job.yaml new file mode 100644 index 00000000000..0f09bf58309 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-create-bucket-job.yaml @@ -0,0 +1,47 @@ +--- +# Source: mimir-distributed/charts/minio/templates/post-install-create-bucket-job.yaml +apiVersion: batch/v1 +kind: Job +metadata: + name: test-enterprise-values-minio-make-bucket-job + labels: + app: minio-make-bucket-job + chart: minio-8.0.10 + release: test-enterprise-values + heritage: Helm + annotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation +spec: + template: + metadata: + labels: + app: minio-job + release: test-enterprise-values + spec: + restartPolicy: OnFailure + volumes: + - name: minio-configuration + projected: + sources: + - configMap: + name: test-enterprise-values-minio + - secret: + name: test-enterprise-values-minio + serviceAccountName: "test-enterprise-values-minio" + containers: + - name: minio-mc + image: "minio/mc:RELEASE.2021-02-14T04-28-06Z" + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "/config/initialize"] + env: + - name: MINIO_ENDPOINT + value: test-enterprise-values-minio + - name: MINIO_PORT + value: "9000" + volumeMounts: + - name: minio-configuration + mountPath: /config + resources: + requests: + memory: 128Mi diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-role.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-role.yaml new file mode 100644 index 00000000000..060b5cf2bc2 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-role.yaml @@ -0,0 +1,37 @@ +--- +# Source: mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-role.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: test-enterprise-values-minio-update-prometheus-secret + labels: + app: minio-update-prometheus-secret + chart: minio-8.0.10 + release: test-enterprise-values + heritage: Helm +rules: + - apiGroups: + - "" + resources: + - secrets + verbs: + - get + - create + - update + - patch + resourceNames: + - test-enterprise-values-minio-prometheus + - apiGroups: + - "" + resources: + - secrets + verbs: + - create + - apiGroups: + - monitoring.coreos.com + resources: + - servicemonitors + verbs: + - get + resourceNames: + - test-enterprise-values-minio diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-rolebinding.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-rolebinding.yaml new file mode 100644 index 00000000000..0d793749d0b --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-rolebinding.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-rolebinding.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: test-enterprise-values-minio-update-prometheus-secret + labels: + app: minio-update-prometheus-secret + chart: minio-8.0.10 + release: test-enterprise-values + heritage: Helm +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: test-enterprise-values-minio-update-prometheus-secret +subjects: + - kind: ServiceAccount + name: test-enterprise-values-minio-update-prometheus-secret + namespace: "default" diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-serviceaccount.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-serviceaccount.yaml new file mode 100644 index 00000000000..d41d8705aa8 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-serviceaccount.yaml @@ -0,0 +1,11 @@ +--- +# Source: mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-enterprise-values-minio-update-prometheus-secret + labels: + app: minio-update-prometheus-secret + chart: minio-8.0.10 + release: test-enterprise-values + heritage: Helm diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/pvc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/pvc.yaml new file mode 100644 index 00000000000..d2d46159fe6 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/pvc.yaml @@ -0,0 +1,17 @@ +--- +# Source: mimir-distributed/charts/minio/templates/pvc.yaml +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: test-enterprise-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-enterprise-values + heritage: Helm +spec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: "5Gi" diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/secrets.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/secrets.yaml new file mode 100644 index 00000000000..94e52b472c6 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/secrets.yaml @@ -0,0 +1,15 @@ +--- +# Source: mimir-distributed/charts/minio/templates/secrets.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-enterprise-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-enterprise-values + heritage: Helm +type: Opaque +data: + accesskey: "Z3JhZmFuYS1taW1pcg==" + secretkey: "c3VwZXJzZWNyZXQ=" diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/service.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/service.yaml new file mode 100644 index 00000000000..21f8a4c4fb2 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/service.yaml @@ -0,0 +1,21 @@ +--- +# Source: mimir-distributed/charts/minio/templates/service.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-enterprise-values + heritage: Helm +spec: + type: ClusterIP + ports: + - name: http + port: 9000 + protocol: TCP + targetPort: 9000 + selector: + app: minio + release: test-enterprise-values diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/serviceaccount.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/serviceaccount.yaml new file mode 100644 index 00000000000..9c86f090671 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/charts/minio/templates/serviceaccount.yaml @@ -0,0 +1,11 @@ +--- +# Source: mimir-distributed/charts/minio/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: "test-enterprise-values-minio" + namespace: "default" + labels: + app: minio + chart: minio-8.0.10 + release: "test-enterprise-values" diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/admin-api/admin-api-dep.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/admin-api/admin-api-dep.yaml new file mode 100644 index 00000000000..6fc0d5ff1d7 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/admin-api/admin-api-dep.yaml @@ -0,0 +1,107 @@ +--- +# Source: mimir-distributed/templates/admin-api/admin-api-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + {} + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: admin-api + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + name: test-enterprise-values-mimir-admin-api +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: admin-api + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: admin-api + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + containers: + - name: admin-api + image: "grafana/enterprise-metrics:v2.1.0" + 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" + subPath: + 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: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 60 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/admin-api/admin-api-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/admin-api/admin-api-svc.yaml new file mode 100644 index 00000000000..dbd9cb9ba9a --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/admin-api/admin-api-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/admin-api/admin-api-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-admin-api + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: admin-api + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-values + app.kubernetes.io/component: admin-api diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-statefulset.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-statefulset.yaml new file mode 100644 index 00000000000..3f593bc2bea --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-statefulset.yaml @@ -0,0 +1,109 @@ +--- +# Source: mimir-distributed/templates/alertmanager/alertmanager-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-values-mimir-alertmanager + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: alertmanager + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: alertmanager + updateStrategy: + type: RollingUpdate + serviceName: test-enterprise-values-mimir-alertmanager + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: alertmanager + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 60 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: storage + emptyDir: {} + - name: tmp + emptyDir: {} + containers: + - name: alertmanager + image: "grafana/enterprise-metrics:v2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=alertmanager" + - "-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: tmp + mountPath: /tmp + 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: + readOnlyRootFilesystem: true + env: + envFrom: diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc-headless.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc-headless.yaml new file mode 100644 index 00000000000..e5e72b636cb --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc-headless.yaml @@ -0,0 +1,37 @@ +--- +# Source: mimir-distributed/templates/alertmanager/alertmanager-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-alertmanager-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: alertmanager + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +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 + - port: 9094 + protocol: TCP + name: cluster + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: alertmanager diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc.yaml new file mode 100644 index 00000000000..37975bf32b0 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/alertmanager/alertmanager-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-alertmanager + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: alertmanager + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-values + app.kubernetes.io/component: alertmanager diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/compactor/compactor-statefulset.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/compactor/compactor-statefulset.yaml new file mode 100644 index 00000000000..55f0cc868f8 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/compactor/compactor-statefulset.yaml @@ -0,0 +1,115 @@ +--- +# Source: mimir-distributed/templates/compactor/compactor-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-values-mimir-compactor + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: compactor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: compactor + updateStrategy: + type: RollingUpdate + serviceName: test-enterprise-values-mimir-compactor + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: compactor + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + nodeSelector: + {} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: target + operator: In + values: + - compactor + topologyKey: kubernetes.io/hostname + weight: 100 + tolerations: + [] + terminationGracePeriodSeconds: 240 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: storage + emptyDir: {} + containers: + - name: compactor + image: "grafana/enterprise-metrics:v2.1.0" + 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" + 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: + readOnlyRootFilesystem: true + env: + envFrom: diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/compactor/compactor-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/compactor/compactor-svc.yaml new file mode 100644 index 00000000000..fe7b12606b3 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/compactor/compactor-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/compactor/compactor-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-compactor + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: compactor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-values + app.kubernetes.io/component: compactor diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/distributor/distributor-dep.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/distributor/distributor-dep.yaml new file mode 100644 index 00000000000..d81968bc00a --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/distributor/distributor-dep.yaml @@ -0,0 +1,116 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-values-mimir-distributor + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: distributor + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: distributor + image: "grafana/enterprise-metrics:v2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=distributor" + - "-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" + subPath: + 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: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: target + operator: In + values: + - distributor + topologyKey: kubernetes.io/hostname + tolerations: + [] + terminationGracePeriodSeconds: 60 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/distributor/distributor-svc-headless.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/distributor/distributor-svc-headless.yaml new file mode 100644 index 00000000000..ad4a9f1ceff --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/distributor/distributor-svc-headless.yaml @@ -0,0 +1,29 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-distributor-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +spec: + type: ClusterIP + clusterIP: None + ports: + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: distributor diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/distributor/distributor-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/distributor/distributor-svc.yaml new file mode 100644 index 00000000000..af815ba312c --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/distributor/distributor-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-distributor + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-values + app.kubernetes.io/component: distributor diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/gateway/gateway-dep.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/gateway/gateway-dep.yaml new file mode 100644 index 00000000000..a946c6dbcca --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/gateway/gateway-dep.yaml @@ -0,0 +1,100 @@ +--- +# Source: mimir-distributed/templates/gateway/gateway-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + {} + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: gateway + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + name: test-enterprise-values-mimir-gateway +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: gateway + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: gateway + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: gateway + image: "grafana/enterprise-metrics:v2.1.0" + 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: storage + mountPath: "/data" + subPath: + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + livenessProbe: + null + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + resources: + requests: + cpu: 10m + memory: 32Mi + securityContext: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 60 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/gateway/gateway-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/gateway/gateway-svc.yaml new file mode 100644 index 00000000000..4d19d71a1a9 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/gateway/gateway-svc.yaml @@ -0,0 +1,26 @@ +--- +# Source: mimir-distributed/templates/gateway/gateway-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-gateway + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: gateway + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: gateway diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/gossip-ring/gossip-ring-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/gossip-ring/gossip-ring-svc.yaml new file mode 100644 index 00000000000..51af4c76f2c --- /dev/null +++ b/operations/helm/tests/test-enterprise-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-values-mimir-gossip-ring + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: gossip-ring + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +spec: + type: ClusterIP + clusterIP: None + ports: + - name: gossip-ring + port: 7946 + protocol: TCP + targetPort: 7946 + publishNotReadyAddresses: true + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/part-of: memberlist diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-pdb.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-pdb.yaml new file mode 100644 index 00000000000..1bb947a3e7e --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-pdb.yaml @@ -0,0 +1,21 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-values-mimir-ingester + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ingester + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-statefulset.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-statefulset.yaml new file mode 100644 index 00000000000..5e1efc64f63 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-statefulset.yaml @@ -0,0 +1,106 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-values-mimir-ingester + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + podManagementPolicy: Parallel + replicas: 3 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ingester + updateStrategy: + type: RollingUpdate + serviceName: test-enterprise-values-mimir-ingester-headless + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 240 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: storage + emptyDir: {} + containers: + - name: ingester + image: "grafana/enterprise-metrics:v2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=ingester" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: license + mountPath: /license + 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: 10m + memory: 512Mi + securityContext: + readOnlyRootFilesystem: true + env: + envFrom: diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-svc-headless.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-svc-headless.yaml new file mode 100644 index 00000000000..f91780d4ac9 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-svc-headless.yaml @@ -0,0 +1,29 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-ingester-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +spec: + type: ClusterIP + clusterIP: None + ports: + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ingester diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-svc.yaml new file mode 100644 index 00000000000..1301971836a --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ingester/ingester-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-ingester + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-values + app.kubernetes.io/component: ingester diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/license-secret.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/license-secret.yaml new file mode 100644 index 00000000000..5846877f9bc --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/license-secret.yaml @@ -0,0 +1,14 @@ +--- +# Source: mimir-distributed/templates/license-secret.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-enterprise-values-mimir-license + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +data: + license.jwt: Tk9UQVZBTElETElDRU5TRQ== diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml new file mode 100644 index 00000000000..11e3e42d177 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml @@ -0,0 +1,44 @@ +--- +# Source: mimir-distributed/templates/minio/create-bucket-job.yaml +apiVersion: batch/v1 +kind: Job +metadata: + name: test-enterprise-values-mimir-distributed-make-bucket-job + namespace: "default" + labels: + app: mimir-distributed-make-bucket-job + chart: mimir-distributed-2.2.0-weekly.189 + release: test-enterprise-values + heritage: Helm +spec: + template: + metadata: + labels: + app: mimir-distributed-job + release: test-enterprise-values + spec: + restartPolicy: OnFailure + volumes: + - name: minio-configuration + projected: + sources: + - configMap: + name: test-enterprise-values-minio + - secret: + name: test-enterprise-values-minio + containers: + - name: minio-mc + image: "minio/mc:RELEASE.2021-02-14T04-28-06Z" + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "/config/initialize"] + env: + - name: MINIO_ENDPOINT + value: test-enterprise-values-minio + - name: MINIO_PORT + value: "9000" + volumeMounts: + - name: minio-configuration + mountPath: /config + resources: + requests: + memory: 128Mi diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-dep.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-dep.yaml new file mode 100644 index 00000000000..f9c31aa7108 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-dep.yaml @@ -0,0 +1,106 @@ +--- +# Source: mimir-distributed/templates/overrides-exporter/overrides-exporter-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + {} + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: overrides-exporter + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + name: test-enterprise-values-mimir-overrides-exporter +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: overrides-exporter + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: overrides-exporter + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: overrides-exporter + image: "grafana/enterprise-metrics:v2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=overrides-exporter" + - "-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" + subPath: + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + livenessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + resources: + requests: + cpu: 100m + memory: 128Mi + securityContext: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 60 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-svc.yaml new file mode 100644 index 00000000000..c27fc7a1cf1 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-svc.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/templates/overrides-exporter/overrides-exporter-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-overrides-exporter + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: overrides-exporter + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-values + app.kubernetes.io/component: overrides-exporter diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/podsecuritypolicy.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/podsecuritypolicy.yaml new file mode 100644 index 00000000000..3964fffda80 --- /dev/null +++ b/operations/helm/tests/test-enterprise-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-values-mimir + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +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-values-generated/mimir-distributed/templates/querier/querier-dep.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/querier/querier-dep.yaml new file mode 100644 index 00000000000..237f6aefd0d --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/querier/querier-dep.yaml @@ -0,0 +1,118 @@ +--- +# Source: mimir-distributed/templates/querier/querier-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-values-mimir-querier + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: querier + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 2 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: querier + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: querier + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: querier + image: "grafana/enterprise-metrics:v2.1.0" + 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" + subPath: + 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: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: target + operator: In + values: + - querier + topologyKey: kubernetes.io/hostname + weight: 100 + tolerations: + [] + terminationGracePeriodSeconds: 180 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/querier/querier-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/querier/querier-svc.yaml new file mode 100644 index 00000000000..ded06cef9e3 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/querier/querier-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/querier/querier-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-querier + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: querier + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-values + app.kubernetes.io/component: querier diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/query-frontend/query-frontend-dep.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/query-frontend/query-frontend-dep.yaml new file mode 100644 index 00000000000..aa598680f71 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/query-frontend/query-frontend-dep.yaml @@ -0,0 +1,112 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-values-mimir-query-frontend + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: query-frontend + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: query-frontend + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: query-frontend + image: "grafana/enterprise-metrics:v2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=query-frontend" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: runtime-config + mountPath: /var/mimir + - name: license + mountPath: /license + - name: config + mountPath: /etc/mimir + - name: storage + mountPath: /data + 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: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: target + operator: In + values: + - query-frontend + topologyKey: kubernetes.io/hostname + weight: 100 + tolerations: + [] + terminationGracePeriodSeconds: 180 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml new file mode 100644 index 00000000000..55290abe0c7 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml @@ -0,0 +1,33 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-query-frontend-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +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-values + app.kubernetes.io/component: query-frontend diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc.yaml new file mode 100644 index 00000000000..134e5fa6655 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-query-frontend + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-values + app.kubernetes.io/component: query-frontend diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/role.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/role.yaml new file mode 100644 index 00000000000..0bfe0d93990 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/role.yaml @@ -0,0 +1,17 @@ +--- +# Source: mimir-distributed/templates/role.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: test-enterprise-values-mimir + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +rules: +- apiGroups: ['extensions'] + resources: ['podsecuritypolicies'] + verbs: ['use'] + resourceNames: [test-enterprise-values-mimir] diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/rolebinding.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/rolebinding.yaml new file mode 100644 index 00000000000..daf73bf5a48 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/rolebinding.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/rolebinding.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: test-enterprise-values-mimir + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: test-enterprise-values-mimir +subjects: +- kind: ServiceAccount + name: test-enterprise-values-mimir diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ruler/ruler-dep.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ruler/ruler-dep.yaml new file mode 100644 index 00000000000..b40077a5b2a --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ruler/ruler-dep.yaml @@ -0,0 +1,108 @@ +--- +# Source: mimir-distributed/templates/ruler/ruler-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-enterprise-values-mimir-ruler + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ruler + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ruler + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: ruler + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: ruler + image: "grafana/enterprise-metrics:v2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=ruler" + - "-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" + subPath: + 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: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 180 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ruler/ruler-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ruler/ruler-svc.yaml new file mode 100644 index 00000000000..95bc0b22dd8 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/ruler/ruler-svc.yaml @@ -0,0 +1,27 @@ +--- +# Source: mimir-distributed/templates/ruler/ruler-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-ruler + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ruler + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: ruler diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/runtime-configmap.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/runtime-configmap.yaml new file mode 100644 index 00000000000..0974615fc37 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/runtime-configmap.yaml @@ -0,0 +1,16 @@ +--- +# Source: mimir-distributed/templates/runtime-configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: test-enterprise-values-mimir-runtime + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +data: + runtime.yaml: | + + {} diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/secret.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/secret.yaml new file mode 100644 index 00000000000..a10a89ff534 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/secret.yaml @@ -0,0 +1,14 @@ +--- +# Source: mimir-distributed/templates/secret.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-enterprise-values-mimir-config + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +data: + mimir.yaml: CgpsaW1pdHM6IHt9CgphY3Rpdml0eV90cmFja2VyOgogIGZpbGVwYXRoOiAvZGF0YS9tZXRyaWNzLWFjdGl2aXR5LmxvZwoKYWxlcnRtYW5hZ2VyOgogIGRhdGFfZGlyOiAnL2RhdGEnCiAgZW5hYmxlX2FwaTogdHJ1ZQogIGV4dGVybmFsX3VybDogJy9hbGVydG1hbmFnZXInCmFsZXJ0bWFuYWdlcl9zdG9yYWdlOgogIGJhY2tlbmQ6IHMzCiAgczM6CiAgICBlbmRwb2ludDogdGVzdC1lbnRlcnByaXNlLXZhbHVlcy1taW5pby5kZWZhdWx0LnN2Yzo5MDAwCiAgICBidWNrZXRfbmFtZTogbWltaXItcnVsZXIKICAgIGFjY2Vzc19rZXlfaWQ6IGdyYWZhbmEtbWltaXIKICAgIHNlY3JldF9hY2Nlc3Nfa2V5OiBzdXBlcnNlY3JldAogICAgaW5zZWN1cmU6IHRydWUKCmZyb250ZW5kX3dvcmtlcjoKICBmcm9udGVuZF9hZGRyZXNzOiB0ZXN0LWVudGVycHJpc2UtdmFsdWVzLW1pbWlyLXF1ZXJ5LWZyb250ZW5kLWhlYWRsZXNzLmRlZmF1bHQuc3ZjOjkwOTUKCnJ1bGVyOgogIGVuYWJsZV9hcGk6IHRydWUKICBydWxlX3BhdGg6ICcvZGF0YScKICBhbGVydG1hbmFnZXJfdXJsOiBkbnNzcnZub2EraHR0cDovL19odHRwLW1ldHJpY3MuX3RjcC50ZXN0LWVudGVycHJpc2UtdmFsdWVzLW1pbWlyLWFsZXJ0bWFuYWdlci1oZWFkbGVzcy5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsL2FsZXJ0bWFuYWdlcgoKc2VydmVyOgogIGdycGNfc2VydmVyX21heF9yZWN2X21zZ19zaXplOiAxMDQ4NTc2MDAKICBncnBjX3NlcnZlcl9tYXhfc2VuZF9tc2dfc2l6ZTogMTA0ODU3NjAwCiAgZ3JwY19zZXJ2ZXJfbWF4X2NvbmN1cnJlbnRfc3RyZWFtczogMTAwMAoKZnJvbnRlbmQ6CiAgbG9nX3F1ZXJpZXNfbG9uZ2VyX3RoYW46IDEwcwogIGFsaWduX3F1ZXJpZXNfd2l0aF9zdGVwOiB0cnVlCgpjb21wYWN0b3I6CiAgZGF0YV9kaXI6ICIvZGF0YSIKCmluZ2VzdGVyOgogIHJpbmc6CiAgICBmaW5hbF9zbGVlcDogMHMKICAgIG51bV90b2tlbnM6IDUxMgogICAgdW5yZWdpc3Rlcl9vbl9zaHV0ZG93bjogZmFsc2UKCmluZ2VzdGVyX2NsaWVudDoKICBncnBjX2NsaWVudF9jb25maWc6CiAgICBtYXhfcmVjdl9tc2dfc2l6ZTogMTA0ODU3NjAwCiAgICBtYXhfc2VuZF9tc2dfc2l6ZTogMTA0ODU3NjAwCgpydW50aW1lX2NvbmZpZzoKICBmaWxlOiAvdmFyL21pbWlyL3J1bnRpbWUueWFtbAoKbWVtYmVybGlzdDoKICBhYm9ydF9pZl9jbHVzdGVyX2pvaW5fZmFpbHM6IGZhbHNlCiAgY29tcHJlc3Npb25fZW5hYmxlZDogZmFsc2UKICBqb2luX21lbWJlcnM6CiAgLSB0ZXN0LWVudGVycHJpc2UtdmFsdWVzLW1pbWlyLWdvc3NpcC1yaW5nCgojIFRoaXMgY29uZmlndXJlcyBob3cgdGhlIHN0b3JlLWdhdGV3YXkgc3luY2hyb25pemVzIGJsb2NrcyBzdG9yZWQgaW4gdGhlIGJ1Y2tldC4gSXQgdXNlcyBNaW5pbyBieSBkZWZhdWx0IGZvciBnZXR0aW5nIHN0YXJ0ZWQgKGNvbmZpZ3VyZWQgdmlhIGZsYWdzKSBidXQgdGhpcyBzaG91bGQgYmUgY2hhbmdlZCBmb3IgcHJvZHVjdGlvbiBkZXBsb3ltZW50cy4KYmxvY2tzX3N0b3JhZ2U6CiAgYmFja2VuZDogczMKICB0c2RiOgogICAgZGlyOiAvZGF0YS90c2RiCiAgYnVja2V0X3N0b3JlOgogICAgc3luY19kaXI6IC9kYXRhL3RzZGItc3luYwogIHMzOgogICAgZW5kcG9pbnQ6IHRlc3QtZW50ZXJwcmlzZS12YWx1ZXMtbWluaW8uZGVmYXVsdC5zdmM6OTAwMAogICAgYnVja2V0X25hbWU6IG1pbWlyLXRzZGIKICAgIGFjY2Vzc19rZXlfaWQ6IGdyYWZhbmEtbWltaXIKICAgIHNlY3JldF9hY2Nlc3Nfa2V5OiBzdXBlcnNlY3JldAogICAgaW5zZWN1cmU6IHRydWUKcnVsZXJfc3RvcmFnZToKICBiYWNrZW5kOiBzMwogIHMzOgogICAgZW5kcG9pbnQ6IHRlc3QtZW50ZXJwcmlzZS12YWx1ZXMtbWluaW8uZGVmYXVsdC5zdmM6OTAwMAogICAgYnVja2V0X25hbWU6IG1pbWlyLXJ1bGVyCiAgICBhY2Nlc3Nfa2V5X2lkOiBncmFmYW5hLW1pbWlyCiAgICBzZWNyZXRfYWNjZXNzX2tleTogc3VwZXJzZWNyZXQKICAgIGluc2VjdXJlOiB0cnVlCm11bHRpdGVuYW5jeV9lbmFibGVkOiB0cnVlCgphZG1pbl9hcGk6CiAgbGVhZGVyX2VsZWN0aW9uOgogICAgZW5hYmxlZDogdHJ1ZQogICAgcmluZzoKICAgICAga3ZzdG9yZToKICAgICAgICBzdG9yZTogIm1lbWJlcmxpc3QiCmFkbWluX2NsaWVudDoKICBzdG9yYWdlOgogICAgdHlwZTogczMKICAgIHMzOgogICAgICBlbmRwb2ludDogdGVzdC1lbnRlcnByaXNlLXZhbHVlcy1taW5pby5kZWZhdWx0LnN2Yzo5MDAwCiAgICAgIGJ1Y2tldF9uYW1lOiBlbnRlcnByaXNlLW1ldHJpY3MtYWRtaW4KICAgICAgYWNjZXNzX2tleV9pZDogZ3JhZmFuYS1taW1pcgogICAgICBzZWNyZXRfYWNjZXNzX2tleTogc3VwZXJzZWNyZXQKICAgICAgaW5zZWN1cmU6IHRydWUKCmF1dGg6CiAgdHlwZTogZW50ZXJwcmlzZQoKY2x1c3Rlcl9uYW1lOiAidGVzdC1lbnRlcnByaXNlLXZhbHVlcyIKCmxpY2Vuc2U6CiAgcGF0aDogIi9saWNlbnNlL2xpY2Vuc2Uuand0IgpnYXRld2F5OgogIHByb3h5OgogICAgZGVmYXVsdDoKICAgICAgdXJsOiBodHRwOi8vdGVzdC1lbnRlcnByaXNlLXZhbHVlcy1taW1pci1hZG1pbi1hcGkuZGVmYXVsdC5zdmM6ODA4MAogICAgYWRtaW5fYXBpOgogICAgICB1cmw6IGh0dHA6Ly90ZXN0LWVudGVycHJpc2UtdmFsdWVzLW1pbWlyLWFkbWluLWFwaS5kZWZhdWx0LnN2Yzo4MDgwCiAgICBhbGVydG1hbmFnZXI6CiAgICAgIHVybDogaHR0cDovL3Rlc3QtZW50ZXJwcmlzZS12YWx1ZXMtbWltaXItYWxlcnRtYW5hZ2VyLmRlZmF1bHQuc3ZjOjgwODAKICAgIGNvbXBhY3RvcjoKICAgICAgdXJsOiBodHRwOi8vdGVzdC1lbnRlcnByaXNlLXZhbHVlcy1taW1pci1jb21wYWN0b3IuZGVmYXVsdC5zdmM6ODA4MAogICAgZGlzdHJpYnV0b3I6CiAgICAgIHVybDogZG5zOi8vL3Rlc3QtZW50ZXJwcmlzZS12YWx1ZXMtbWltaXItZGlzdHJpYnV0b3ItaGVhZGxlc3MuZGVmYXVsdC5zdmMuY2x1c3Rlci5sb2NhbDo5MDk1CiAgICBpbmdlc3RlcjoKICAgICAgdXJsOiBodHRwOi8vdGVzdC1lbnRlcnByaXNlLXZhbHVlcy1taW1pci1pbmdlc3Rlci5kZWZhdWx0LnN2Yzo4MDgwCiAgICBxdWVyeV9mcm9udGVuZDoKICAgICAgdXJsOiBodHRwOi8vdGVzdC1lbnRlcnByaXNlLXZhbHVlcy1taW1pci1xdWVyeS1mcm9udGVuZC5kZWZhdWx0LnN2Yzo4MDgwCiAgICBydWxlcjoKICAgICAgdXJsOiBodHRwOi8vdGVzdC1lbnRlcnByaXNlLXZhbHVlcy1taW1pci1ydWxlci5kZWZhdWx0LnN2Yzo4MDgwCiAgICBzdG9yZV9nYXRld2F5OgogICAgICB1cmw6IGh0dHA6Ly90ZXN0LWVudGVycHJpc2UtdmFsdWVzLW1pbWlyLXN0b3JlLWdhdGV3YXkuZGVmYXVsdC5zdmM6ODA4MAoKaW5zdHJ1bWVudGF0aW9uOgogIGVuYWJsZWQ6IHRydWUKICBkaXN0cmlidXRvcl9jbGllbnQ6CiAgICBhZGRyZXNzOiAnZG5zOi8vL3Rlc3QtZW50ZXJwcmlzZS12YWx1ZXMtbWltaXItZGlzdHJpYnV0b3ItaGVhZGxlc3MuZGVmYXVsdC5zdmMuY2x1c3Rlci5sb2NhbDo5MDk1Jwo= diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/serviceaccount.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/serviceaccount.yaml new file mode 100644 index 00000000000..78a8ad657b4 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/serviceaccount.yaml @@ -0,0 +1,14 @@ +--- +# Source: mimir-distributed/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-enterprise-values-mimir + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml new file mode 100644 index 00000000000..485f99bff0d --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml @@ -0,0 +1,21 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-enterprise-values-mimir-store-gateway + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: store-gateway + maxUnavailable: 1 diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml new file mode 100644 index 00000000000..a6fd00b3770 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml @@ -0,0 +1,113 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-enterprise-values-mimir-store-gateway + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: store-gateway + updateStrategy: + type: RollingUpdate + serviceName: test-enterprise-values-mimir-store-gateway-headless + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 20297fef45efa773cd872a3e65ada08c59029003e83d3b1eace4d87bbf72ce99 + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + {} + initContainers: + [] + nodeSelector: + {} + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: target + operator: In + values: + - store-gateway + topologyKey: kubernetes.io/hostname + tolerations: + [] + terminationGracePeriodSeconds: 240 + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: runtime-config + configMap: + name: test-enterprise-values-mimir-runtime + - name: storage + emptyDir: {} + containers: + - name: store-gateway + image: "grafana/enterprise-metrics:v2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=store-gateway" + - "-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" + 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: + readOnlyRootFilesystem: true + env: + envFrom: diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml new file mode 100644 index 00000000000..33c3e07dd34 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml @@ -0,0 +1,29 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-store-gateway-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +spec: + type: ClusterIP + clusterIP: None + ports: + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: store-gateway diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc.yaml new file mode 100644 index 00000000000..a94d269f9ae --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-enterprise-values-mimir-store-gateway + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-values + app.kubernetes.io/component: store-gateway diff --git a/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/tokengen/tokengen-job.yaml b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/tokengen/tokengen-job.yaml new file mode 100644 index 00000000000..0e2ea38b721 --- /dev/null +++ b/operations/helm/tests/test-enterprise-values-generated/mimir-distributed/templates/tokengen/tokengen-job.yaml @@ -0,0 +1,60 @@ +--- +# Source: mimir-distributed/templates/tokengen/tokengen-job.yaml +apiVersion: batch/v1 +kind: Job +metadata: + name: test-enterprise-values-mimir-tokengen + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/component: tokengen + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + "helm.sh/hook": post-install +spec: + backoffLimit: 6 + completions: 1 + parallelism: 1 + selector: + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-enterprise-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: tokengen + spec: + serviceAccountName: test-enterprise-values-mimir + securityContext: + null + initContainers: + [] + containers: + - name: tokengen + image: "grafana/enterprise-metrics:v2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=tokengen" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: license + mountPath: /license + env: + envFrom: + restartPolicy: OnFailure + volumes: + - name: config + secret: + secretName: test-enterprise-values-mimir-config + - name: license + secret: + secretName: test-enterprise-values-mimir-license + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/configmap.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/configmap.yaml new file mode 100644 index 00000000000..b5dc96c16cd --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/configmap.yaml @@ -0,0 +1,111 @@ +--- +# Source: mimir-distributed/charts/minio/templates/configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: test-oss-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-oss-values + heritage: Helm +data: + initialize: |- + #!/bin/sh + set -e ; # Have script exit in the event of a failed command. + MC_CONFIG_DIR="/etc/minio/mc/" + MC="/usr/bin/mc --insecure --config-dir ${MC_CONFIG_DIR}" + + # connectToMinio + # Use a check-sleep-check loop to wait for Minio service to be available + connectToMinio() { + SCHEME=$1 + ATTEMPTS=0 ; LIMIT=29 ; # Allow 30 attempts + set -e ; # fail if we can't read the keys. + ACCESS=$(cat /config/accesskey) ; SECRET=$(cat /config/secretkey) ; + set +e ; # The connections to minio are allowed to fail. + echo "Connecting to Minio server: $SCHEME://$MINIO_ENDPOINT:$MINIO_PORT" ; + MC_COMMAND="${MC} config host add myminio $SCHEME://$MINIO_ENDPOINT:$MINIO_PORT $ACCESS $SECRET" ; + $MC_COMMAND ; + STATUS=$? ; + until [ $STATUS = 0 ] + do + ATTEMPTS=`expr $ATTEMPTS + 1` ; + echo \"Failed attempts: $ATTEMPTS\" ; + if [ $ATTEMPTS -gt $LIMIT ]; then + exit 1 ; + fi ; + sleep 2 ; # 1 second intervals between attempts + $MC_COMMAND ; + STATUS=$? ; + done ; + set -e ; # reset `e` as active + return 0 + } + + # checkBucketExists ($bucket) + # Check if the bucket exists, by using the exit code of `mc ls` + checkBucketExists() { + BUCKET=$1 + CMD=$(${MC} ls myminio/$BUCKET > /dev/null 2>&1) + return $? + } + + # createBucket ($bucket, $policy, $purge) + # Ensure bucket exists, purging if asked to + createBucket() { + BUCKET=$1 + POLICY=$2 + PURGE=$3 + VERSIONING=$4 + + # Purge the bucket, if set & exists + # Since PURGE is user input, check explicitly for `true` + if [ $PURGE = true ]; then + if checkBucketExists $BUCKET ; then + echo "Purging bucket '$BUCKET'." + set +e ; # don't exit if this fails + ${MC} rm -r --force myminio/$BUCKET + set -e ; # reset `e` as active + else + echo "Bucket '$BUCKET' does not exist, skipping purge." + fi + fi + + # Create the bucket if it does not exist + if ! checkBucketExists $BUCKET ; then + echo "Creating bucket '$BUCKET'" + ${MC} mb myminio/$BUCKET + else + echo "Bucket '$BUCKET' already exists." + fi + + + # set versioning for bucket + if [ ! -z $VERSIONING ] ; then + if [ $VERSIONING = true ] ; then + echo "Enabling versioning for '$BUCKET'" + ${MC} version enable myminio/$BUCKET + elif [ $VERSIONING = false ] ; then + echo "Suspending versioning for '$BUCKET'" + ${MC} version suspend myminio/$BUCKET + fi + else + echo "Bucket '$BUCKET' versioning unchanged." + fi + + # At this point, the bucket should exist, skip checking for existence + # Set policy on the bucket + echo "Setting policy of bucket '$BUCKET' to '$POLICY'." + ${MC} policy set $POLICY myminio/$BUCKET + } + + # Try connecting to Minio instance + scheme=http + connectToMinio $scheme + # Create the buckets + createBucket mimir-tsdb none false + createBucket mimir-ruler none false + createBucket enterprise-metrics-tsdb none false + createBucket enterprise-metrics-admin none false + createBucket enterprise-metrics-ruler none false diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/deployment.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/deployment.yaml new file mode 100644 index 00000000000..a9f44e76c20 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/deployment.yaml @@ -0,0 +1,72 @@ +--- +# Source: mimir-distributed/charts/minio/templates/deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-oss-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-oss-values + heritage: Helm +spec: + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 100% + maxUnavailable: 0 + selector: + matchLabels: + app: minio + release: test-oss-values + template: + metadata: + name: test-oss-values-minio + labels: + app: minio + release: test-oss-values + annotations: + checksum/secrets: f7d601b8641bf40718836a3781f3547aa41f4d5a36774f49fbe5353840847956 + checksum/config: 32ca71423a92c84343fe0ae8158915116831302093797101294d27b284a8c78b + spec: + serviceAccountName: "test-oss-values-minio" + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + fsGroup: 1000 + containers: + - name: minio + image: "minio/minio:RELEASE.2021-02-14T04-01-33Z" + imagePullPolicy: IfNotPresent + command: + - "/bin/sh" + - "-ce" + - "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs/ server /export" + volumeMounts: + - name: export + mountPath: /export + ports: + - name: http + containerPort: 9000 + env: + - name: MINIO_ACCESS_KEY + valueFrom: + secretKeyRef: + name: test-oss-values-minio + key: accesskey + - name: MINIO_SECRET_KEY + valueFrom: + secretKeyRef: + name: test-oss-values-minio + key: secretkey + resources: + requests: + cpu: 100m + memory: 128Mi + volumes: + - name: export + persistentVolumeClaim: + claimName: test-oss-values-minio + - name: minio-user + secret: + secretName: test-oss-values-minio diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-create-bucket-job.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-create-bucket-job.yaml new file mode 100644 index 00000000000..ab4cbae0e05 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-create-bucket-job.yaml @@ -0,0 +1,47 @@ +--- +# Source: mimir-distributed/charts/minio/templates/post-install-create-bucket-job.yaml +apiVersion: batch/v1 +kind: Job +metadata: + name: test-oss-values-minio-make-bucket-job + labels: + app: minio-make-bucket-job + chart: minio-8.0.10 + release: test-oss-values + heritage: Helm + annotations: + "helm.sh/hook": post-install,post-upgrade + "helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation +spec: + template: + metadata: + labels: + app: minio-job + release: test-oss-values + spec: + restartPolicy: OnFailure + volumes: + - name: minio-configuration + projected: + sources: + - configMap: + name: test-oss-values-minio + - secret: + name: test-oss-values-minio + serviceAccountName: "test-oss-values-minio" + containers: + - name: minio-mc + image: "minio/mc:RELEASE.2021-02-14T04-28-06Z" + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "/config/initialize"] + env: + - name: MINIO_ENDPOINT + value: test-oss-values-minio + - name: MINIO_PORT + value: "9000" + volumeMounts: + - name: minio-configuration + mountPath: /config + resources: + requests: + memory: 128Mi diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-role.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-role.yaml new file mode 100644 index 00000000000..7829ff55941 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-role.yaml @@ -0,0 +1,37 @@ +--- +# Source: mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-role.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: test-oss-values-minio-update-prometheus-secret + labels: + app: minio-update-prometheus-secret + chart: minio-8.0.10 + release: test-oss-values + heritage: Helm +rules: + - apiGroups: + - "" + resources: + - secrets + verbs: + - get + - create + - update + - patch + resourceNames: + - test-oss-values-minio-prometheus + - apiGroups: + - "" + resources: + - secrets + verbs: + - create + - apiGroups: + - monitoring.coreos.com + resources: + - servicemonitors + verbs: + - get + resourceNames: + - test-oss-values-minio diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-rolebinding.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-rolebinding.yaml new file mode 100644 index 00000000000..49d29f0d92b --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-rolebinding.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-rolebinding.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: test-oss-values-minio-update-prometheus-secret + labels: + app: minio-update-prometheus-secret + chart: minio-8.0.10 + release: test-oss-values + heritage: Helm +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: test-oss-values-minio-update-prometheus-secret +subjects: + - kind: ServiceAccount + name: test-oss-values-minio-update-prometheus-secret + namespace: "default" diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-serviceaccount.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-serviceaccount.yaml new file mode 100644 index 00000000000..d8dec25b606 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-serviceaccount.yaml @@ -0,0 +1,11 @@ +--- +# Source: mimir-distributed/charts/minio/templates/post-install-prometheus-metrics-serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-oss-values-minio-update-prometheus-secret + labels: + app: minio-update-prometheus-secret + chart: minio-8.0.10 + release: test-oss-values + heritage: Helm diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/pvc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/pvc.yaml new file mode 100644 index 00000000000..a4915536b96 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/pvc.yaml @@ -0,0 +1,17 @@ +--- +# Source: mimir-distributed/charts/minio/templates/pvc.yaml +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: test-oss-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-oss-values + heritage: Helm +spec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: "5Gi" diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/secrets.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/secrets.yaml new file mode 100644 index 00000000000..dbbcc64fd5b --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/secrets.yaml @@ -0,0 +1,15 @@ +--- +# Source: mimir-distributed/charts/minio/templates/secrets.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-oss-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-oss-values + heritage: Helm +type: Opaque +data: + accesskey: "Z3JhZmFuYS1taW1pcg==" + secretkey: "c3VwZXJzZWNyZXQ=" diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/service.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/service.yaml new file mode 100644 index 00000000000..09ff81bb01a --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/service.yaml @@ -0,0 +1,21 @@ +--- +# Source: mimir-distributed/charts/minio/templates/service.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-minio + labels: + app: minio + chart: minio-8.0.10 + release: test-oss-values + heritage: Helm +spec: + type: ClusterIP + ports: + - name: http + port: 9000 + protocol: TCP + targetPort: 9000 + selector: + app: minio + release: test-oss-values diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/serviceaccount.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/serviceaccount.yaml new file mode 100644 index 00000000000..117733a9d99 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/charts/minio/templates/serviceaccount.yaml @@ -0,0 +1,11 @@ +--- +# Source: mimir-distributed/charts/minio/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: "test-oss-values-minio" + namespace: "default" + labels: + app: minio + chart: minio-8.0.10 + release: "test-oss-values" diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/alertmanager/alertmanager-statefulset.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/alertmanager/alertmanager-statefulset.yaml new file mode 100644 index 00000000000..be6b9c174a5 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/alertmanager/alertmanager-statefulset.yaml @@ -0,0 +1,104 @@ +--- +# Source: mimir-distributed/templates/alertmanager/alertmanager-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-oss-values-mimir-alertmanager + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: alertmanager + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: alertmanager + updateStrategy: + type: RollingUpdate + serviceName: test-oss-values-mimir-alertmanager + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: alertmanager + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 7b9ed84df22bf324205968cf49b0d824eb15e1748888719ffc3bab3f17d5e2e4 + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + {} + initContainers: + [] + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 60 + volumes: + - name: config + secret: + secretName: test-oss-values-mimir-config + - name: runtime-config + configMap: + name: test-oss-values-mimir-runtime + - name: storage + emptyDir: {} + - name: tmp + emptyDir: {} + containers: + - name: alertmanager + image: "grafana/mimir:2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=alertmanager" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + - name: tmp + mountPath: /tmp + 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: + readOnlyRootFilesystem: true + env: + envFrom: diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc-headless.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc-headless.yaml new file mode 100644 index 00000000000..662fb5387b6 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc-headless.yaml @@ -0,0 +1,37 @@ +--- +# Source: mimir-distributed/templates/alertmanager/alertmanager-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-alertmanager-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: alertmanager + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +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 + - port: 9094 + protocol: TCP + name: cluster + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: alertmanager diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc.yaml new file mode 100644 index 00000000000..3c6dcb67190 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/alertmanager/alertmanager-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/alertmanager/alertmanager-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-alertmanager + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: alertmanager + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-oss-values + app.kubernetes.io/component: alertmanager diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/compactor/compactor-statefulset.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/compactor/compactor-statefulset.yaml new file mode 100644 index 00000000000..1205d24e97b --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/compactor/compactor-statefulset.yaml @@ -0,0 +1,110 @@ +--- +# Source: mimir-distributed/templates/compactor/compactor-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-oss-values-mimir-compactor + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: compactor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: compactor + updateStrategy: + type: RollingUpdate + serviceName: test-oss-values-mimir-compactor + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: compactor + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 7b9ed84df22bf324205968cf49b0d824eb15e1748888719ffc3bab3f17d5e2e4 + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + {} + initContainers: + [] + nodeSelector: + {} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: target + operator: In + values: + - compactor + topologyKey: kubernetes.io/hostname + weight: 100 + tolerations: + [] + terminationGracePeriodSeconds: 240 + volumes: + - name: config + secret: + secretName: test-oss-values-mimir-config + - name: runtime-config + configMap: + name: test-oss-values-mimir-runtime + - name: storage + emptyDir: {} + containers: + - name: compactor + image: "grafana/mimir:2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=compactor" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + 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: + readOnlyRootFilesystem: true + env: + envFrom: diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/compactor/compactor-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/compactor/compactor-svc.yaml new file mode 100644 index 00000000000..2a5af3a6e46 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/compactor/compactor-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/compactor/compactor-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-compactor + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: compactor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-oss-values + app.kubernetes.io/component: compactor diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/distributor/distributor-dep.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/distributor/distributor-dep.yaml new file mode 100644 index 00000000000..d27718199d8 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/distributor/distributor-dep.yaml @@ -0,0 +1,111 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-oss-values-mimir-distributor + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: distributor + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 7b9ed84df22bf324205968cf49b0d824eb15e1748888719ffc3bab3f17d5e2e4 + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: distributor + image: "grafana/mimir:2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=distributor" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + subPath: + 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: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: target + operator: In + values: + - distributor + topologyKey: kubernetes.io/hostname + tolerations: + [] + terminationGracePeriodSeconds: 60 + volumes: + - name: config + secret: + secretName: test-oss-values-mimir-config + - name: runtime-config + configMap: + name: test-oss-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/distributor/distributor-svc-headless.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/distributor/distributor-svc-headless.yaml new file mode 100644 index 00000000000..2cecc4be2c9 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/distributor/distributor-svc-headless.yaml @@ -0,0 +1,29 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-distributor-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +spec: + type: ClusterIP + clusterIP: None + ports: + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: distributor diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/distributor/distributor-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/distributor/distributor-svc.yaml new file mode 100644 index 00000000000..ef0dff05dc7 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/distributor/distributor-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/distributor/distributor-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-distributor + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: distributor + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-oss-values + app.kubernetes.io/component: distributor diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/gossip-ring/gossip-ring-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/gossip-ring/gossip-ring-svc.yaml new file mode 100644 index 00000000000..ae66fd7c268 --- /dev/null +++ b/operations/helm/tests/test-oss-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-oss-values-mimir-gossip-ring + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: gossip-ring + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +spec: + type: ClusterIP + clusterIP: None + ports: + - name: gossip-ring + port: 7946 + protocol: TCP + targetPort: 7946 + publishNotReadyAddresses: true + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/part-of: memberlist diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-pdb.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-pdb.yaml new file mode 100644 index 00000000000..8772a9d15af --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-pdb.yaml @@ -0,0 +1,21 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-oss-values-mimir-ingester + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ingester + maxUnavailable: 1 diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-statefulset.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-statefulset.yaml new file mode 100644 index 00000000000..8b9acade53d --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-statefulset.yaml @@ -0,0 +1,101 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-oss-values-mimir-ingester + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + podManagementPolicy: Parallel + replicas: 3 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ingester + updateStrategy: + type: RollingUpdate + serviceName: test-oss-values-mimir-ingester-headless + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 7b9ed84df22bf324205968cf49b0d824eb15e1748888719ffc3bab3f17d5e2e4 + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + {} + initContainers: + [] + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 240 + volumes: + - name: config + secret: + secretName: test-oss-values-mimir-config + - name: runtime-config + configMap: + name: test-oss-values-mimir-runtime + - name: storage + emptyDir: {} + containers: + - name: ingester + image: "grafana/mimir:2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=ingester" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + 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: 10m + memory: 512Mi + securityContext: + readOnlyRootFilesystem: true + env: + envFrom: diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-svc-headless.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-svc-headless.yaml new file mode 100644 index 00000000000..bdde7e36d02 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-svc-headless.yaml @@ -0,0 +1,29 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-ingester-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +spec: + type: ClusterIP + clusterIP: None + ports: + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ingester diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-svc.yaml new file mode 100644 index 00000000000..75966d41959 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ingester/ingester-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/ingester/ingester-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-ingester + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ingester + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-oss-values + app.kubernetes.io/component: ingester diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml new file mode 100644 index 00000000000..b714a38d655 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/minio/create-bucket-job.yaml @@ -0,0 +1,44 @@ +--- +# Source: mimir-distributed/templates/minio/create-bucket-job.yaml +apiVersion: batch/v1 +kind: Job +metadata: + name: test-oss-values-mimir-distributed-make-bucket-job + namespace: "default" + labels: + app: mimir-distributed-make-bucket-job + chart: mimir-distributed-2.2.0-weekly.189 + release: test-oss-values + heritage: Helm +spec: + template: + metadata: + labels: + app: mimir-distributed-job + release: test-oss-values + spec: + restartPolicy: OnFailure + volumes: + - name: minio-configuration + projected: + sources: + - configMap: + name: test-oss-values-minio + - secret: + name: test-oss-values-minio + containers: + - name: minio-mc + image: "minio/mc:RELEASE.2021-02-14T04-28-06Z" + imagePullPolicy: IfNotPresent + command: ["/bin/sh", "/config/initialize"] + env: + - name: MINIO_ENDPOINT + value: test-oss-values-minio + - name: MINIO_PORT + value: "9000" + volumeMounts: + - name: minio-configuration + mountPath: /config + resources: + requests: + memory: 128Mi diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/nginx/nginx-configmap.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/nginx/nginx-configmap.yaml new file mode 100644 index 00000000000..e85527322ab --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/nginx/nginx-configmap.yaml @@ -0,0 +1,101 @@ +--- +# Source: mimir-distributed/templates/nginx/nginx-configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: test-oss-values-mimir-nginx + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: nginx + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +data: + nginx.conf: | + worker_processes 5; ## Default: 1 + error_log /dev/stderr; + pid /tmp/nginx.pid; + worker_rlimit_nofile 8192; + + events { + worker_connections 4096; ## Default: 1024 + } + + http { + client_body_temp_path /tmp/client_temp; + proxy_temp_path /tmp/proxy_temp_path; + fastcgi_temp_path /tmp/fastcgi_temp; + uwsgi_temp_path /tmp/uwsgi_temp; + scgi_temp_path /tmp/scgi_temp; + + default_type application/octet-stream; + log_format main '$remote_addr - $remote_user [$time_local] $status ' + '"$request" $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + access_log /dev/stderr main; + + sendfile on; + tcp_nopush on; + resolver kube-dns.kube-system.svc.cluster.local; + + server { + listen 8080; + + location = / { + return 200 'OK'; + auth_basic off; + } + proxy_set_header X-Scope-OrgID 0; + + # Distributor endpoints + location /distributor { + proxy_pass http://test-oss-values-mimir-distributor-headless.default.svc.cluster.local:8080$request_uri; + } + location = /api/v1/push { + proxy_pass http://test-oss-values-mimir-distributor-headless.default.svc.cluster.local:8080$request_uri; + } + + # Alertmanager endpoints + location /alertmanager { + proxy_pass http://test-oss-values-mimir-alertmanager.default.svc.cluster.local:8080$request_uri; + } + location = /multitenant_alertmanager/status { + proxy_pass http://test-oss-values-mimir-alertmanager.default.svc.cluster.local:8080$request_uri; + } + location = /api/v1/alerts { + proxy_pass http://test-oss-values-mimir-alertmanager.default.svc.cluster.local:8080$request_uri; + } + + # Ruler endpoints + location /prometheus/config/v1/rules { + proxy_pass http://test-oss-values-mimir-ruler.default.svc.cluster.local:8080$request_uri; + } + location /prometheus/api/v1/rules { + proxy_pass http://test-oss-values-mimir-ruler.default.svc.cluster.local:8080$request_uri; + } + + location /api/v1/rules { + proxy_pass http://test-oss-values-mimir-ruler.default.svc.cluster.local:8080$request_uri; + } + location /prometheus/api/v1/alerts { + proxy_pass http://test-oss-values-mimir-ruler.default.svc.cluster.local:8080$request_uri; + } + location /prometheus/rules { + proxy_pass http://test-oss-values-mimir-ruler.default.svc.cluster.local:8080$request_uri; + } + location = /ruler/ring { + proxy_pass http://test-oss-values-mimir-ruler.default.svc.cluster.local:8080$request_uri; + } + + # Rest of /prometheus goes to the query frontend + location /prometheus { + proxy_pass http://test-oss-values-mimir-query-frontend.default.svc.cluster.local:8080$request_uri; + } + + # Buildinfo endpoint can go to any component + location = /api/v1/status/buildinfo { + proxy_pass http://test-oss-values-mimir-query-frontend.default.svc.cluster.local:8080$request_uri; + } + } + } diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/nginx/nginx-dep.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/nginx/nginx-dep.yaml new file mode 100644 index 00000000000..7ed199b4cb0 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/nginx/nginx-dep.yaml @@ -0,0 +1,95 @@ +--- +# Source: mimir-distributed/templates/nginx/nginx-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-oss-values-mimir-nginx + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: nginx + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + strategy: + type: RollingUpdate + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: nginx + template: + metadata: + annotations: + checksum/config: d7fa3f4c1e841a4634ee7561fa92990e6525d1bfdb176f416744e0b8f72ae99d + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: nginx + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + fsGroup: 101 + runAsGroup: 101 + runAsNonRoot: true + runAsUser: 101 + terminationGracePeriodSeconds: 30 + containers: + - name: nginx + image: docker.io/nginxinc/nginx-unprivileged:1.19-alpine + imagePullPolicy: IfNotPresent + ports: + - name: http-metric + containerPort: 8080 + protocol: TCP + env: + envFrom: + readinessProbe: + httpGet: + path: / + port: http-metric + initialDelaySeconds: 15 + timeoutSeconds: 1 + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + readOnlyRootFilesystem: true + volumeMounts: + - name: config + mountPath: /etc/nginx + - name: tmp + mountPath: /tmp + - name: docker-entrypoint-d-override + mountPath: /docker-entrypoint.d + resources: + {} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: component + operator: In + values: + - nginx + topologyKey: failure-domain.beta.kubernetes.io/zone + + volumes: + - name: config + configMap: + name: test-oss-values-mimir-nginx + - name: tmp + emptyDir: {} + - name: docker-entrypoint-d-override + emptyDir: {} diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/nginx/nginx-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/nginx/nginx-svc.yaml new file mode 100644 index 00000000000..e331454c698 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/nginx/nginx-svc.yaml @@ -0,0 +1,26 @@ +--- +# Source: mimir-distributed/templates/nginx/nginx-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-nginx + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: nginx + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + type: ClusterIP + ports: + - name: http-metric + port: 80 + targetPort: http-metric + protocol: TCP + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: nginx diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-dep.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-dep.yaml new file mode 100644 index 00000000000..107d7216c8b --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-dep.yaml @@ -0,0 +1,101 @@ +--- +# Source: mimir-distributed/templates/overrides-exporter/overrides-exporter-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + {} + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: overrides-exporter + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + name: test-oss-values-mimir-overrides-exporter +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: overrides-exporter + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: overrides-exporter + annotations: + checksum/config: 7b9ed84df22bf324205968cf49b0d824eb15e1748888719ffc3bab3f17d5e2e4 + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: overrides-exporter + image: "grafana/mimir:2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=overrides-exporter" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + subPath: + ports: + - name: http-metrics + containerPort: 8080 + protocol: TCP + - name: grpc + containerPort: 9095 + protocol: TCP + livenessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + readinessProbe: + httpGet: + path: /ready + port: http-metrics + initialDelaySeconds: 45 + resources: + requests: + cpu: 100m + memory: 128Mi + securityContext: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 60 + volumes: + - name: config + secret: + secretName: test-oss-values-mimir-config + - name: runtime-config + configMap: + name: test-oss-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-svc.yaml new file mode 100644 index 00000000000..0ff1ee8ec9d --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/overrides-exporter/overrides-exporter-svc.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/templates/overrides-exporter/overrides-exporter-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-overrides-exporter + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: overrides-exporter + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-oss-values + app.kubernetes.io/component: overrides-exporter diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/podsecuritypolicy.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/podsecuritypolicy.yaml new file mode 100644 index 00000000000..395db399470 --- /dev/null +++ b/operations/helm/tests/test-oss-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-oss-values-mimir + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +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-oss-values-generated/mimir-distributed/templates/querier/querier-dep.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/querier/querier-dep.yaml new file mode 100644 index 00000000000..f5cd09319ed --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/querier/querier-dep.yaml @@ -0,0 +1,113 @@ +--- +# Source: mimir-distributed/templates/querier/querier-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-oss-values-mimir-querier + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: querier + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 2 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: querier + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: querier + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 7b9ed84df22bf324205968cf49b0d824eb15e1748888719ffc3bab3f17d5e2e4 + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: querier + image: "grafana/mimir:2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=querier" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + subPath: + 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: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: target + operator: In + values: + - querier + topologyKey: kubernetes.io/hostname + weight: 100 + tolerations: + [] + terminationGracePeriodSeconds: 180 + volumes: + - name: config + secret: + secretName: test-oss-values-mimir-config + - name: runtime-config + configMap: + name: test-oss-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/querier/querier-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/querier/querier-svc.yaml new file mode 100644 index 00000000000..c1fcf0582bc --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/querier/querier-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/querier/querier-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-querier + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: querier + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-oss-values + app.kubernetes.io/component: querier diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/query-frontend/query-frontend-dep.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/query-frontend/query-frontend-dep.yaml new file mode 100644 index 00000000000..c14cc7b880a --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/query-frontend/query-frontend-dep.yaml @@ -0,0 +1,107 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-oss-values-mimir-query-frontend + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: query-frontend + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: query-frontend + annotations: + checksum/config: 7b9ed84df22bf324205968cf49b0d824eb15e1748888719ffc3bab3f17d5e2e4 + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: query-frontend + image: "grafana/mimir:2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=query-frontend" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: runtime-config + mountPath: /var/mimir + - name: config + mountPath: /etc/mimir + - name: storage + mountPath: /data + 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: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: target + operator: In + values: + - query-frontend + topologyKey: kubernetes.io/hostname + weight: 100 + tolerations: + [] + terminationGracePeriodSeconds: 180 + volumes: + - name: config + secret: + secretName: test-oss-values-mimir-config + - name: runtime-config + configMap: + name: test-oss-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml new file mode 100644 index 00000000000..7295c71edcd --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml @@ -0,0 +1,33 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-query-frontend-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +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-oss-values + app.kubernetes.io/component: query-frontend diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc.yaml new file mode 100644 index 00000000000..f38983aca6f --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/query-frontend/query-frontend-svc.yaml @@ -0,0 +1,30 @@ +--- +# Source: mimir-distributed/templates/query-frontend/query-frontend-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-query-frontend + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: query-frontend + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-oss-values + app.kubernetes.io/component: query-frontend diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/role.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/role.yaml new file mode 100644 index 00000000000..744b7b2a513 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/role.yaml @@ -0,0 +1,17 @@ +--- +# Source: mimir-distributed/templates/role.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: test-oss-values-mimir + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +rules: +- apiGroups: ['extensions'] + resources: ['podsecuritypolicies'] + verbs: ['use'] + resourceNames: [test-oss-values-mimir] diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/rolebinding.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/rolebinding.yaml new file mode 100644 index 00000000000..a2310f0d972 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/rolebinding.yaml @@ -0,0 +1,19 @@ +--- +# Source: mimir-distributed/templates/rolebinding.yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: test-oss-values-mimir + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: test-oss-values-mimir +subjects: +- kind: ServiceAccount + name: test-oss-values-mimir diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ruler/ruler-dep.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ruler/ruler-dep.yaml new file mode 100644 index 00000000000..f7ceb3b0491 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ruler/ruler-dep.yaml @@ -0,0 +1,103 @@ +--- +# Source: mimir-distributed/templates/ruler/ruler-dep.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: test-oss-values-mimir-ruler + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ruler + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ruler + strategy: + rollingUpdate: + maxSurge: 0 + maxUnavailable: 1 + type: RollingUpdate + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: ruler + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 7b9ed84df22bf324205968cf49b0d824eb15e1748888719ffc3bab3f17d5e2e4 + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + {} + initContainers: + [] + containers: + - name: ruler + image: "grafana/mimir:2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=ruler" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + subPath: + 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: + readOnlyRootFilesystem: true + env: + envFrom: + nodeSelector: + {} + affinity: + {} + tolerations: + [] + terminationGracePeriodSeconds: 180 + volumes: + - name: config + secret: + secretName: test-oss-values-mimir-config + - name: runtime-config + configMap: + name: test-oss-values-mimir-runtime + - name: storage + emptyDir: {} diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ruler/ruler-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ruler/ruler-svc.yaml new file mode 100644 index 00000000000..ce75a9acecc --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/ruler/ruler-svc.yaml @@ -0,0 +1,27 @@ +--- +# Source: mimir-distributed/templates/ruler/ruler-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-ruler + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ruler + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + type: ClusterIP + ports: + - port: 8080 + protocol: TCP + name: http-metrics + targetPort: http-metrics + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: ruler diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/runtime-configmap.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/runtime-configmap.yaml new file mode 100644 index 00000000000..7c5ea9aa679 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/runtime-configmap.yaml @@ -0,0 +1,16 @@ +--- +# Source: mimir-distributed/templates/runtime-configmap.yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: test-oss-values-mimir-runtime + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +data: + runtime.yaml: | + + {} diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/secret.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/secret.yaml new file mode 100644 index 00000000000..31de04f6fc8 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/secret.yaml @@ -0,0 +1,14 @@ +--- +# Source: mimir-distributed/templates/secret.yaml +apiVersion: v1 +kind: Secret +metadata: + name: test-oss-values-mimir-config + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +data: + mimir.yaml: bXVsdGl0ZW5hbmN5X2VuYWJsZWQ6IGZhbHNlCgpsaW1pdHM6IHt9CgphY3Rpdml0eV90cmFja2VyOgogIGZpbGVwYXRoOiAvZGF0YS9tZXRyaWNzLWFjdGl2aXR5LmxvZwoKYWxlcnRtYW5hZ2VyOgogIGRhdGFfZGlyOiAnL2RhdGEnCiAgZW5hYmxlX2FwaTogdHJ1ZQogIGV4dGVybmFsX3VybDogJy9hbGVydG1hbmFnZXInCmFsZXJ0bWFuYWdlcl9zdG9yYWdlOgogIGJhY2tlbmQ6IHMzCiAgczM6CiAgICBlbmRwb2ludDogdGVzdC1vc3MtdmFsdWVzLW1pbmlvLmRlZmF1bHQuc3ZjOjkwMDAKICAgIGJ1Y2tldF9uYW1lOiBtaW1pci1ydWxlcgogICAgYWNjZXNzX2tleV9pZDogZ3JhZmFuYS1taW1pcgogICAgc2VjcmV0X2FjY2Vzc19rZXk6IHN1cGVyc2VjcmV0CiAgICBpbnNlY3VyZTogdHJ1ZQoKZnJvbnRlbmRfd29ya2VyOgogIGZyb250ZW5kX2FkZHJlc3M6IHRlc3Qtb3NzLXZhbHVlcy1taW1pci1xdWVyeS1mcm9udGVuZC1oZWFkbGVzcy5kZWZhdWx0LnN2Yzo5MDk1CgpydWxlcjoKICBlbmFibGVfYXBpOiB0cnVlCiAgcnVsZV9wYXRoOiAnL2RhdGEnCiAgYWxlcnRtYW5hZ2VyX3VybDogZG5zc3J2bm9hK2h0dHA6Ly9faHR0cC1tZXRyaWNzLl90Y3AudGVzdC1vc3MtdmFsdWVzLW1pbWlyLWFsZXJ0bWFuYWdlci1oZWFkbGVzcy5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsL2FsZXJ0bWFuYWdlcgoKc2VydmVyOgogIGdycGNfc2VydmVyX21heF9yZWN2X21zZ19zaXplOiAxMDQ4NTc2MDAKICBncnBjX3NlcnZlcl9tYXhfc2VuZF9tc2dfc2l6ZTogMTA0ODU3NjAwCiAgZ3JwY19zZXJ2ZXJfbWF4X2NvbmN1cnJlbnRfc3RyZWFtczogMTAwMAoKZnJvbnRlbmQ6CiAgbG9nX3F1ZXJpZXNfbG9uZ2VyX3RoYW46IDEwcwogIGFsaWduX3F1ZXJpZXNfd2l0aF9zdGVwOiB0cnVlCgpjb21wYWN0b3I6CiAgZGF0YV9kaXI6ICIvZGF0YSIKCmluZ2VzdGVyOgogIHJpbmc6CiAgICBmaW5hbF9zbGVlcDogMHMKICAgIG51bV90b2tlbnM6IDUxMgogICAgdW5yZWdpc3Rlcl9vbl9zaHV0ZG93bjogZmFsc2UKCmluZ2VzdGVyX2NsaWVudDoKICBncnBjX2NsaWVudF9jb25maWc6CiAgICBtYXhfcmVjdl9tc2dfc2l6ZTogMTA0ODU3NjAwCiAgICBtYXhfc2VuZF9tc2dfc2l6ZTogMTA0ODU3NjAwCgpydW50aW1lX2NvbmZpZzoKICBmaWxlOiAvdmFyL21pbWlyL3J1bnRpbWUueWFtbAoKbWVtYmVybGlzdDoKICBhYm9ydF9pZl9jbHVzdGVyX2pvaW5fZmFpbHM6IGZhbHNlCiAgY29tcHJlc3Npb25fZW5hYmxlZDogZmFsc2UKICBqb2luX21lbWJlcnM6CiAgLSB0ZXN0LW9zcy12YWx1ZXMtbWltaXItZ29zc2lwLXJpbmcKCiMgVGhpcyBjb25maWd1cmVzIGhvdyB0aGUgc3RvcmUtZ2F0ZXdheSBzeW5jaHJvbml6ZXMgYmxvY2tzIHN0b3JlZCBpbiB0aGUgYnVja2V0LiBJdCB1c2VzIE1pbmlvIGJ5IGRlZmF1bHQgZm9yIGdldHRpbmcgc3RhcnRlZCAoY29uZmlndXJlZCB2aWEgZmxhZ3MpIGJ1dCB0aGlzIHNob3VsZCBiZSBjaGFuZ2VkIGZvciBwcm9kdWN0aW9uIGRlcGxveW1lbnRzLgpibG9ja3Nfc3RvcmFnZToKICBiYWNrZW5kOiBzMwogIHRzZGI6CiAgICBkaXI6IC9kYXRhL3RzZGIKICBidWNrZXRfc3RvcmU6CiAgICBzeW5jX2RpcjogL2RhdGEvdHNkYi1zeW5jCiAgczM6CiAgICBlbmRwb2ludDogdGVzdC1vc3MtdmFsdWVzLW1pbmlvLmRlZmF1bHQuc3ZjOjkwMDAKICAgIGJ1Y2tldF9uYW1lOiBtaW1pci10c2RiCiAgICBhY2Nlc3Nfa2V5X2lkOiBncmFmYW5hLW1pbWlyCiAgICBzZWNyZXRfYWNjZXNzX2tleTogc3VwZXJzZWNyZXQKICAgIGluc2VjdXJlOiB0cnVlCnJ1bGVyX3N0b3JhZ2U6CiAgYmFja2VuZDogczMKICBzMzoKICAgIGVuZHBvaW50OiB0ZXN0LW9zcy12YWx1ZXMtbWluaW8uZGVmYXVsdC5zdmM6OTAwMAogICAgYnVja2V0X25hbWU6IG1pbWlyLXJ1bGVyCiAgICBhY2Nlc3Nfa2V5X2lkOiBncmFmYW5hLW1pbWlyCiAgICBzZWNyZXRfYWNjZXNzX2tleTogc3VwZXJzZWNyZXQKICAgIGluc2VjdXJlOiB0cnVlCg== diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/serviceaccount.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/serviceaccount.yaml new file mode 100644 index 00000000000..c5f94d48a9c --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/serviceaccount.yaml @@ -0,0 +1,14 @@ +--- +# Source: mimir-distributed/templates/serviceaccount.yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-oss-values-mimir + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml new file mode 100644 index 00000000000..4d990a193d4 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml @@ -0,0 +1,21 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-pdb.yaml +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: test-oss-values-mimir-store-gateway + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm +spec: + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: store-gateway + maxUnavailable: 1 diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml new file mode 100644 index 00000000000..9f9eca6fde0 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml @@ -0,0 +1,108 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-statefulset.yaml +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: test-oss-values-mimir-store-gateway + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: store-gateway + updateStrategy: + type: RollingUpdate + serviceName: test-oss-values-mimir-store-gateway-headless + template: + metadata: + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + annotations: + checksum/config: 7b9ed84df22bf324205968cf49b0d824eb15e1748888719ffc3bab3f17d5e2e4 + spec: + serviceAccountName: test-oss-values-mimir + securityContext: + {} + initContainers: + [] + nodeSelector: + {} + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: target + operator: In + values: + - store-gateway + topologyKey: kubernetes.io/hostname + tolerations: + [] + terminationGracePeriodSeconds: 240 + volumes: + - name: config + secret: + secretName: test-oss-values-mimir-config + - name: runtime-config + configMap: + name: test-oss-values-mimir-runtime + - name: storage + emptyDir: {} + containers: + - name: store-gateway + image: "grafana/mimir:2.1.0" + imagePullPolicy: IfNotPresent + args: + - "-target=store-gateway" + - "-config.expand-env=true" + - "-config.file=/etc/mimir/mimir.yaml" + volumeMounts: + - name: config + mountPath: /etc/mimir + - name: runtime-config + mountPath: /var/mimir + - name: storage + mountPath: "/data" + 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: + readOnlyRootFilesystem: true + env: + envFrom: diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml new file mode 100644 index 00000000000..07f36435a33 --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml @@ -0,0 +1,29 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-svc-headless.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-store-gateway-headless + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + prometheus.io/service-monitor: "false" + annotations: + {} +spec: + type: ClusterIP + clusterIP: None + ports: + - port: 9095 + protocol: TCP + name: grpc + targetPort: grpc + selector: + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: store-gateway diff --git a/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc.yaml b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc.yaml new file mode 100644 index 00000000000..288c52639da --- /dev/null +++ b/operations/helm/tests/test-oss-values-generated/mimir-distributed/templates/store-gateway/store-gateway-svc.yaml @@ -0,0 +1,31 @@ +--- +# Source: mimir-distributed/templates/store-gateway/store-gateway-svc.yaml +apiVersion: v1 +kind: Service +metadata: + name: test-oss-values-mimir-store-gateway + labels: + helm.sh/chart: mimir-distributed-2.2.0-weekly.189 + app.kubernetes.io/name: mimir + app.kubernetes.io/instance: test-oss-values + app.kubernetes.io/component: store-gateway + app.kubernetes.io/part-of: memberlist + app.kubernetes.io/version: "2.1.0" + app.kubernetes.io/managed-by: Helm + annotations: + {} +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-oss-values + app.kubernetes.io/component: store-gateway