Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): Add support for configurable storage classes per zone in Zone Awareness and align Helm chart with Mimir #14400

Open
wants to merge 149 commits into
base: main
Choose a base branch
from

Conversation

michaelsudakov
Copy link

@michaelsudakov michaelsudakov commented Oct 6, 2024

Description:
This pull request introduces an enhancement to the Loki Helm chart by adding support for configuring different storage classes per zone when Zone Awareness is enabled. This improvement addresses the current limitation where all zones share the same storage class, thus providing greater flexibility for multi-zone deployments.

Changes:

  • Introduced a new option under the zoneAwareness configuration to allow specifying different storage classes for each zone.
  • Refactored the Helm chart to align with similar configurations in Mimir, ensuring consistency and easier maintainability across projects.

Goals:

  • Improve flexibility in managing storage classes and other options in multi-zone environments.
  • Align the Loki Helm chart with Mimir for consistency across projects.

Thank you for reviewing this PR!

@michaelsudakov michaelsudakov requested a review from a team as a code owner October 6, 2024 08:58
@CLAassistant
Copy link

CLAassistant commented Oct 6, 2024

CLA assistant check
All committers have signed the CLA.

This comment has been minimized.

@michaelsudakov michaelsudakov changed the title Add support for configurable storage classes per zone in Zone Awareness and align Helm chart with Mimir feat(helm): Add support for configurable storage classes per zone in Zone Awareness and align Helm chart with Mimir Oct 20, 2024

This comment has been minimized.

Copy link
Contributor

Kubernetes Manifest Diff Summary

Scenario: default-single-binary-values (Added: 3, Modified: 8, Removed: 6)

Summary:

  • Added: 3

  • Modified: 8

  • Removed: 6

Added Files

loki/templates/ingester/service-ingester.yaml
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-a
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-b
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-c
loki/templates/ingester/statefulset-ingester.yaml
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-a
spec:
 replicas: 1
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-a-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 8afd86b031d6b47b96a59259a9e3393a95d5b321e5b9f5b492a2880b96042d52
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-a
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-a
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-b
spec:
 replicas: 1
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-b-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 8afd86b031d6b47b96a59259a9e3393a95d5b321e5b9f5b492a2880b96042d52
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-b
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-b
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-c
spec:
 replicas: 1
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-c-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 8afd86b031d6b47b96a59259a9e3393a95d5b321e5b9f5b492a2880b96042d52
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-c
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-c
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
loki/templates/ingester/service-ingester-headless.yaml
---
# Source: loki/templates/ingester/service-ingester-headless.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-headless
 namespace: default
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 prometheus.io/service-monitor: "false"
 annotations:
spec:
 type: ClusterIP
 clusterIP: None
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester

Modified Files

loki/templates/querier/deployment-querier.yaml
*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/querier/deployment-querier.yaml	2024-11-12 12:57:17.770709789 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/querier/deployment-querier.yaml	2024-11-12 12:57:20.066715371 +0000
***************
*** 58,63 ****
--- 58,65 ----
 - -config.file=/etc/loki/config/config.yaml
 - -target=querier
 - -distributor.zone-awareness-enabled=true
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 68,73 ****
--- 70,81 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/query-frontend/deployment-query-frontend.yaml
*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/query-frontend/deployment-query-frontend.yaml	2024-11-12 12:57:17.770709789 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/query-frontend/deployment-query-frontend.yaml	2024-11-12 12:57:20.066715371 +0000
***************
*** 49,54 ****
--- 49,56 ----
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -target=query-frontend
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 59,64 ****
--- 61,72 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/compactor/statefulset-compactor.yaml
*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/compactor/statefulset-compactor.yaml	2024-11-12 12:57:17.770709789 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/compactor/statefulset-compactor.yaml	2024-11-12 12:57:20.066715371 +0000
***************
*** 51,56 ****
--- 51,58 ----
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -target=compactor
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 61,66 ****
--- 63,74 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/gateway/deployment-gateway-nginx.yaml
*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/gateway/deployment-gateway-nginx.yaml	2024-11-12 12:57:17.770709789 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/gateway/deployment-gateway-nginx.yaml	2024-11-12 12:57:20.066715371 +0000
***************
*** 48,53 ****
--- 48,57 ----
 - name: http-metrics
 containerPort: 8080
 protocol: TCP
