apiVersion: v1
kind: Pod
metadata:
  annotations:
    kubectl.kubernetes.io/default-container: haproxy
    percona.com/configuration-hash: 96d48f90052f459e51a7d9c5ea2d2024
  creationTimestamp: "2026-11-22T05:24:32Z"
  generateName: percona-xtradb-haproxy-
  labels:
    app.kubernetes.io/component: haproxy
    app.kubernetes.io/instance: percona-xtradb
    app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
    app.kubernetes.io/name: percona-xtradb-cluster
    app.kubernetes.io/part-of: percona-xtradb-cluster
    apps.kubernetes.io/pod-index: "0"
    controller-revision-hash: percona-xtradb-haproxy-75cd5f54df
    statefulset.kubernetes.io/pod-name: percona-xtradb-haproxy-0
  name: percona-xtradb-haproxy-0
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: StatefulSet
    name: percona-xtradb-haproxy
    uid: dd0de1d6-2f7f-40ff-94c8-95751171beb0
  resourceVersion: "2687"
  uid: 13538cc0-d6c7-4412-9e4c-adbafccdb452
spec:
  affinity:
    podAntiAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
      - labelSelector:
          matchLabels:
            app.kubernetes.io/component: haproxy
            app.kubernetes.io/instance: percona-xtradb
            app.kubernetes.io/managed-by: percona-xtradb-cluster-operator
            app.kubernetes.io/name: percona-xtradb-cluster
            app.kubernetes.io/part-of: percona-xtradb-cluster
        topologyKey: kubernetes.io/hostname
  containers:
  - args:
    - haproxy
    command:
    - /opt/percona/haproxy-entrypoint.sh
    env:
    - name: PXC_SERVICE
      value: percona-xtradb-pxc
    - name: LIVENESS_CHECK_TIMEOUT
      value: "5"
    - name: READINESS_CHECK_TIMEOUT
      value: "1"
    envFrom:
    - secretRef:
        name: percona-xtradb-env-vars-haproxy
        optional: true
    image: harbor.atmosphere.dev/docker.io/percona/haproxy:2.8.17@sha256:84997a52d34c63578eaecd7f2b5b168ecb7112b0e545bb779b71bc27608dd51f
    imagePullPolicy: Always
    livenessProbe:
      exec:
        command:
        - /opt/percona/haproxy_liveness_check.sh
      failureThreshold: 4
      initialDelaySeconds: 60
      periodSeconds: 30
      successThreshold: 1
      timeoutSeconds: 5
    name: haproxy
    ports:
    - containerPort: 3306
      name: mysql
      protocol: TCP
    - containerPort: 3307
      name: mysql-replicas
      protocol: TCP
    - containerPort: 3309
      name: proxy-protocol
      protocol: TCP
    - containerPort: 33062
      name: mysql-admin
      protocol: TCP
    - containerPort: 33060
      name: mysqlx
      protocol: TCP
    - containerPort: 8404
      name: stats
      protocol: TCP
    readinessProbe:
      exec:
        command:
        - /opt/percona/haproxy_readiness_check.sh
      failureThreshold: 3
      initialDelaySeconds: 15
      periodSeconds: 5
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /etc/haproxy-custom/
      name: haproxy-custom
    - mountPath: /etc/haproxy/pxc
      name: haproxy-auto
    - mountPath: /opt/percona
      name: bin
    - mountPath: /etc/mysql/mysql-users-secret
      name: mysql-users-secret-file
    - mountPath: /etc/mysql/haproxy-env-secret
      name: percona-xtradb-env-vars-haproxy
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-8lntt
      readOnly: true
  - args:
    - /opt/percona/peer-list
    - -on-change=/opt/percona/haproxy_add_pxc_nodes.sh
    - -service=$(PXC_SERVICE)
    - -protocol=$(PEER_LIST_SRV_PROTOCOL)
    command:
    - /opt/percona/haproxy-entrypoint.sh
    env:
    - name: PXC_SERVICE
      value: percona-xtradb-pxc
    - name: REPLICAS_SVC_ONLY_READERS
      value: "false"
    - name: HA_SERVER_OPTIONS
      value: resolvers kubernetes check inter 10000 rise 1 fall 2 weight 1 on-marked-down
        shutdown-sessions
    envFrom:
    - secretRef:
        name: percona-xtradb-env-vars-haproxy
        optional: true
    image: harbor.atmosphere.dev/docker.io/percona/haproxy:2.8.17@sha256:84997a52d34c63578eaecd7f2b5b168ecb7112b0e545bb779b71bc27608dd51f
    imagePullPolicy: Always
    name: pxc-monit
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /etc/haproxy-custom/
      name: haproxy-custom
    - mountPath: /etc/haproxy/pxc
      name: haproxy-auto
    - mountPath: /etc/mysql/mysql-users-secret
      name: mysql-users-secret-file
    - mountPath: /etc/mysql/haproxy-env-secret
      name: percona-xtradb-env-vars-haproxy
    - mountPath: /opt/percona
      name: bin
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-8lntt
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  hostname: percona-xtradb-haproxy-0
  initContainers:
  - command:
    - /pxc-init-entrypoint.sh
    image: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator:1.19.1@sha256:cda218468f42d0a49517a3bace79af5a76556b720a29e8d1655f8e366e9dcf1b
    imagePullPolicy: Always
    name: pxc-init
    resources:
      limits:
        cpu: 50m
        memory: 50M
      requests:
        cpu: 50m
        memory: 50M
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /var/lib/mysql
      name: bin
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-8lntt
      readOnly: true
  - command:
    - /haproxy-init-entrypoint.sh
    image: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator:1.19.1@sha256:cda218468f42d0a49517a3bace79af5a76556b720a29e8d1655f8e366e9dcf1b
    imagePullPolicy: Always
    name: haproxy-init
    resources:
      limits:
        cpu: 50m
        memory: 50M
      requests:
        cpu: 50m
        memory: 50M
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /opt/percona
      name: bin
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-8lntt
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: default
  serviceAccountName: default
  subdomain: percona-xtradb-haproxy
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  volumes:
  - configMap:
      defaultMode: 420
      name: percona-xtradb-haproxy
      optional: true
    name: haproxy-custom
  - emptyDir: {}
    name: haproxy-auto
  - name: mysql-users-secret-file
    secret:
      defaultMode: 420
      optional: false
      secretName: internal-percona-xtradb
  - name: percona-xtradb-env-vars-haproxy
    secret:
      defaultMode: 420
      optional: true
      secretName: percona-xtradb-env-vars-haproxy
  - emptyDir: {}
    name: bin
  - name: kube-api-access-8lntt
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2026-11-22T05:24:47Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-11-22T05:26:42Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-11-22T05:26:42Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-11-22T05:24:32Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://468be1325350ab161c7a88a10b776ae45675d420a6e43f41e45a17ca3e16b6b6
    image: sha256:c5946e4d0d0076e246ae6b7020de29eaebb8306d4a2f1407095c167fa68daef7
    imageID: harbor.atmosphere.dev/docker.io/percona/haproxy@sha256:84997a52d34c63578eaecd7f2b5b168ecb7112b0e545bb779b71bc27608dd51f
    lastState: {}
    name: haproxy
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-11-22T05:24:52Z"
  - containerID: containerd://c01f36a31b84e41776aae9bc5f4253b2f9f5998779bdc71a06af79ab0ec48d6c
    image: sha256:c5946e4d0d0076e246ae6b7020de29eaebb8306d4a2f1407095c167fa68daef7
    imageID: harbor.atmosphere.dev/docker.io/percona/haproxy@sha256:84997a52d34c63578eaecd7f2b5b168ecb7112b0e545bb779b71bc27608dd51f
    lastState: {}
    name: pxc-monit
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-11-22T05:25:05Z"
  hostIP: 162.253.55.20
  initContainerStatuses:
  - containerID: containerd://6328cc84989822eb0df72a3fa54285c4e9575f3981b66c9cfb9f7c3a3709ba3c
    image: sha256:0306d29f540d975d9d98b6a39a8c32fab2bcad92ab1fbd0c6965fd7674737617
    imageID: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator@sha256:cda218468f42d0a49517a3bace79af5a76556b720a29e8d1655f8e366e9dcf1b
    lastState: {}
    name: pxc-init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://6328cc84989822eb0df72a3fa54285c4e9575f3981b66c9cfb9f7c3a3709ba3c
        exitCode: 0
        finishedAt: "2026-11-22T05:24:41Z"
        reason: Completed
        startedAt: "2026-11-22T05:24:33Z"
  - containerID: containerd://7161c3e75bb0a385028008364a221091c2970e5584896de8b466dd5c05fb2e54
    image: sha256:0306d29f540d975d9d98b6a39a8c32fab2bcad92ab1fbd0c6965fd7674737617
    imageID: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator@sha256:cda218468f42d0a49517a3bace79af5a76556b720a29e8d1655f8e366e9dcf1b
    lastState: {}
    name: haproxy-init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://7161c3e75bb0a385028008364a221091c2970e5584896de8b466dd5c05fb2e54
        exitCode: 0
        finishedAt: "2026-11-22T05:24:46Z"
        reason: Completed
        startedAt: "2026-11-22T05:24:43Z"
  phase: Running
  podIP: 10.0.0.25
  podIPs:
  - ip: 10.0.0.25
  qosClass: Burstable
  startTime: "2026-11-22T05:24:32Z"
