apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: aebe6c8a587455d3a62bbe4a858320734710a77bb1fdf94c0c269467c7f3f83c
    configmap-etc-hash: e2ac19319a21731f6e20e9aebb85bf03bcf626e51ab557b2cf99524b0fb3e03a
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-02-25T22:39:12Z"
  generateName: senlin-api-66cbfc9b98-
  labels:
    application: senlin
    component: api
    pod-template-hash: 66cbfc9b98
    release_group: senlin
  name: senlin-api-66cbfc9b98-x7gr7
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: senlin-api-66cbfc9b98
    uid: 4cbdd783-0665-4e90-95d6-aabf7cfaeafd
  resourceVersion: "16232"
  uid: 5a131d5e-613e-4775-af4a-e6208bc0ff30
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/registry.atmosphere.dev/library/senlin:2023.1
    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-6b48r
      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-6b48r
      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-6b48r
    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-02-25T22:39:12Z"
    message: 'containers with incomplete status: [init]'
    reason: ContainersNotInitialized
    status: "False"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-02-25T22:39:12Z"
    message: 'containers with unready status: [senlin-api]'
    reason: ContainersNotReady
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-02-25T22:39:12Z"
    message: 'containers with unready status: [senlin-api]'
    reason: ContainersNotReady
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-02-25T22:39:12Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - image: harbor.atmosphere.dev/registry.atmosphere.dev/library/senlin:2023.1
    imageID: ""
    lastState: {}
    name: senlin-api
    ready: false
    restartCount: 0
    started: false
    state:
      waiting:
        reason: PodInitializing
  hostIP: 162.253.55.12
  initContainerStatuses:
  - containerID: containerd://c3b77b65ac7a9c858f80867cdd488219ba88076d65615df87b6d2a3e05d817b1
    image: sha256:d656bd5737950b86b0ecff4b0206024769c78ea55e2f9f4c840c3cc2a10caaf8
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    lastState: {}
    name: init
    ready: false
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-02-25T22:39:13Z"
  phase: Pending
  podIP: 10.0.0.47
  podIPs:
  - ip: 10.0.0.47
  qosClass: BestEffort
  startTime: "2026-02-25T22:39:12Z"