+ env:
+ 
+ envFrom:
+ 
 readinessProbe:
 httpGet:
 path: /
loki/templates/query-scheduler/deployment-query-scheduler.yaml
*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/query-scheduler/deployment-query-scheduler.yaml	2024-11-12 12:57:17.770709789 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/query-scheduler/deployment-query-scheduler.yaml	2024-11-12 12:57:20.066715371 +0000
***************
*** 49,54 ****
--- 49,56 ----
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -target=query-scheduler
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 59,64 ****
--- 61,72 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/ruler/statefulset-ruler.yaml
*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/ruler/statefulset-ruler.yaml	2024-11-12 12:57:17.770709789 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/ruler/statefulset-ruler.yaml	2024-11-12 12:57:20.066715371 +0000
***************
*** 46,51 ****
--- 46,53 ----
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -target=ruler
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 56,61 ****
--- 58,69 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/index-gateway/statefulset-index-gateway.yaml
*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/index-gateway/statefulset-index-gateway.yaml	2024-11-12 12:57:17.770709789 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/index-gateway/statefulset-index-gateway.yaml	2024-11-12 12:57:20.066715371 +0000
***************
*** 47,52 ****
--- 47,54 ----
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -target=index-gateway
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 57,62 ****
--- 59,70 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/distributor/deployment-distributor.yaml
*** /home/runner/work/loki/loki/output/base/default-single-binary-values/loki/templates/distributor/deployment-distributor.yaml	2024-11-12 12:57:17.770709789 +0000
--- /home/runner/work/loki/loki/output/pr/default-single-binary-values/loki/templates/distributor/deployment-distributor.yaml	2024-11-12 12:57:20.066715371 +0000
***************
*** 51,56 ****
--- 51,58 ----
 - -config.file=/etc/loki/config/config.yaml
 - -target=distributor
 - -distributor.zone-awareness-enabled=true
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 61,66 ****
--- 63,74 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:

Removed Files

loki/templates/ingester/service-ingester-zone-b-headless.yaml
---
# Source: loki/templates/ingester/service-ingester-zone-b-headless.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-b-headless
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 clusterIP: None
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: ingester-zone-b
 rollout-group: ingester
loki/templates/ingester/statefulset-ingester-zone-c.yaml
---
# Source: loki/templates/ingester/statefulset-ingester-zone-c.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 rollout-group: ingester
 name: ingester-zone-c
 annotations:
 rollout-max-unavailable: "1"
spec:
 replicas: 1
 podManagementPolicy: Parallel
 serviceName: loki-test-chart-name-ingester-zone-c
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: ingester-zone-c
 rollout-group: ingester
 updateStrategy:
 type: RollingUpdate
 template:
 metadata:
 annotations:
 checksum/config: 8afd86b031d6b47b96a59259a9e3393a95d5b321e5b9f5b492a2880b96042d52
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: ingester-zone-c
 rollout-group: ingester
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-c
 - -ingester.unregister-on-shutdown=false
 - -ingester.tokens-file-path=/var/loki/ring-tokens
 - -target=ingester
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 affinity:
 podAntiAffinity:
 requiredDuringSchedulingIgnoredDuringExecution:
 - labelSelector:
 matchExpressions:
 - key: rollout-group
 operator: In
 values:
 - ingester
 - key: name
 operator: NotIn
 values:
 - ingester-zone-c
 topologyKey: kubernetes.io/hostname
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: {}
loki/templates/ingester/service-ingester-zone-a-headless.yaml
---
# Source: loki/templates/ingester/service-ingester-zone-a-headless.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-a-headless
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 clusterIP: None
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: ingester-zone-a
 rollout-group: ingester
