apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2026-04-04T02:24:57Z"
  generation: 2
  labels:
    service: watcher-applier
  name: watcher-applier
  namespace: openstack
  ownerReferences:
  - apiVersion: watcher.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: WatcherApplier
    name: watcher-applier
    uid: 31642510-0006-458d-81b5-9e603b10c99a
  resourceVersion: "51999"
  uid: bca9131b-14eb-4723-be17-88f31909668b
spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: OrderedReady
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      service: watcher-applier
  serviceName: ""
  template:
    metadata:
      creationTimestamp: null
      labels:
        service: watcher-applier
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: service
                  operator: In
                  values:
                  - watcher-applier
              topologyKey: kubernetes.io/hostname
            weight: 100
      containers:
      - args:
        - -c
        - /usr/local/bin/kolla_start
        command:
        - /bin/bash
        env:
        - name: CONFIG_HASH
          value: n577h664h58ch5bfh648h5dch88hb9h5bbh65ch5hdch669hdfh68h78h66ch5f5h7bh56dh585h5fh67bh644h5f6h68dh5c8h657h585h647hb4h9bq
        - name: KOLLA_CONFIG_STRATEGY
          value: COPY_ALWAYS
        image: 38.102.83.110:5001/podified-master-centos10/openstack-watcher-applier:watcher_latest
        imagePullPolicy: IfNotPresent
        livenessProbe:
          exec:
            command:
            - /usr/bin/pgrep
            - -r
            - DRST
            - watcher-applier
          failureThreshold: 3
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 10
        name: watcher-applier
        readinessProbe:
          exec:
            command:
            - /usr/bin/pgrep
            - -r
            - DRST
            - watcher-applier
          failureThreshold: 3
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        securityContext:
          runAsUser: 42451
        startupProbe:
          exec:
            command:
            - /usr/bin/pgrep
            - -r
            - DRST
            - watcher-applier
          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: watcher-applier-config.json
        - mountPath: /var/log/watcher
          name: logs
        - 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: watcher-watcher
      serviceAccountName: watcher-watcher
      terminationGracePeriodSeconds: 30
      volumes:
      - name: config-data
        secret:
          defaultMode: 420
          secretName: watcher-applier-config-data
      - emptyDir: {}
        name: logs
      - name: config-data-custom
        secret:
          defaultMode: 420
          secretName: watcher-applier-config-data
      - 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: watcher-applier-59d9bdc556
  observedGeneration: 2
  readyReplicas: 1
  replicas: 1
  updateRevision: watcher-applier-59d9bdc556
  updatedReplicas: 1
