github.com/percona/percona-xtradb-cluster-operator@v1.14.0/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc-oc.yml (about) 1 apiVersion: apps/v1 2 kind: StatefulSet 3 metadata: 4 generation: 1 5 name: proxy-protocol-pxc 6 ownerReferences: 7 - controller: true 8 kind: PerconaXtraDBCluster 9 name: proxy-protocol 10 spec: 11 podManagementPolicy: OrderedReady 12 replicas: 3 13 revisionHistoryLimit: 10 14 selector: 15 matchLabels: 16 app.kubernetes.io/component: pxc 17 app.kubernetes.io/instance: proxy-protocol 18 app.kubernetes.io/managed-by: percona-xtradb-cluster-operator 19 app.kubernetes.io/name: percona-xtradb-cluster 20 app.kubernetes.io/part-of: percona-xtradb-cluster 21 serviceName: proxy-protocol-pxc 22 template: 23 metadata: 24 labels: 25 app.kubernetes.io/component: pxc 26 app.kubernetes.io/instance: proxy-protocol 27 app.kubernetes.io/managed-by: percona-xtradb-cluster-operator 28 app.kubernetes.io/name: percona-xtradb-cluster 29 app.kubernetes.io/part-of: percona-xtradb-cluster 30 spec: 31 containers: 32 - args: 33 - mysqld 34 command: 35 - /var/lib/mysql/pxc-entrypoint.sh 36 env: 37 - name: PXC_SERVICE 38 value: proxy-protocol-pxc-unready 39 - name: MONITOR_HOST 40 value: '%' 41 - name: MYSQL_ROOT_PASSWORD 42 valueFrom: 43 secretKeyRef: 44 key: root 45 name: internal-proxy-protocol 46 - name: XTRABACKUP_PASSWORD 47 valueFrom: 48 secretKeyRef: 49 key: xtrabackup 50 name: internal-proxy-protocol 51 - name: MONITOR_PASSWORD 52 valueFrom: 53 secretKeyRef: 54 key: monitor 55 name: internal-proxy-protocol 56 - name: OPERATOR_ADMIN_PASSWORD 57 valueFrom: 58 secretKeyRef: 59 key: operator 60 name: internal-proxy-protocol 61 - name: LIVENESS_CHECK_TIMEOUT 62 value: "5" 63 - name: READINESS_CHECK_TIMEOUT 64 value: "15" 65 - name: DEFAULT_AUTHENTICATION_PLUGIN 66 value: caching_sha2_password 67 envFrom: 68 - secretRef: 69 name: proxy-protocol-env-vars-pxc 70 optional: true 71 imagePullPolicy: Always 72 livenessProbe: 73 exec: 74 command: 75 - /var/lib/mysql/liveness-check.sh 76 failureThreshold: 3 77 initialDelaySeconds: 300 78 periodSeconds: 10 79 successThreshold: 1 80 timeoutSeconds: 5 81 name: pxc 82 ports: 83 - containerPort: 3306 84 name: mysql 85 protocol: TCP 86 - containerPort: 4444 87 name: sst 88 protocol: TCP 89 - containerPort: 4567 90 name: write-set 91 protocol: TCP 92 - containerPort: 4568 93 name: ist 94 protocol: TCP 95 - containerPort: 33062 96 name: mysql-admin 97 protocol: TCP 98 - containerPort: 33060 99 name: mysqlx 100 protocol: TCP 101 readinessProbe: 102 exec: 103 command: 104 - /var/lib/mysql/readiness-check.sh 105 failureThreshold: 5 106 initialDelaySeconds: 15 107 periodSeconds: 30 108 successThreshold: 1 109 timeoutSeconds: 15 110 resources: 111 requests: 112 cpu: 600m 113 memory: 1G 114 terminationMessagePath: /dev/termination-log 115 terminationMessagePolicy: File 116 volumeMounts: 117 - mountPath: /var/lib/mysql 118 name: datadir 119 - mountPath: /etc/percona-xtradb-cluster.conf.d 120 name: config 121 - mountPath: /tmp 122 name: tmp 123 - mountPath: /etc/mysql/ssl 124 name: ssl 125 - mountPath: /etc/mysql/ssl-internal 126 name: ssl-internal 127 - mountPath: /etc/mysql/mysql-users-secret 128 name: mysql-users-secret-file 129 - mountPath: /etc/my.cnf.d 130 name: auto-config 131 - mountPath: /etc/mysql/vault-keyring-secret 132 name: vault-keyring-secret 133 - mountPath: /etc/mysql/init-file 134 name: mysql-init-file 135 dnsPolicy: ClusterFirst 136 initContainers: 137 - command: 138 - /pxc-init-entrypoint.sh 139 imagePullPolicy: Always 140 name: pxc-init 141 resources: 142 limits: 143 cpu: 50m 144 memory: 50M 145 terminationMessagePath: /dev/termination-log 146 terminationMessagePolicy: File 147 volumeMounts: 148 - mountPath: /var/lib/mysql 149 name: datadir 150 nodeSelector: {} 151 restartPolicy: Always 152 schedulerName: default-scheduler 153 securityContext: 154 supplementalGroups: 155 - 1001 156 serviceAccount: default 157 serviceAccountName: default 158 terminationGracePeriodSeconds: 600 159 volumes: 160 - emptyDir: {} 161 name: tmp 162 - configMap: 163 defaultMode: 420 164 name: proxy-protocol-pxc 165 optional: true 166 name: config 167 - name: ssl-internal 168 secret: 169 defaultMode: 420 170 optional: true 171 secretName: proxy-protocol-ssl-internal 172 - name: ssl 173 secret: 174 defaultMode: 420 175 optional: false 176 secretName: proxy-protocol-ssl 177 - configMap: 178 defaultMode: 420 179 name: auto-proxy-protocol-pxc 180 optional: true 181 name: auto-config 182 - name: vault-keyring-secret 183 secret: 184 defaultMode: 420 185 optional: true 186 secretName: proxy-protocol-vault 187 - name: mysql-users-secret-file 188 secret: 189 defaultMode: 420 190 optional: false 191 secretName: internal-proxy-protocol 192 - name: mysql-init-file 193 secret: 194 defaultMode: 420 195 optional: true 196 secretName: proxy-protocol-mysql-init 197 updateStrategy: 198 rollingUpdate: 199 partition: 0 200 type: RollingUpdate 201 volumeClaimTemplates: 202 - metadata: 203 name: datadir 204 spec: 205 accessModes: 206 - ReadWriteOnce 207 resources: 208 requests: 209 storage: 2G 210 status: 211 phase: Pending