apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "1"
    meta.helm.sh/release-name: glance
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-02T17:04:35Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: glance
    component: api
    release_group: glance
  name: glance-api
  namespace: openstack
  resourceVersion: "10025"
  uid: 6105eb3c-d8da-4051-a654-153d6c23f29a
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      application: glance
      component: api
      release_group: glance
  strategy:
    rollingUpdate:
      maxSurge: 3
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      annotations:
        configmap-bin-hash: bdbaa4b0c007be413bb7ab0607085ad5eb7d1edd6d3975b95454a707c3f09177
        configmap-etc-hash: 8ce6e6f210d4693fa5f2ef61c17066950586420f5a752f9833208fd03a83c79b
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: glance
        component: api
        release_group: glance
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: release_group
                  operator: In
                  values:
                  - glance
                - key: application
                  operator: In
                  values:
                  - glance
                - key: component
                  operator: In
                  values:
                  - api
              topologyKey: kubernetes.io/hostname
            weight: 10
      containers:
      - command:
        - /tmp/glance-api.sh
        - start
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/glance:2024.1@sha256:fa4798b8af38aff44afd046a85254f0c0b444cc75c5858697151f3f6f3720bbc
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /tmp/glance-api.sh
              - stop
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 9292
            scheme: HTTP
          initialDelaySeconds: 5
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        name: glance-api
        ports:
        - containerPort: 9292
          name: g-api
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /
            port: 9292
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          capabilities: {}
          privileged: false
          readOnlyRootFilesystem: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /var/lib/glance/tmp
          name: glance-tmp
        - mountPath: /etc/glance
          name: etcglance
        - mountPath: /tmp/glance-api.sh
          name: glance-bin
          readOnly: true
          subPath: glance-api.sh
        - mountPath: /etc/glance/glance-api.conf
          name: glance-etc
          readOnly: true
          subPath: glance-api.conf
        - mountPath: /etc/glance/glance-api-uwsgi.ini
          name: glance-etc
          readOnly: true
          subPath: glance-api-uwsgi.ini
        - mountPath: /etc/glance/glance-api-paste.ini
          name: glance-etc
          readOnly: true
          subPath: glance-api-paste.ini
        - mountPath: /etc/glance/policy.yaml
          name: glance-etc
          readOnly: true
          subPath: policy.yaml
        - mountPath: /etc/glance/api_audit_map.conf
          name: glance-etc
          readOnly: true
          subPath: api_audit_map.conf
        - mountPath: /etc/sudoers.d/kolla_glance_sudoers
          name: glance-etc
          readOnly: true
          subPath: glance_sudoers
        - mountPath: /etc/glance/rootwrap.conf
          name: glance-etc
          readOnly: true
          subPath: rootwrap.conf
        - mountPath: /etc/glance/rootwrap.d/glance-cinder-store.filters
          name: glance-etc
          readOnly: true
          subPath: glance-cinder-store.filters
        - mountPath: /etc/glance/swift-store.conf
          name: glance-etc
          readOnly: true
          subPath: swift-store.conf
        - mountPath: /var/lib/glance/images
          name: glance-images
        - mountPath: /etc/ceph
          name: etcceph
        - mountPath: /etc/ceph/ceph.conf
          name: ceph-etc
          readOnly: true
          subPath: ceph.conf
        - mountPath: /tmp/client-keyring
          name: ceph-keyring
          readOnly: true
          subPath: key
      dnsPolicy: ClusterFirst
      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-glance
        - name: DEPENDENCY_JOBS
          value: glance-storage-init,glance-db-sync,glance-rabbit-init,glance-ks-user,glance-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@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
        imagePullPolicy: IfNotPresent
        name: init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsUser: 65534
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      - command:
        - chown
        - -R
        - 'glance:'
        - /var/lib/glance/images
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/glance:2024.1@sha256:fa4798b8af38aff44afd046a85254f0c0b444cc75c5858697151f3f6f3720bbc
        imagePullPolicy: IfNotPresent
        name: glance-perms
        resources: {}
        securityContext:
          readOnlyRootFilesystem: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /var/lib/glance/images
          name: glance-images
      - command:
        - /tmp/ceph-keyring.sh
        env:
        - name: RBD_STORE_USER
          value: glance
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/glance:2024.1@sha256:fa4798b8af38aff44afd046a85254f0c0b444cc75c5858697151f3f6f3720bbc
        imagePullPolicy: IfNotPresent
        name: ceph-keyring-placement
        resources: {}
        securityContext:
          readOnlyRootFilesystem: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /etc/ceph
          name: etcceph
        - mountPath: /tmp/ceph-keyring.sh
          name: glance-bin
          readOnly: true
          subPath: ceph-keyring.sh
        - mountPath: /tmp/client-keyring
          name: ceph-keyring
          readOnly: true
          subPath: key
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsUser: 42424
      serviceAccount: glance-api
      serviceAccountName: glance-api
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - emptyDir: {}
        name: glance-tmp
      - emptyDir: {}
        name: etcglance
      - configMap:
          defaultMode: 365
          name: glance-bin
        name: glance-bin
      - name: glance-etc
        secret:
          defaultMode: 292
          secretName: glance-etc
      - emptyDir: {}
        name: glance-images
      - emptyDir: {}
        name: etcceph
      - configMap:
          defaultMode: 292
          name: ceph-etc
        name: ceph-etc
      - name: ceph-keyring
        secret:
          defaultMode: 420
          secretName: images-rbd-keyring
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2026-04-02T17:04:35Z"
    lastUpdateTime: "2026-04-02T17:04:35Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-04-02T17:04:35Z"
    lastUpdateTime: "2026-04-02T17:07:00Z"
    message: ReplicaSet "glance-api-74789c85f7" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1