loki/templates/ingester/service-ingester-zone-c-headless.yaml
---
# Source: loki/templates/ingester/service-ingester-zone-c-headless.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-c-headless
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 clusterIP: None
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: ingester-zone-c
 rollout-group: ingester
loki/templates/ingester/statefulset-ingester-zone-b.yaml
---
# Source: loki/templates/ingester/statefulset-ingester-zone-b.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 rollout-group: ingester
 name: ingester-zone-b
 annotations:
 rollout-max-unavailable: "1"
spec:
 replicas: 1
 podManagementPolicy: Parallel
 serviceName: loki-test-chart-name-ingester-zone-b
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: ingester-zone-b
 rollout-group: ingester
 updateStrategy:
 type: RollingUpdate
 template:
 metadata:
 annotations:
 checksum/config: 8afd86b031d6b47b96a59259a9e3393a95d5b321e5b9f5b492a2880b96042d52
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: ingester-zone-b
 rollout-group: ingester
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-b
 - -ingester.unregister-on-shutdown=false
 - -ingester.tokens-file-path=/var/loki/ring-tokens
 - -target=ingester
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 affinity:
 podAntiAffinity:
 requiredDuringSchedulingIgnoredDuringExecution:
 - labelSelector:
 matchExpressions:
 - key: rollout-group
 operator: In
 values:
 - ingester
 - key: name
 operator: NotIn
 values:
 - ingester-zone-b
 topologyKey: kubernetes.io/hostname
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: {}
loki/templates/ingester/statefulset-ingester-zone-a.yaml
---
# Source: loki/templates/ingester/statefulset-ingester-zone-a.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 rollout-group: ingester
 name: ingester-zone-a
 annotations:
 rollout-max-unavailable: "1"
spec:
 replicas: 1
 podManagementPolicy: Parallel
 serviceName: loki-test-chart-name-ingester-zone-a
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: ingester-zone-a
 rollout-group: ingester
 updateStrategy:
 type: RollingUpdate
 template:
 metadata:
 annotations:
 checksum/config: 8afd86b031d6b47b96a59259a9e3393a95d5b321e5b9f5b492a2880b96042d52
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: ingester-zone-a
 rollout-group: ingester
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-a
 - -ingester.unregister-on-shutdown=false
 - -ingester.tokens-file-path=/var/loki/ring-tokens
 - -target=ingester
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 affinity:
 podAntiAffinity:
 requiredDuringSchedulingIgnoredDuringExecution:
 - labelSelector:
 matchExpressions:
 - key: rollout-group
 operator: In
 values:
 - ingester
 - key: name
 operator: NotIn
 values:
 - ingester-zone-a
 topologyKey: kubernetes.io/hostname
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: {}

Scenario: default-values (Added: 3, Modified: 4, Removed: 0)

Summary:

  • Added: 3

  • Modified: 4

  • Removed: 0

Added Files

loki/templates/ingester/service-ingester.yaml
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-a
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-b
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-c
loki/templates/ingester/statefulset-ingester.yaml
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-a
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-a-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 540324ec0074bd0542be3e9a36892034c213d8576418c25ef5dd4443df6b354f
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-a
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-a
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-b
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-b-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 540324ec0074bd0542be3e9a36892034c213d8576418c25ef5dd4443df6b354f
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-b
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-b
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-c
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-c-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 540324ec0074bd0542be3e9a36892034c213d8576418c25ef5dd4443df6b354f
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-c
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-c
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
loki/templates/ingester/service-ingester-headless.yaml
---
# Source: loki/templates/ingester/service-ingester-headless.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-headless
 namespace: default
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 prometheus.io/service-monitor: "false"
 annotations:
spec:
 type: ClusterIP
 clusterIP: None
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester

Modified Files

