apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2026-04-06T12:18:19Z"
  generation: 3
  labels:
    component: glance-api
    glanceAPI: glance-default-internal
    owner: glance-default-internal
    service: glance
  name: glance-default-internal-api
  namespace: openstack
  ownerReferences:
  - apiVersion: glance.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: GlanceAPI
    name: glance-default-internal
    uid: 0c8cc311-25a7-4ac7-a6b9-da4887661174
  resourceVersion: "49758"
  uid: 4fde2ed0-d95a-449e-b0d3-45a50a3458b2
spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: Parallel
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      component: glance-api
      glanceAPI: glance-default-internal
      owner: glance-default-internal
      service: glance
  serviceName: glance-default-internal-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-internal
        owner: glance-default-internal
        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-internal.log 2>/dev/null
        command:
        - /usr/bin/dumb-init
        env:
        - name: CONFIG_HASH
          value: n56dh78h5b6h556h58chb6hb6h59ch658h5cbhch668h74h644h687h5bh65h695h5dch54h5d7h68ch5b9h548h557hfhb4hcdh5b8h585h588h575q
        - name: GLANCE_DOMAIN
          value: glance-default-internal-api.openstack.svc
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        - name: URISCHEME
          value: HTTPS
        image: 38.102.83.94:5001/podified-master-centos10/openstack-glance-api:watcher_latest
        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: n56dh78h5b6h556h58chb6hb6h59ch658h5cbhch668h74h644h687h5bh65h695h5dch54h5d7h68ch5b9h548h557hfhb4hcdh5b8h585h588h575q
        - name: GLANCE_DOMAIN
          value: glance-default-internal-api.openstack.svc
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        - name: URISCHEME
          value: HTTPS
        image: 38.102.83.94:5001/podified-master-centos10/openstack-glance-api:watcher_latest
        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/internal.crt
          name: internal-tls-certs
          readOnly: true
          subPath: tls.crt
        - mountPath: /etc/pki/tls/private/internal.key
          name: internal-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-internal-config-data
      - name: config-data-custom
        secret:
          defaultMode: 420
          secretName: glance-default-internal-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: internal-tls-certs
        secret:
          defaultMode: 256
          secretName: cert-glance-default-internal-svc
  updateStrategy:
    rollingUpdate:
      partition: 0
    type: RollingUpdate
  volumeClaimTemplates:
  - apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      creationTimestamp: null
      labels:
        component: glance-api
        glanceAPI: glance-default-internal
        owner: glance-default-internal
        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-internal-api-7b599484d7
  observedGeneration: 3
  readyReplicas: 1
  replicas: 1
  updateRevision: glance-default-internal-api-7b599484d7
  updatedReplicas: 1
