apiVersion: v1
kind: Pod
metadata:
  annotations:
    percona.com/configuration-hash: 7cd854af0131a2dc12e5350f858eb8b5
  creationTimestamp: "2026-08-24T20:45:15Z"
  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-57848bf4d5
    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: dc31b86f-1d82-4ea0-9002-3bd40c0b62d3
  resourceVersion: "2315"
  uid: fe1144d4-5830-49b4-8b33-812770ff150c
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:
  - 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/percona-xtradb-cluster-operator:1.13.0-haproxy
    imagePullPolicy: Always
    livenessProbe:
      exec:
        command:
        - /usr/local/bin/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
    readinessProbe:
      exec:
        command:
        - /usr/local/bin/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: /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-6gkzq
      readOnly: true
  - args:
    - /usr/bin/peer-list
    - -on-change=/usr/bin/add_pxc_nodes.sh
    - -service=$(PXC_SERVICE)
    env:
    - name: PXC_SERVICE
      value: percona-xtradb-pxc
    envFrom:
    - secretRef:
        name: percona-xtradb-env-vars-haproxy
        optional: true
    image: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator:1.13.0-haproxy
    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: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-6gkzq
      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.13.0
    imagePullPolicy: Always
    name: pxc-init
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /var/lib/mysql
      name: bin
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-6gkzq
      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-6gkzq
    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-08-24T20:45:18Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-08-24T20:46:25Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-08-24T20:46:25Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-08-24T20:45:15Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://bc6d012e9d98b2d978848f83c3861efbc93c7bdd11d5cb11915e98af798d3032
    image: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator:1.13.0-haproxy
    imageID: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator@sha256:f04e4fea548bfc7cb0bfc73c75c7f2c64d299cf04125a07a8101a55f0f734fed
    lastState: {}
    name: haproxy
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-08-24T20:45:21Z"
  - containerID: containerd://c50711504c8cc4181071bac30595217a104f22aeabf33e5784e64cb15ed75b28
    image: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator:1.13.0-haproxy
    imageID: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator@sha256:f04e4fea548bfc7cb0bfc73c75c7f2c64d299cf04125a07a8101a55f0f734fed
    lastState: {}
    name: pxc-monit
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-08-24T20:45:22Z"
  hostIP: 199.19.213.191
  initContainerStatuses:
  - containerID: containerd://f68f45b563b248b21c6f94f9ab9846aed0a8d94275e5d3cfea94b65cd62bb623
    image: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator:1.13.0
    imageID: harbor.atmosphere.dev/docker.io/percona/percona-xtradb-cluster-operator@sha256:c674d63242f1af521edfbaffae2ae02fb8d010c0557a67a9c42d2b4a50db5243
    lastState: {}
    name: pxc-init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://f68f45b563b248b21c6f94f9ab9846aed0a8d94275e5d3cfea94b65cd62bb623
        exitCode: 0
        finishedAt: "2026-08-24T20:45:17Z"
        reason: Completed
        startedAt: "2026-08-24T20:45:17Z"
  phase: Running
  podIP: 10.0.0.247
  podIPs:
  - ip: 10.0.0.247
  qosClass: BestEffort
  startTime: "2026-08-24T20:45:15Z"