loki/templates/read/deployment-read.yaml
*** /home/runner/work/loki/loki/output/base/default-values/loki/templates/read/deployment-read.yaml	2024-11-12 12:57:17.866710022 +0000
--- /home/runner/work/loki/loki/output/pr/default-values/loki/templates/read/deployment-read.yaml	2024-11-12 12:57:20.178715643 +0000
***************
*** 53,58 ****
--- 53,60 ----
 - -target=read
 - -legacy-read-mode=false
 - -common.compactor-grpc-address=loki-backend.default.svc.cluster.local:9095
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 63,68 ****
--- 65,76 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/write/statefulset-write.yaml
*** /home/runner/work/loki/loki/output/base/default-values/loki/templates/write/statefulset-write.yaml	2024-11-12 12:57:17.866710022 +0000
--- /home/runner/work/loki/loki/output/pr/default-values/loki/templates/write/statefulset-write.yaml	2024-11-12 12:57:20.178715643 +0000
***************
*** 53,58 ****
--- 53,60 ----
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -target=write
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 63,68 ****
--- 65,76 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/gateway/deployment-gateway-nginx.yaml
*** /home/runner/work/loki/loki/output/base/default-values/loki/templates/gateway/deployment-gateway-nginx.yaml	2024-11-12 12:57:17.866710022 +0000
--- /home/runner/work/loki/loki/output/pr/default-values/loki/templates/gateway/deployment-gateway-nginx.yaml	2024-11-12 12:57:20.178715643 +0000
***************
*** 48,53 ****
--- 48,57 ----
 - name: http-metrics
 containerPort: 8080
 protocol: TCP
+ env:
+ 
+ envFrom:
+ 
 readinessProbe:
 httpGet:
 path: /
loki/templates/backend/statefulset-backend.yaml
*** /home/runner/work/loki/loki/output/base/default-values/loki/templates/backend/statefulset-backend.yaml	2024-11-12 12:57:17.866710022 +0000
--- /home/runner/work/loki/loki/output/pr/default-values/loki/templates/backend/statefulset-backend.yaml	2024-11-12 12:57:20.178715643 +0000
***************
*** 78,83 ****
--- 78,85 ----
 - -config.file=/etc/loki/config/config.yaml
 - -target=backend
 - -legacy-read-mode=false
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 88,93 ****
--- 90,101 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:

Removed Files

No removed files

Scenario: ingress-values (Added: 3, Modified: 4, Removed: 0)

Summary:

  • Added: 3

  • Modified: 4

  • Removed: 0

Added Files

loki/templates/ingester/service-ingester.yaml
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-a
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-b
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-c
loki/templates/ingester/statefulset-ingester.yaml
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-a
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-a-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 540324ec0074bd0542be3e9a36892034c213d8576418c25ef5dd4443df6b354f
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-a
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-a
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-b
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-b-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 540324ec0074bd0542be3e9a36892034c213d8576418c25ef5dd4443df6b354f
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-b
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-b
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-c
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-c-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 540324ec0074bd0542be3e9a36892034c213d8576418c25ef5dd4443df6b354f
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-c
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-c
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
loki/templates/ingester/service-ingester-headless.yaml
---
# Source: loki/templates/ingester/service-ingester-headless.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-headless
 namespace: default
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 prometheus.io/service-monitor: "false"
 annotations:
spec:
 type: ClusterIP
 clusterIP: None
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester

Modified Files

loki/templates/read/deployment-read.yaml
*** /home/runner/work/loki/loki/output/base/ingress-values/loki/templates/read/deployment-read.yaml	2024-11-12 12:57:17.966710265 +0000
--- /home/runner/work/loki/loki/output/pr/ingress-values/loki/templates/read/deployment-read.yaml	2024-11-12 12:57:20.290715916 +0000
***************
*** 53,58 ****
--- 53,60 ----
 - -target=read
 - -legacy-read-mode=false
 - -common.compactor-grpc-address=loki-backend.default.svc.cluster.local:9095
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 63,68 ****
--- 65,76 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/write/statefulset-write.yaml
*** /home/runner/work/loki/loki/output/base/ingress-values/loki/templates/write/statefulset-write.yaml	2024-11-12 12:57:17.966710265 +0000
--- /home/runner/work/loki/loki/output/pr/ingress-values/loki/templates/write/statefulset-write.yaml	2024-11-12 12:57:20.290715916 +0000
***************
*** 53,58 ****
--- 53,60 ----
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -target=write
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 63,68 ****
--- 65,76 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/gateway/deployment-gateway-nginx.yaml
*** /home/runner/work/loki/loki/output/base/ingress-values/loki/templates/gateway/deployment-gateway-nginx.yaml	2024-11-12 12:57:17.966710265 +0000
--- /home/runner/work/loki/loki/output/pr/ingress-values/loki/templates/gateway/deployment-gateway-nginx.yaml	2024-11-12 12:57:20.290715916 +0000
***************
*** 48,53 ****
--- 48,57 ----
 - name: http-metrics
 containerPort: 8080
 protocol: TCP
