apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: d6cdecc75cf391abfd7ff4495af35c0e56f978cc6e603fa7a94671396d454ba8
    configmap-etc-hash: 27aa037e8cf792dd8ddcb259ef8b070c70b002f71fc0a8c885fb83996fb110c9
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-06-09T10:13:42Z"
  generateName: placement-api-bbc89989f-
  labels:
    application: placement
    component: api
    pod-template-hash: bbc89989f
    release_group: placement
  name: placement-api-bbc89989f-l67jj
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: placement-api-bbc89989f
    uid: d300adf9-3010-493e-88e4-a1aebfafca54
  resourceVersion: "13606"
  uid: d9e1080d-404f-4834-9e00-ea9313166ba7
spec:
  affinity:
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: release_group
              operator: In
              values:
              - placement
            - key: application
              operator: In
              values:
              - placement
            - key: component
              operator: In
              values:
              - api
          topologyKey: kubernetes.io/hostname
        weight: 10
  containers:
  - command:
    - /tmp/placement-api.sh
    - start
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/placement:main@sha256:ae9d401c35c837d9c7dc3b0dbbe1b183545949eefb9c3b594ba08084c2cf85ca
    imagePullPolicy: IfNotPresent
    lifecycle:
      preStop:
        exec:
          command:
          - /tmp/placement-api.sh
          - stop
    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /
        port: 8778
        scheme: HTTP
      initialDelaySeconds: 5
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    name: placement-api
    ports:
    - containerPort: 8778
      name: p-api
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /
        port: 8778
        scheme: HTTP
      initialDelaySeconds: 5
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      readOnlyRootFilesystem: false
      runAsUser: 0
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /var/www/cgi-bin/placement
      name: wsgi-placement
    - mountPath: /tmp/placement-api.sh
      name: placement-bin
      readOnly: true
      subPath: placement-api.sh
    - mountPath: /etc/placement/placement.conf
      name: placement-etc
      readOnly: true
      subPath: placement.conf
    - mountPath: /etc/placement/placement-api-uwsgi.ini
      name: placement-etc
      readOnly: true
      subPath: placement-api-uwsgi.ini
    - mountPath: /etc/placement/policy.yaml
      name: placement-etc
      readOnly: true
      subPath: policy.yaml
    - mountPath: /etc/apache2/conf-enabled/wsgi-placement.conf
      name: placement-etc
      readOnly: true
      subPath: wsgi-placement.conf
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-wnr6f
      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
    - name: DEPENDENCY_JOBS
      value: placement-db-sync,placement-ks-service,placement-ks-user,placement-ks-endpoints
    - name: DEPENDENCY_DAEMONSET
    - name: DEPENDENCY_CONTAINER
    - name: DEPENDENCY_POD_JSON
    - name: DEPENDENCY_CUSTOM_RESOURCE
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge
    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-wnr6f
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    runAsUser: 42424
  serviceAccount: placement-api
  serviceAccountName: placement-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: wsgi-placement
  - configMap:
      defaultMode: 365
      name: placement-bin
    name: placement-bin
  - name: placement-etc
    secret:
      defaultMode: 292
      secretName: placement-etc
  - name: kube-api-access-wnr6f
    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-06-09T10:13:43Z"
    status: "True"
    type: PodReadyToStartContainers
  - lastProbeTime: null
    lastTransitionTime: "2026-06-09T10:15:11Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-06-09T10:15:23Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-06-09T10:15:23Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-06-09T10:13:42Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://0dcd6865fb01c02a837552b312b80c685118dadf3e2332ce930ec2db773b1d06
    image: sha256:169df38d96007a2c93371cb815444a7e6864c5e224143ed6f8cbc04fe1a7ae3f
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/placement@sha256:ae9d401c35c837d9c7dc3b0dbbe1b183545949eefb9c3b594ba08084c2cf85ca
    lastState: {}
    name: placement-api
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-06-09T10:15:11Z"
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /var/www/cgi-bin/placement
      name: wsgi-placement
    - mountPath: /tmp/placement-api.sh
      name: placement-bin
      readOnly: true
      recursiveReadOnly: Disabled
    - mountPath: /etc/placement/placement.conf
      name: placement-etc
      readOnly: true
      recursiveReadOnly: Disabled
    - mountPath: /etc/placement/placement-api-uwsgi.ini
      name: placement-etc
      readOnly: true
      recursiveReadOnly: Disabled
    - mountPath: /etc/placement/policy.yaml
      name: placement-etc
      readOnly: true
      recursiveReadOnly: Disabled
    - mountPath: /etc/apache2/conf-enabled/wsgi-placement.conf
      name: placement-etc
      readOnly: true
      recursiveReadOnly: Disabled
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-wnr6f
      readOnly: true
      recursiveReadOnly: Disabled
  hostIP: 199.204.45.235
  hostIPs:
  - ip: 199.204.45.235
  initContainerStatuses:
  - containerID: containerd://01331b287e1302037642350839055ff1c96dd34027b21f6e0ad2e458c6f993f3
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    lastState: {}
    name: init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://01331b287e1302037642350839055ff1c96dd34027b21f6e0ad2e458c6f993f3
        exitCode: 0
        finishedAt: "2026-06-09T10:15:11Z"
        reason: Completed
        startedAt: "2026-06-09T10:13:43Z"
    volumeMounts:
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-wnr6f
      readOnly: true
      recursiveReadOnly: Disabled
  phase: Running
  podIP: 10.0.0.67
  podIPs:
  - ip: 10.0.0.67
  qosClass: BestEffort
  startTime: "2026-06-09T10:13:42Z"
