apiVersion: v1
kind: Pod
metadata:
  annotations:
    checksum/config: c2fb208ca5690c195da871d9703d59e4ef9bb8c24438bba6e148e7e334781c7f
  creationTimestamp: "2026-04-11T17:55:41Z"
  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-b56489b49
    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: e7cff1c0-a295-48ce-999d-50ec4d183cde
  resourceVersion: "5874"
  uid: c1e43a78-5d06-4fca-80fb-9099c5992071
spec:
  affinity:
    podAntiAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
      - labelSelector:
          matchLabels:
            app.kubernetes.io/component: single-binary
        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:3.0.0
    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-rkd44
      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-rkd44
    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-11T17:55:48Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-04-11T17:56:58Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-04-11T17:56:58Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-04-11T17:55:48Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://1a9d507bda22121b0bde69d6fc17bb66fa6f0c9df6af0f0db7b24b65809ed19e
    image: harbor.atmosphere.dev/docker.io/grafana/loki:3.0.0
    imageID: harbor.atmosphere.dev/docker.io/grafana/loki@sha256:757b5fadf816a1396f1fea598152947421fa49cb8b2db1ddd2a6e30fae003253
    lastState: {}
    name: loki
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-04-11T17:56:04Z"
  hostIP: 199.19.213.228
  phase: Running
  podIP: 10.0.0.178
  podIPs:
  - ip: 10.0.0.178
  qosClass: BestEffort
  startTime: "2026-04-11T17:55:48Z"