+ env:
+ 
+ envFrom:
+ 
 readinessProbe:
 httpGet:
 path: /
loki/templates/backend/statefulset-backend.yaml
*** /home/runner/work/loki/loki/output/base/ingress-values/loki/templates/backend/statefulset-backend.yaml	2024-11-12 12:57:17.966710265 +0000
--- /home/runner/work/loki/loki/output/pr/ingress-values/loki/templates/backend/statefulset-backend.yaml	2024-11-12 12:57:20.290715916 +0000
***************
*** 78,83 ****
--- 78,85 ----
 - -config.file=/etc/loki/config/config.yaml
 - -target=backend
 - -legacy-read-mode=false
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 88,93 ****
--- 90,101 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:

Removed Files

No removed files

Scenario: legacy-monitoring-values (Added: 3, Modified: 4, Removed: 0)

Summary:

  • Added: 3

  • Modified: 4

  • Removed: 0

Added Files

loki/templates/ingester/service-ingester.yaml
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-a
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-b
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-ingester-zone-c
loki/templates/ingester/statefulset-ingester.yaml
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-a
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-a-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 540324ec0074bd0542be3e9a36892034c213d8576418c25ef5dd4443df6b354f
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-a
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-a
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-b
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-b-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 540324ec0074bd0542be3e9a36892034c213d8576418c25ef5dd4443df6b354f
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-b
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-b
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-c
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-ingester-zone-c-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 540324ec0074bd0542be3e9a36892034c213d8576418c25ef5dd4443df6b354f
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-ingester-zone-c
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: loki
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/loki:3.2.0
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-c
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 volumes:
 - name: config
 configMap:
 name: loki
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: loki-runtime
 - name: data
 emptyDir: { }
loki/templates/ingester/service-ingester-headless.yaml
---
# Source: loki/templates/ingester/service-ingester-headless.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-ingester-headless
 namespace: default
 labels:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 prometheus.io/service-monitor: "false"
 annotations:
spec:
 type: ClusterIP
 clusterIP: None
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: loki
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester

Modified Files

loki/templates/read/deployment-read.yaml
*** /home/runner/work/loki/loki/output/base/legacy-monitoring-values/loki/templates/read/deployment-read.yaml	2024-11-12 12:57:18.066710508 +0000
--- /home/runner/work/loki/loki/output/pr/legacy-monitoring-values/loki/templates/read/deployment-read.yaml	2024-11-12 12:57:20.410716208 +0000
***************
*** 53,58 ****
--- 53,60 ----
 - -target=read
 - -legacy-read-mode=false
 - -common.compactor-grpc-address=loki-backend.default.svc.cluster.local:9095
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 63,68 ****
--- 65,76 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/write/statefulset-write.yaml
*** /home/runner/work/loki/loki/output/base/legacy-monitoring-values/loki/templates/write/statefulset-write.yaml	2024-11-12 12:57:18.066710508 +0000
--- /home/runner/work/loki/loki/output/pr/legacy-monitoring-values/loki/templates/write/statefulset-write.yaml	2024-11-12 12:57:20.410716208 +0000
***************
*** 53,58 ****
--- 53,60 ----
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -target=write
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 63,68 ****
--- 65,76 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/gateway/deployment-gateway-nginx.yaml
*** /home/runner/work/loki/loki/output/base/legacy-monitoring-values/loki/templates/gateway/deployment-gateway-nginx.yaml	2024-11-12 12:57:18.066710508 +0000
--- /home/runner/work/loki/loki/output/pr/legacy-monitoring-values/loki/templates/gateway/deployment-gateway-nginx.yaml	2024-11-12 12:57:20.410716208 +0000
***************
*** 48,53 ****
--- 48,57 ----
 - name: http-metrics
 containerPort: 8080
 protocol: TCP
