apiVersion: v1
kind: Pod
metadata:
  annotations:
    checksum/config: c812b35ec778b0683d6a50bacbb79562fe90ca2c72af3349abeb09a63eb75760
  creationTimestamp: "2026-04-20T12:02:37Z"
  generateName: loki-
  labels:
    app.kubernetes.io/component: single-binary
    app.kubernetes.io/instance: loki
    app.kubernetes.io/name: loki
    app.kubernetes.io/part-of: memberlist
    apps.kubernetes.io/pod-index: "0"
    controller-revision-hash: loki-7d475bdd4d
    statefulset.kubernetes.io/pod-name: loki-0
  name: loki-0
  namespace: monitoring
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: StatefulSet
    name: loki
    uid: f2f5b487-9c4b-4d1a-9db2-a8938ba02dac
  resourceVersion: "5639"
  uid: 2eab3bb8-6e7a-4822-ae89-b2b16d6b7004
spec:
  affinity:
    podAntiAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
      - labelSelector:
          matchLabels:
            app.kubernetes.io/component: single-binary
            app.kubernetes.io/instance: loki
            app.kubernetes.io/name: loki
        topologyKey: kubernetes.io/hostname
  automountServiceAccountToken: true
  containers:
  - args:
    - -config.file=/etc/loki/config/config.yaml
    - -target=all
    image: harbor.atmosphere.dev/docker.io/grafana/loki:2.9.6
    imagePullPolicy: IfNotPresent
    name: loki
    ports:
    - containerPort: 3100
      name: http-metrics
      protocol: TCP
    - containerPort: 9095
      name: grpc
      protocol: TCP
    - containerPort: 7946
      name: http-memberlist
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /ready
        port: http-metrics
        scheme: HTTP
      initialDelaySeconds: 30
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      allowPrivilegeEscalation: false
      capabilities:
        drop:
        - ALL
      readOnlyRootFilesystem: true
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: tmp
    - mountPath: /etc/loki/config
      name: config
    - mountPath: /etc/loki/runtime-config
      name: runtime-config
    - mountPath: /var/loki
      name: storage
    - mountPath: /var/loki/rulestorage/fake
      name: rules
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-xmqxn
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  hostname: loki-0
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    fsGroup: 10001
    runAsGroup: 10001
    runAsNonRoot: true
    runAsUser: 10001
  serviceAccount: loki
  serviceAccountName: loki
  subdomain: loki-headless
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  volumes:
  - name: storage
    persistentVolumeClaim:
      claimName: storage-loki-0
  - emptyDir: {}
    name: tmp
  - configMap:
      defaultMode: 420
      items:
      - key: config.yaml
        path: config.yaml
      name: loki
    name: config
  - configMap:
      defaultMode: 420
      name: loki-runtime
    name: runtime-config
  - configMap:
      defaultMode: 420
      name: loki-alerting-rules
    name: rules
  - name: kube-api-access-xmqxn
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2026-04-20T12:02:43Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-04-20T12:03:53Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-04-20T12:03:53Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-04-20T12:02:43Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://747241176ab7639d1e1a282566d9927df5f64d212b0b0b2d2724c4509674f4d0
    image: harbor.atmosphere.dev/docker.io/grafana/loki:2.9.6
    imageID: harbor.atmosphere.dev/docker.io/grafana/loki@sha256:6ca6e2cd3b6f45e0eb298da2920610fde63ecd8ab6c595d9c941c8559d1d9407
    lastState: {}
    name: loki
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-04-20T12:02:58Z"
  hostIP: 199.19.213.132
  phase: Running
  podIP: 10.0.0.186
  podIPs:
  - ip: 10.0.0.186
  qosClass: BestEffort
  startTime: "2026-04-20T12:02:43Z"
