apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: bb337655ca836a574ef5b77cc25769960919c5d88c47cd275859a1e99cb169fa
    configmap-etc-hash: 5aee0a50e197c2e8300631fb24a17465bdd14389abee5b28230964ae41e1e726
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-05-05T23:08:12Z"
  generateName: manila-api-6f57bdffc-
  labels:
    application: manila
    component: api
    pod-template-hash: 6f57bdffc
    release_group: manila
  name: manila-api-6f57bdffc-bwrph
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: manila-api-6f57bdffc
    uid: 18cc1b36-1a13-483d-ab42-d15050293fb3
  resourceVersion: "27411"
  uid: 351439d9-2f9d-47e3-a749-2953f2fa0b55
spec:
  affinity:
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: release_group
              operator: In
              values:
              - manila
            - key: application
              operator: In
              values:
              - manila
            - key: component
              operator: In
              values:
              - api
          topologyKey: kubernetes.io/hostname
        weight: 10
  containers:
  - command:
    - /tmp/manila-api.sh
    - start
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/manila:2024.2@sha256:69bbc81f7a36514cf050036b53577621a8e2a4f794bd4473f30f989e341a23e5
    imagePullPolicy: IfNotPresent
    lifecycle:
      preStop:
        exec:
          command:
          - /tmp/manila-api.sh
          - stop
    name: manila-api
    ports:
    - containerPort: 8786
      name: m-api
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /
        port: 8786
        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/manila
      name: state-tmp
    - mountPath: /etc/manila
      name: etcmanila
    - mountPath: /etc/manila/manila.conf
      name: manila-etc
      readOnly: true
      subPath: manila.conf
    - mountPath: /etc/manila/manila-api-uwsgi.ini
      name: manila-etc
      readOnly: true
      subPath: manila-api-uwsgi.ini
    - mountPath: /etc/manila/policy.yaml
      name: manila-etc
      readOnly: true
      subPath: policy.yaml
    - mountPath: /tmp/manila-api.sh
      name: manila-bin
      readOnly: true
      subPath: manila-api.sh
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-lcs7w
      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-manila
    - name: DEPENDENCY_JOBS
      value: manila-db-sync,manila-ks-user,manila-ks-endpoints,manila-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-lcs7w
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    runAsUser: 42424
  serviceAccount: manila-api
  serviceAccountName: manila-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: etcmanila
  - name: manila-etc
    secret:
      defaultMode: 292
      secretName: manila-etc
  - configMap:
      defaultMode: 365
      name: manila-bin
    name: manila-bin
  - name: kube-api-access-lcs7w
    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-05-05T23:10:19Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-05-05T23:10:23Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-05-05T23:10:23Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-05-05T23:08:12Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://02bc2d6e52e5fd364f96c2f5c4a647f4e10a2d31805a179b0ac90d0feb5a73fb
    image: sha256:69616f1065c8d101bca68ece8c7870bd79e1614489e1356ab2c7f825dad739e6
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/manila@sha256:69bbc81f7a36514cf050036b53577621a8e2a4f794bd4473f30f989e341a23e5
    lastState: {}
    name: manila-api
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-05-05T23:10:19Z"
  hostIP: 199.204.45.132
  initContainerStatuses:
  - containerID: containerd://f451e09668fb5b9ea9ecddecf49c2ba15620b4160f8a50fe7a473a17c944d5eb
    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://f451e09668fb5b9ea9ecddecf49c2ba15620b4160f8a50fe7a473a17c944d5eb
        exitCode: 0
        finishedAt: "2026-05-05T23:10:18Z"
        reason: Completed
        startedAt: "2026-05-05T23:08:14Z"
  phase: Running
  podIP: 10.0.0.123
  podIPs:
  - ip: 10.0.0.123
  qosClass: BestEffort
  startTime: "2026-05-05T23:08:12Z"