+ env:
+ 
+ envFrom:
+ 
 readinessProbe:
 httpGet:
 path: /
loki/templates/backend/statefulset-backend.yaml
*** /home/runner/work/loki/loki/output/base/legacy-monitoring-values/loki/templates/backend/statefulset-backend.yaml	2024-11-12 12:57:18.066710508 +0000
--- /home/runner/work/loki/loki/output/pr/legacy-monitoring-values/loki/templates/backend/statefulset-backend.yaml	2024-11-12 12:57:20.410716208 +0000
***************
*** 78,83 ****
--- 78,85 ----
 - -config.file=/etc/loki/config/config.yaml
 - -target=backend
 - -legacy-read-mode=false
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 88,93 ****
--- 90,101 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:

Removed Files

No removed files

Scenario: simple-scalable-aws-kube-irsa-values (Added: 3, Modified: 6, Removed: 0)

Summary:

  • Added: 3

  • Modified: 6

  • Removed: 0

Added Files

loki/templates/ingester/service-ingester.yaml
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-enterprise-logs-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-enterprise-logs-ingester-zone-a
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-enterprise-logs-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-enterprise-logs-ingester-zone-b
---
# Source: loki/templates/ingester/service-ingester.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-enterprise-logs-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 annotations:
spec:
 type: ClusterIP
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 name: loki-test-chart-name-enterprise-logs-ingester-zone-c
loki/templates/ingester/statefulset-ingester.yaml
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-enterprise-logs-ingester-zone-a
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-enterprise-logs-ingester-zone-a
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-enterprise-logs-ingester-zone-a-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 4a89247c5f729aa7f742986de6f9a88a88f538f66b6b811414428c60920e5934
 labels:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-enterprise-logs-ingester-zone-a
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: enterprise-logs
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/enterprise-logs:3.1.1
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-a
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 - name: license
 mountPath: /etc/loki/license
 volumes:
 - name: config
 configMap:
 name: enterprise-logs
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: enterprise-logs-runtime
 - name: license
 secret:
 secretName: enterprise-logs-license
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-enterprise-logs-ingester-zone-b
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-enterprise-logs-ingester-zone-b
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-enterprise-logs-ingester-zone-b-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 4a89247c5f729aa7f742986de6f9a88a88f538f66b6b811414428c60920e5934
 labels:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-enterprise-logs-ingester-zone-b
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: enterprise-logs
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/enterprise-logs:3.1.1
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-b
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 - name: license
 mountPath: /etc/loki/license
 volumes:
 - name: config
 configMap:
 name: enterprise-logs
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: enterprise-logs-runtime
 - name: license
 secret:
 secretName: enterprise-logs-license
 - name: data
 emptyDir: { }
