apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2026-04-02T13:59:47Z"
  generation: 5
  labels:
    component: glance-api
    glanceAPI: glance-default-external
    owner: glance-default-external
    service: glance
  name: glance-default-external-api
  namespace: openstack
  ownerReferences:
  - apiVersion: glance.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: GlanceAPI
    name: glance-default-external
    uid: 60e893af-e072-4381-97ff-559f2c0bdfc0
  resourceVersion: "46916"
  uid: 5f415510-a1b8-4d4a-9403-ae1b8de131d0
spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: Parallel
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      component: glance-api
      glanceAPI: glance-default-external
      owner: glance-default-external
      service: glance
  serviceName: glance-default-external-api
  template:
    metadata:
      annotations:
        k8s.v1.cni.cncf.io/networks: '[{"name":"storage","namespace":"openstack","interface":"storage"}]'
      creationTimestamp: null
      labels:
        component: glance-api
        glanceAPI: glance-default-external
        owner: glance-default-external
        service: glance
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: service
                  operator: In
                  values:
                  - glance
              topologyKey: kubernetes.io/hostname
            weight: 100
      containers:
      - args:
        - --single-child
        - --
        - /bin/sh
        - -c
        - /usr/bin/tail -n+1 -F /var/log/glance/glance-default-external.log 2>/dev/null
        command:
        - /usr/bin/dumb-init
        env:
        - name: CONFIG_HASH
          value: n5cdh5fbhch66dh55dh687hb8h545h579h569hc4h5f8h5bfh668h66ch7ch87h66ch649h6h64ch545h87h76h59h64dh94hf9h657h65fhbbh666q
        - name: GLANCE_DOMAIN
          value: glance-default-external-api.openstack.svc
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        - name: URISCHEME
          value: HTTPS
        image: quay.io/podified-antelope-centos9/openstack-glance-api:current-podified
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthcheck
            port: 9292
            scheme: HTTPS
          initialDelaySeconds: 5
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 30
        name: glance-log
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthcheck
            port: 9292
            scheme: HTTPS
          initialDelaySeconds: 5
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 30
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          capabilities:
            drop:
            - ALL
          runAsGroup: 42415
          runAsNonRoot: true
          runAsUser: 42415
          seccompProfile:
            type: RuntimeDefault
        startupProbe:
          exec:
            command:
            - /bin/true
          failureThreshold: 6
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /var/log/glance
          name: logs
      - args:
        - --single-child
        - --
        - /bin/bash
        - -c
        - /usr/local/bin/kolla_start
        command:
        - /usr/bin/dumb-init
        env:
        - name: CONFIG_HASH
          value: n5cdh5fbhch66dh55dh687hb8h545h579h569hc4h5f8h5bfh668h66ch7ch87h66ch649h6h64ch545h87h76h59h64dh94hf9h657h65fhbbh666q
        - name: GLANCE_DOMAIN
          value: glance-default-external-api.openstack.svc
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        - name: URISCHEME
          value: HTTPS
        image: quay.io/podified-antelope-centos9/openstack-glance-api:current-podified
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthcheck
            port: 9292
            scheme: HTTPS
          initialDelaySeconds: 5
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 30
        name: glance-httpd
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthcheck
            port: 9292
            scheme: HTTPS
          initialDelaySeconds: 5
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 30
        resources: {}
        securityContext:
          allowPrivilegeEscalation: true
          capabilities:
            drop:
            - MKNOD
          privileged: false
          runAsGroup: 42415
          runAsUser: 42415
          seccompProfile:
            type: RuntimeDefault
        startupProbe:
          exec:
            command:
            - /bin/true
          failureThreshold: 6
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /var/lib/config-data/default
          name: config-data
          readOnly: true
        - mountPath: /etc/my.cnf
          name: config-data
          readOnly: true
          subPath: my.cnf
        - mountPath: /var/lib/kolla/config_files/config.json
          name: config-data
          readOnly: true
          subPath: glance-httpd-config.json
        - mountPath: /var/lib/glance
          name: glance
        - mountPath: /var/log/glance
          name: logs
        - mountPath: /usr/local/bin/container-scripts
          name: scripts
          readOnly: true
        - mountPath: /run/httpd
          name: httpd-run
        - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
          name: combined-ca-bundle
          readOnly: true
          subPath: tls-ca-bundle.pem
        - mountPath: /etc/pki/tls/certs/public.crt
          name: public-tls-certs
          readOnly: true
          subPath: tls.crt
        - mountPath: /etc/pki/tls/private/public.key
          name: public-tls-certs
          readOnly: true
          subPath: tls.key
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        fsGroup: 42415
      serviceAccount: glance-glance
      serviceAccountName: glance-glance
      terminationGracePeriodSeconds: 30
      volumes:
      - name: config-data
        secret:
          defaultMode: 420
          secretName: glance-default-external-config-data
      - name: config-data-custom
        secret:
          defaultMode: 420
          secretName: glance-default-external-config-data
      - emptyDir: {}
        name: logs
      - name: scripts
        secret:
          defaultMode: 493
          secretName: glance-scripts
      - emptyDir: {}
        name: httpd-run
      - name: combined-ca-bundle
        secret:
          defaultMode: 292
          secretName: combined-ca-bundle
      - name: public-tls-certs
        secret:
          defaultMode: 256
          secretName: cert-glance-default-public-svc
  updateStrategy:
    rollingUpdate:
      partition: 0
    type: RollingUpdate
  volumeClaimTemplates:
  - apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      creationTimestamp: null
      labels:
        component: glance-api
        glanceAPI: glance-default-external
        owner: glance-default-external
        service: glance
      name: glance
      namespace: openstack
    spec:
      accessModes:
      - ReadWriteOnce
      resources:
        requests:
          storage: 10Gi
      storageClassName: local-storage
      volumeMode: Filesystem
    status:
      phase: Pending
status:
  availableReplicas: 1
  collisionCount: 0
  currentReplicas: 1
  currentRevision: glance-default-external-api-fd6f6bc9
  observedGeneration: 5
  readyReplicas: 1
  replicas: 1
  updateRevision: glance-default-external-api-fd6f6bc9
  updatedReplicas: 1
