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