---
# Source: loki/templates/ingester/statefulset-ingester.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: loki-test-chart-name-enterprise-logs-ingester-zone-c
 namespace: default
 labels:
 helm.sh/chart: loki-6.19.0
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/version: "3.2.0"
 app.kubernetes.io/managed-by: Helm
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-enterprise-logs-ingester-zone-c
spec:
 replicas: 0
 podManagementPolicy: Parallel
 updateStrategy:
 type: RollingUpdate
 serviceName: loki-test-chart-name-enterprise-logs-ingester-zone-c-headless
 revisionHistoryLimit: 10
 selector:
 matchLabels:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 template:
 metadata:
 annotations:
 checksum/config: 4a89247c5f729aa7f742986de6f9a88a88f538f66b6b811414428c60920e5934
 labels:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 app.kubernetes.io/part-of: memberlist
 name: loki-test-chart-name-enterprise-logs-ingester-zone-c
 spec:
 topologySpreadConstraints:
 - labelSelector:
 matchLabels:
 app.kubernetes.io/component: ingester
 maxSkew: 1
 topologyKey: kubernetes.io/hostname
 whenUnsatisfiable: ScheduleAnyway
 serviceAccountName: enterprise-logs
 
 securityContext:
 fsGroup: 10001
 runAsGroup: 10001
 runAsNonRoot: true
 runAsUser: 10001
 terminationGracePeriodSeconds: 300
 containers:
 - name: ingester
 image: docker.io/grafana/enterprise-logs:3.1.1
 imagePullPolicy: IfNotPresent
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -ingester.availability-zone=zone-c
 - -target=ingester
 
 
 ports:
 - name: http-metrics
 containerPort: 3100
 protocol: TCP
 - name: grpc
 containerPort: 9095
 protocol: TCP
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
 env:
 
 
 envFrom:
 
 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
 drop:
 - ALL
 readOnlyRootFilesystem: true
 
 readinessProbe:
 httpGet:
 path: /ready
 port: http-metrics
 initialDelaySeconds: 30
 timeoutSeconds: 1
 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
 - name: runtime-config
 mountPath: /etc/loki/runtime-config
 - name: data
 mountPath: /var/loki
 - name: license
 mountPath: /etc/loki/license
 volumes:
 - name: config
 configMap:
 name: enterprise-logs
 items:
 - key: "config.yaml"
 path: "config.yaml"
 - name: runtime-config
 configMap:
 name: enterprise-logs-runtime
 - name: license
 secret:
 secretName: enterprise-logs-license
 - name: data
 emptyDir: { }
loki/templates/ingester/service-ingester-headless.yaml
---
# Source: loki/templates/ingester/service-ingester-headless.yaml
apiVersion: v1
kind: Service
metadata:
 name: loki-test-chart-name-enterprise-logs-ingester-headless
 namespace: default
 labels:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester
 prometheus.io/service-monitor: "false"
 annotations:
spec:
 type: ClusterIP
 clusterIP: None
 ports:
 - name: http-metrics
 port: 3100
 targetPort: http-metrics
 protocol: TCP
 - name: grpc
 port: 9095
 targetPort: grpc
 protocol: TCP
 selector:
 app.kubernetes.io/name: enterprise-logs
 app.kubernetes.io/instance: loki-test-chart-name
 app.kubernetes.io/component: ingester

Modified Files

loki/templates/read/deployment-read.yaml
*** /home/runner/work/loki/loki/output/base/simple-scalable-aws-kube-irsa-values/loki/templates/read/deployment-read.yaml	2024-11-12 12:57:18.178710781 +0000
--- /home/runner/work/loki/loki/output/pr/simple-scalable-aws-kube-irsa-values/loki/templates/read/deployment-read.yaml	2024-11-12 12:57:20.534716510 +0000
***************
*** 53,58 ****
--- 53,60 ----
 - -target=read
 - -legacy-read-mode=false
 - -common.compactor-grpc-address=enterprise-logs-backend.default.svc.cluster.local:9095
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 63,68 ****
--- 65,76 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/tokengen/job-tokengen.yaml
*** /home/runner/work/loki/loki/output/base/simple-scalable-aws-kube-irsa-values/loki/templates/tokengen/job-tokengen.yaml	2024-11-12 12:57:18.178710781 +0000
--- /home/runner/work/loki/loki/output/pr/simple-scalable-aws-kube-irsa-values/loki/templates/tokengen/job-tokengen.yaml	2024-11-12 12:57:20.538716519 +0000
***************
*** 46,51 ****
--- 46,53 ----
 - -config.file=/etc/loki/config/config.yaml
 - -target=tokengen
 - -tokengen.token-file=/shared/admin-token
+ 
+ 
 volumeMounts:
 - name: shared
 mountPath: /shared
