apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2026-04-02T13:58:18Z"
  generation: 1
  name: memcached
  namespace: openstack
  ownerReferences:
  - apiVersion: memcached.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: Memcached
    name: memcached
    uid: 73897359-2ef5-43f4-b8e5-3808a10eefbd
  resourceVersion: "41075"
  uid: 76b0adde-5e20-480e-94ee-0a3bb7a4a8c0
spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: OrderedReady
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app: memcached
      cr: memcached
      owner: infra-operator
      service: memcached
  serviceName: memcached
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: memcached
        cr: memcached
        memcached/name: memcached
        memcached/namespace: openstack
        memcached/uid: 73897359-2ef5-43f4-b8e5-3808a10eefbd
        owner: infra-operator
        service: memcached
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: service
                  operator: In
                  values:
                  - memcached
              topologyKey: kubernetes.io/hostname
            weight: 100
      containers:
      - command:
        - /usr/bin/dumb-init
        - --
        - /usr/local/bin/kolla_start
        env:
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        - name: POD_IPS
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: status.podIPs
        - name: CONFIG_HASH
          value: n54fh648h696hf4hdbh5bdh5bdhcfh654h649h68h688h67ch5d5h546h8dh64fh695h9ch9h559h64bh555h56ch58bh64fh5dfh67fhbbhb5h5ddh9dq
        image: quay.io/podified-antelope-centos9/openstack-memcached:current-podified
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          initialDelaySeconds: 3
          periodSeconds: 3
          successThreshold: 1
          tcpSocket:
            port: 11211
          timeoutSeconds: 5
        name: memcached
        ports:
        - containerPort: 11211
          name: memcached
          protocol: TCP
        - containerPort: 11212
          name: memcached-tls
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          initialDelaySeconds: 5
          periodSeconds: 5
          successThreshold: 1
          tcpSocket:
            port: 11211
          timeoutSeconds: 5
        resources: {}
        securityContext:
          runAsGroup: 42457
          runAsUser: 42457
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /var/lib/kolla/config_files/src
          name: config-data
          readOnly: true
        - mountPath: /var/lib/kolla/config_files
          name: kolla-config
          readOnly: true
        - mountPath: /var/lib/config-data/tls/certs/memcached.crt
          name: memcached-tls-certs
          readOnly: true
          subPath: tls.crt
        - mountPath: /var/lib/config-data/tls/private/memcached.key
          name: memcached-tls-certs
          readOnly: true
          subPath: tls.key
        - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
          name: combined-ca-bundle
          readOnly: true
          subPath: tls-ca-bundle.pem
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: memcached-memcached
      serviceAccountName: memcached-memcached
      terminationGracePeriodSeconds: 30
      volumes:
      - configMap:
          defaultMode: 420
          items:
          - key: config.json
            path: config.json
          name: memcached-config-data
        name: kolla-config
      - configMap:
          defaultMode: 420
          items:
          - key: memcached
            path: etc/sysconfig/memcached
          name: memcached-config-data
        name: config-data
      - name: memcached-tls-certs
        secret:
          defaultMode: 256
          secretName: cert-memcached-svc
      - name: combined-ca-bundle
        secret:
          defaultMode: 292
          secretName: combined-ca-bundle
  updateStrategy:
    rollingUpdate:
      partition: 0
    type: RollingUpdate
status:
  availableReplicas: 1
  collisionCount: 0
  currentReplicas: 1
  currentRevision: memcached-5dd4f8bf69
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updateRevision: memcached-5dd4f8bf69
  updatedReplicas: 1
