--- # Source: loki-stack/charts/loki/templates/statefulset.yaml apiVersion: apps/v1 kind: StatefulSet metadata: name: loki namespace: monitoring labels: app: loki chart: loki-2.16.0 release: loki heritage: Helm annotations: {} spec: podManagementPolicy: OrderedReady replicas: 1 selector: matchLabels: app: loki release: loki serviceName: loki-headless updateStrategy: type: RollingUpdate template: metadata: labels: app: loki name: loki release: loki annotations: checksum/config: 70f817aa5a2dd5f771aca66233ce0b140c925212f36795fdeb95102ca96db046 prometheus.io/port: http-metrics prometheus.io/scrape: "true" spec: serviceAccountName: loki securityContext: fsGroup: 10001 runAsGroup: 10001 runAsNonRoot: true runAsUser: 10001 initContainers: [] containers: - name: loki image: "grafana/loki:2.6.1" imagePullPolicy: IfNotPresent args: - "-config.file=/etc/loki/loki.yaml" volumeMounts: - name: tmp mountPath: /tmp - name: config mountPath: /etc/loki - name: storage mountPath: "/data" subPath: ports: - name: http-metrics containerPort: 3100 protocol: TCP - name: grpc containerPort: 9095 protocol: TCP - name: memberlist-port containerPort: 7946 protocol: TCP livenessProbe: httpGet: path: /ready port: http-metrics initialDelaySeconds: 45 readinessProbe: httpGet: path: /ready port: http-metrics initialDelaySeconds: 45 resources: {} securityContext: readOnlyRootFilesystem: true env: nodeSelector: {} affinity: {} tolerations: [] terminationGracePeriodSeconds: 4800 volumes: - name: tmp emptyDir: {} - name: config secret: secretName: loki - name: storage emptyDir: {}