apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: b3f4f73275255f12624ed24bea6af0cba303b560549383a082efe21750e864ce
    configmap-etc-hash: ab20f2a9a197cadfaa8f3a2f246991a3a64301c1e257879d3c111d17c678c241
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-22T18:51:53Z"
  generateName: staffeln-api-7f96cc66d5-
  labels:
    application: staffeln
    component: api
    pod-template-hash: 7f96cc66d5
    release_group: staffeln
  name: staffeln-api-7f96cc66d5-w6vmx
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: staffeln-api-7f96cc66d5
    uid: a0b67a6a-3a08-4fb6-bdc0-55f084ab7225
  resourceVersion: "11777"
  uid: 26ceb9b3-a49f-496a-844c-3177228e27d3
spec:
  affinity:
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: release_group
              operator: In
              values:
              - staffeln
            - key: application
              operator: In
              values:
              - staffeln
            - key: component
              operator: In
              values:
              - api
          topologyKey: kubernetes.io/hostname
        weight: 10
  containers:
  - command:
    - /tmp/staffeln-api.sh
    - start
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/staffeln:latest@sha256:28af1c422491b550e7545563e36a4100b5271d0f17f3bb8e2d23881c93de545e
    imagePullPolicy: IfNotPresent
    lifecycle:
      preStop:
        exec:
          command:
          - /tmp/staffeln-api.sh
          - stop
    name: staffeln-api
    ports:
    - containerPort: 8808
      name: s-api
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /v1/health
        port: 8808
        scheme: HTTP
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      allowPrivilegeEscalation: false
      readOnlyRootFilesystem: true
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /var/lib/staffeln
      name: state-tmp
    - mountPath: /etc/staffeln
      name: etcstaffeln
    - mountPath: /etc/staffeln/staffeln.conf
      name: staffeln-etc
      readOnly: true
      subPath: staffeln.conf
    - mountPath: /tmp/staffeln-api.sh
      name: staffeln-bin
      readOnly: true
      subPath: staffeln-api.sh
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-zsxtf
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  initContainers:
  - command:
    - kubernetes-entrypoint
    env:
    - name: POD_NAME
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.name
    - name: NAMESPACE
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.namespace
    - name: INTERFACE_NAME
      value: eth0
    - name: PATH
      value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
    - name: DEPENDENCY_SERVICE
      value: openstack:percona-xtradb-haproxy,openstack:keystone-api
    - name: DEPENDENCY_JOBS
      value: staffeln-db-sync
    - name: DEPENDENCY_DAEMONSET
    - name: DEPENDENCY_CONTAINER
    - name: DEPENDENCY_POD_JSON
    - name: DEPENDENCY_CUSTOM_RESOURCE
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    imagePullPolicy: IfNotPresent
    name: init
    resources: {}
    securityContext:
      allowPrivilegeEscalation: false
      readOnlyRootFilesystem: true
      runAsUser: 65534
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-zsxtf
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    runAsUser: 42424
  serviceAccount: staffeln-api
  serviceAccountName: staffeln-api
  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:
  - emptyDir: {}
    name: pod-tmp
  - emptyDir: {}
    name: state-tmp
  - emptyDir: {}
    name: etcstaffeln
  - name: staffeln-etc
    secret:
      defaultMode: 292
      secretName: staffeln-etc
  - configMap:
      defaultMode: 365
      name: staffeln-bin
    name: staffeln-bin
  - name: kube-api-access-zsxtf
    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-22T18:52:19Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-04-22T18:52:23Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-04-22T18:52:23Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-04-22T18:51:53Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://e478b6affdc9b9ac6ca4565a092f4c5fcd58743972cbf5f4eec5669a0ff3f3ef
    image: sha256:b18319289ee4ff46a14ecced3e0cc20642334c8fbb8f08abcb74d2882a7e4b28
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/staffeln@sha256:28af1c422491b550e7545563e36a4100b5271d0f17f3bb8e2d23881c93de545e
    lastState: {}
    name: staffeln-api
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-04-22T18:52:20Z"
  hostIP: 199.204.45.19
  initContainerStatuses:
  - containerID: containerd://23a9d5258a9744a9dd160afae05ba9507c8514c75241d8fe77885dff1197f1bb
    image: sha256:d656bd5737950b86b0ecff4b0206024769c78ea55e2f9f4c840c3cc2a10caaf8
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    lastState: {}
    name: init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://23a9d5258a9744a9dd160afae05ba9507c8514c75241d8fe77885dff1197f1bb
        exitCode: 0
        finishedAt: "2026-04-22T18:52:19Z"
        reason: Completed
        startedAt: "2026-04-22T18:51:54Z"
  phase: Running
  podIP: 10.0.0.63
  podIPs:
  - ip: 10.0.0.63
  qosClass: BestEffort
  startTime: "2026-04-22T18:51:53Z"
