apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: aebe6c8a587455d3a62bbe4a858320734710a77bb1fdf94c0c269467c7f3f83c
    configmap-etc-hash: 519958a2a08be21d69a842d0c0cc9a204e966408bf788cc0d5824b39e10b3634
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-03-02T21:57:59Z"
  generateName: senlin-api-6d8c49bbdd-
  labels:
    application: senlin
    component: api
    pod-template-hash: 6d8c49bbdd
    release_group: senlin
  name: senlin-api-6d8c49bbdd-9wcdv
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: senlin-api-6d8c49bbdd
    uid: 063ab5e6-0272-49f0-b52b-b22bbd484b88
  resourceVersion: "17344"
  uid: 4d63c798-0c75-4141-a34a-1388d11626f2
spec:
  affinity:
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: release_group
              operator: In
              values:
              - senlin
            - key: application
              operator: In
              values:
              - senlin
            - key: component
              operator: In
              values:
              - api
          topologyKey: kubernetes.io/hostname
        weight: 10
  containers:
  - command:
    - /tmp/senlin-api.sh
    - start
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/senlin:2023.1@sha256:8792f91e5b3aa26a54b0455130ef9626ce9122000781928f98ffe068680da4bb
    imagePullPolicy: IfNotPresent
    lifecycle:
      preStop:
        exec:
          command:
          - /tmp/senlin-api.sh
          - stop
    name: senlin-api
    ports:
    - containerPort: 8778
      name: s-api
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /
        port: 8778
        scheme: HTTP
      initialDelaySeconds: 5
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      runAsUser: 42424
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /tmp/senlin-api.sh
      name: senlin-bin
      readOnly: true
      subPath: senlin-api.sh
    - mountPath: /etc/senlin
      name: pod-etc-senlin
    - mountPath: /var/cache/senlin
      name: pod-var-cache-senlin
    - mountPath: /etc/senlin/senlin-api-uwsgi.ini
      name: senlin-etc
      readOnly: true
      subPath: senlin-api-uwsgi.ini
    - mountPath: /etc/senlin/senlin.conf
      name: senlin-etc
      readOnly: true
      subPath: senlin.conf
    - mountPath: /etc/senlin/api-paste.ini
      name: senlin-etc
      readOnly: true
      subPath: api-paste.ini
    - mountPath: /etc/senlin/policy.yaml
      name: senlin-etc
      readOnly: true
      subPath: policy.yaml
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-kw8k5
      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,openstack:rabbitmq-senlin
    - name: DEPENDENCY_JOBS
      value: senlin-db-sync,senlin-ks-user,senlin-ks-endpoints,senlin-rabbit-init
    - 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-kw8k5
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: senlin-api
  serviceAccountName: senlin-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: pod-etc-senlin
  - emptyDir: {}
    name: pod-var-cache-senlin
  - configMap:
      defaultMode: 365
      name: senlin-bin
    name: senlin-bin
  - name: senlin-etc
    secret:
      defaultMode: 292
      secretName: senlin-etc
  - name: kube-api-access-kw8k5
    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-03-02T21:59:47Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-03-02T22:00:00Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-03-02T22:00:00Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-03-02T21:57:59Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://4153dcbda51ca377fdb59afb2b7c4e05806813d5a37ae882e91d5af05b0f7541
    image: sha256:dfdd963b69c6ce06a29fed38893a0d47781cc53dd3249afa6b8a010c462993bc
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/senlin@sha256:8792f91e5b3aa26a54b0455130ef9626ce9122000781928f98ffe068680da4bb
    lastState: {}
    name: senlin-api
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-03-02T21:59:47Z"
  hostIP: 199.19.213.87
  initContainerStatuses:
  - containerID: containerd://77f701c9df1a9c391b2336c613f11a92570715809219cc51076674e63d0aa1ed
    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://77f701c9df1a9c391b2336c613f11a92570715809219cc51076674e63d0aa1ed
        exitCode: 0
        finishedAt: "2026-03-02T21:59:46Z"
        reason: Completed
        startedAt: "2026-03-02T21:58:00Z"
  phase: Running
  podIP: 10.0.0.38
  podIPs:
  - ip: 10.0.0.38
  qosClass: BestEffort
  startTime: "2026-03-02T21:57:59Z"