***************
*** 56,61 ****
--- 58,68 ----
 - name: license
 mountPath: /etc/loki/license
 env:
+ 
+ 
+ envFrom:
+ 
+ 
 containers:
 - name: create-secret
 image: docker.io/bitnami/kubectl:latest
loki/templates/write/statefulset-write.yaml
*** /home/runner/work/loki/loki/output/base/simple-scalable-aws-kube-irsa-values/loki/templates/write/statefulset-write.yaml	2024-11-12 12:57:18.178710781 +0000
--- /home/runner/work/loki/loki/output/pr/simple-scalable-aws-kube-irsa-values/loki/templates/write/statefulset-write.yaml	2024-11-12 12:57:20.534716510 +0000
***************
*** 53,58 ****
--- 53,60 ----
 args:
 - -config.file=/etc/loki/config/config.yaml
 - -target=write
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 63,68 ****
--- 65,76 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:
loki/templates/gateway/deployment-gateway-enterprise.yaml
*** /home/runner/work/loki/loki/output/base/simple-scalable-aws-kube-irsa-values/loki/templates/gateway/deployment-gateway-enterprise.yaml	2024-11-12 12:57:18.178710781 +0000
--- /home/runner/work/loki/loki/output/pr/simple-scalable-aws-kube-irsa-values/loki/templates/gateway/deployment-gateway-enterprise.yaml	2024-11-12 12:57:20.534716510 +0000
***************
*** 53,58 ****
--- 53,60 ----
 - -gateway.proxy.query-frontend.url=http://enterprise-logs-read.default.svc:3100
 - -gateway.proxy.ruler.url=http://enterprise-logs-backend-headless.default.svc:3100
 - -gateway.proxy.query-scheduler.url=http://enterprise-logs-backend-headless.default.svc:3100
+ 
+ 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
***************
*** 78,83 ****
--- 80,90 ----
 - ALL
 readOnlyRootFilesystem: true
 env:
+ 
+ 
+ envFrom:
+ 
+ 
 nodeSelector:
 {}
 affinity:
loki/templates/admin-api/deployment-admin-api.yaml
*** /home/runner/work/loki/loki/output/base/simple-scalable-aws-kube-irsa-values/loki/templates/admin-api/deployment-admin-api.yaml	2024-11-12 12:57:18.178710781 +0000
--- /home/runner/work/loki/loki/output/pr/simple-scalable-aws-kube-irsa-values/loki/templates/admin-api/deployment-admin-api.yaml	2024-11-12 12:57:20.534716510 +0000
***************
*** 50,55 ****
--- 50,57 ----
 args:
 - -target=admin-api
 - -config.file=/etc/loki/config/config.yaml
+ 
+ 
 volumeMounts:
 - name: config
 mountPath: /etc/loki/config
***************
*** 81,86 ****
--- 83,93 ----
 - ALL
 readOnlyRootFilesystem: true
 env:
+ 
+ 
+ envFrom: 
+ 
+ 
 nodeSelector:
 {}
 affinity:
loki/templates/backend/statefulset-backend.yaml
*** /home/runner/work/loki/loki/output/base/simple-scalable-aws-kube-irsa-values/loki/templates/backend/statefulset-backend.yaml	2024-11-12 12:57:18.178710781 +0000
--- /home/runner/work/loki/loki/output/pr/simple-scalable-aws-kube-irsa-values/loki/templates/backend/statefulset-backend.yaml	2024-11-12 12:57:20.534716510 +0000
***************
*** 78,83 ****
--- 78,85 ----
 - -config.file=/etc/loki/config/config.yaml
 - -target=backend
 - -legacy-read-mode=false
+ 
+ 
 ports:
 - name: http-metrics
 containerPort: 3100
***************
*** 88,93 ****
--- 90,101 ----
 - name: http-memberlist
 containerPort: 7946
 protocol: TCP
+ env:
+ 
+ 
+ envFrom:
+ 
+ 
 securityContext:
 allowPrivilegeEscalation: false
 capabilities:

Removed Files

No removed files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants