github.com/percona/percona-xtradb-cluster-operator@v1.14.0/e2e-tests/monitoring-2-0/compare/statefulset_monitoring-pxc-k127.yml (about) 1 apiVersion: apps/v1 2 kind: StatefulSet 3 metadata: 4 generation: 3 5 name: monitoring-pxc 6 ownerReferences: 7 - controller: true 8 kind: PerconaXtraDBCluster 9 name: monitoring 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: monitoring 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: monitoring-pxc 25 template: 26 metadata: 27 labels: 28 app.kubernetes.io/component: pxc 29 app.kubernetes.io/instance: monitoring 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 - env: 36 - name: PMM_SERVER 37 value: monitoring-service 38 - name: PMM_USER 39 value: api_key 40 - name: PMM_PASSWORD 41 valueFrom: 42 secretKeyRef: 43 key: pmmserverkey 44 name: internal-monitoring 45 - name: CLIENT_PORT_LISTEN 46 value: "7777" 47 - name: CLIENT_PORT_MIN 48 value: "30100" 49 - name: CLIENT_PORT_MAX 50 value: "30105" 51 - name: POD_NAME 52 valueFrom: 53 fieldRef: 54 apiVersion: v1 55 fieldPath: metadata.name 56 - name: POD_NAMESPASE 57 valueFrom: 58 fieldRef: 59 apiVersion: v1 60 fieldPath: metadata.namespace 61 - name: PMM_AGENT_SERVER_ADDRESS 62 value: monitoring-service 63 - name: PMM_AGENT_SERVER_USERNAME 64 value: api_key 65 - name: PMM_AGENT_SERVER_PASSWORD 66 valueFrom: 67 secretKeyRef: 68 key: pmmserverkey 69 name: internal-monitoring 70 - name: PMM_AGENT_LISTEN_PORT 71 value: "7777" 72 - name: PMM_AGENT_PORTS_MIN 73 value: "30100" 74 - name: PMM_AGENT_PORTS_MAX 75 value: "30105" 76 - name: PMM_AGENT_CONFIG_FILE 77 value: /usr/local/percona/pmm2/config/pmm-agent.yaml 78 - name: PMM_AGENT_SERVER_INSECURE_TLS 79 value: "1" 80 - name: PMM_AGENT_LISTEN_ADDRESS 81 value: 0.0.0.0 82 - name: PMM_AGENT_SETUP_METRICS_MODE 83 value: push 84 - name: PMM_AGENT_SETUP 85 value: "1" 86 - name: PMM_AGENT_SETUP_FORCE 87 value: "1" 88 - name: PMM_AGENT_SETUP_NODE_TYPE 89 value: container 90 - name: PMM_AGENT_SETUP_NODE_NAME 91 value: $(PMM_PREFIX)$(POD_NAMESPASE)-$(POD_NAME) 92 - name: DB_TYPE 93 value: mysql 94 - name: DB_USER 95 value: monitor 96 - name: DB_PASSWORD 97 valueFrom: 98 secretKeyRef: 99 key: monitor 100 name: internal-monitoring 101 - name: DB_ARGS 102 value: --query-source=perfschema 103 - name: DB_CLUSTER 104 value: pxc 105 - name: DB_HOST 106 value: localhost 107 - name: DB_PORT 108 value: "33062" 109 - name: CLUSTER_NAME 110 value: monitoring 111 - name: PMM_ADMIN_CUSTOM_PARAMS 112 value: --disable-tablestats-limit=2000 113 - name: PMM_AGENT_PRERUN_SCRIPT 114 value: /var/lib/mysql/pmm-prerun.sh 115 - name: PMM_AGENT_SIDECAR 116 value: "true" 117 - name: PMM_AGENT_SIDECAR_SLEEP 118 value: "5" 119 - name: PMM_AGENT_PATHS_TEMPDIR 120 value: /tmp 121 envFrom: 122 - secretRef: 123 name: my-env-var-secrets 124 optional: true 125 imagePullPolicy: Always 126 lifecycle: 127 preStop: 128 exec: 129 command: 130 - bash 131 - -c 132 - pmm-admin unregister --force 133 livenessProbe: 134 failureThreshold: 3 135 httpGet: 136 path: /local/Status 137 port: 7777 138 scheme: HTTP 139 initialDelaySeconds: 60 140 periodSeconds: 10 141 successThreshold: 1 142 timeoutSeconds: 5 143 name: pmm-client 144 ports: 145 - containerPort: 7777 146 protocol: TCP 147 - containerPort: 30100 148 protocol: TCP 149 - containerPort: 30101 150 protocol: TCP 151 - containerPort: 30102 152 protocol: TCP 153 - containerPort: 30103 154 protocol: TCP 155 - containerPort: 30104 156 protocol: TCP 157 - containerPort: 30105 158 protocol: TCP 159 resources: 160 limits: 161 cpu: "1" 162 memory: 1G 163 requests: 164 cpu: 308m 165 memory: 508M 166 terminationMessagePath: /dev/termination-log 167 terminationMessagePolicy: File 168 volumeMounts: 169 - mountPath: /var/lib/mysql 170 name: datadir 171 - args: 172 - mysqld 173 command: 174 - /var/lib/mysql/pxc-entrypoint.sh 175 env: 176 - name: PXC_SERVICE 177 value: monitoring-pxc-unready 178 - name: MONITOR_HOST 179 value: '%' 180 - name: MYSQL_ROOT_PASSWORD 181 valueFrom: 182 secretKeyRef: 183 key: root 184 name: internal-monitoring 185 - name: XTRABACKUP_PASSWORD 186 valueFrom: 187 secretKeyRef: 188 key: xtrabackup 189 name: internal-monitoring 190 - name: MONITOR_PASSWORD 191 valueFrom: 192 secretKeyRef: 193 key: monitor 194 name: internal-monitoring 195 - name: OPERATOR_ADMIN_PASSWORD 196 valueFrom: 197 secretKeyRef: 198 key: operator 199 name: internal-monitoring 200 - name: LIVENESS_CHECK_TIMEOUT 201 value: "5" 202 - name: READINESS_CHECK_TIMEOUT 203 value: "15" 204 - name: DEFAULT_AUTHENTICATION_PLUGIN 205 value: caching_sha2_password 206 envFrom: 207 - secretRef: 208 name: my-env-var-secrets 209 optional: true 210 imagePullPolicy: Always 211 livenessProbe: 212 exec: 213 command: 214 - /var/lib/mysql/liveness-check.sh 215 failureThreshold: 3 216 initialDelaySeconds: 300 217 periodSeconds: 10 218 successThreshold: 1 219 timeoutSeconds: 5 220 name: pxc 221 ports: 222 - containerPort: 3306 223 name: mysql 224 protocol: TCP 225 - containerPort: 4444 226 name: sst 227 protocol: TCP 228 - containerPort: 4567 229 name: write-set 230 protocol: TCP 231 - containerPort: 4568 232 name: ist 233 protocol: TCP 234 - containerPort: 33062 235 name: mysql-admin 236 protocol: TCP 237 - containerPort: 33060 238 name: mysqlx 239 protocol: TCP 240 readinessProbe: 241 exec: 242 command: 243 - /var/lib/mysql/readiness-check.sh 244 failureThreshold: 5 245 initialDelaySeconds: 15 246 periodSeconds: 30 247 successThreshold: 1 248 timeoutSeconds: 15 249 resources: 250 requests: 251 cpu: 300m 252 memory: 500M 253 terminationMessagePath: /dev/termination-log 254 terminationMessagePolicy: File 255 volumeMounts: 256 - mountPath: /var/lib/mysql 257 name: datadir 258 - mountPath: /etc/percona-xtradb-cluster.conf.d 259 name: config 260 - mountPath: /tmp 261 name: tmp 262 - mountPath: /etc/mysql/ssl 263 name: ssl 264 - mountPath: /etc/mysql/ssl-internal 265 name: ssl-internal 266 - mountPath: /etc/mysql/mysql-users-secret 267 name: mysql-users-secret-file 268 - mountPath: /etc/my.cnf.d 269 name: auto-config 270 - mountPath: /etc/mysql/vault-keyring-secret 271 name: vault-keyring-secret 272 - mountPath: /etc/mysql/init-file 273 name: mysql-init-file 274 dnsPolicy: ClusterFirst 275 initContainers: 276 - command: 277 - /pxc-init-entrypoint.sh 278 imagePullPolicy: Always 279 name: pxc-init 280 resources: 281 limits: 282 cpu: 50m 283 memory: 50M 284 terminationMessagePath: /dev/termination-log 285 terminationMessagePolicy: File 286 volumeMounts: 287 - mountPath: /var/lib/mysql 288 name: datadir 289 restartPolicy: Always 290 schedulerName: default-scheduler 291 securityContext: 292 fsGroup: 1001 293 supplementalGroups: 294 - 1001 295 serviceAccount: default 296 serviceAccountName: default 297 terminationGracePeriodSeconds: 600 298 volumes: 299 - emptyDir: {} 300 name: tmp 301 - configMap: 302 defaultMode: 420 303 name: monitoring-pxc 304 optional: true 305 name: config 306 - name: ssl-internal 307 secret: 308 defaultMode: 420 309 optional: true 310 secretName: monitoring-ssl-internal 311 - name: ssl 312 secret: 313 defaultMode: 420 314 optional: false 315 secretName: some-name-ssl 316 - configMap: 317 defaultMode: 420 318 name: auto-monitoring-pxc 319 optional: true 320 name: auto-config 321 - name: vault-keyring-secret 322 secret: 323 defaultMode: 420 324 optional: true 325 secretName: monitoring-vault 326 - name: mysql-users-secret-file 327 secret: 328 defaultMode: 420 329 optional: false 330 secretName: internal-monitoring 331 - name: mysql-init-file 332 secret: 333 defaultMode: 420 334 optional: true 335 secretName: monitoring-mysql-init 336 updateStrategy: 337 rollingUpdate: 338 partition: 0 339 type: RollingUpdate 340 volumeClaimTemplates: 341 - metadata: 342 name: datadir 343 spec: 344 accessModes: 345 - ReadWriteOnce 346 resources: 347 requests: 348 storage: 2Gi 349 status: 350 phase: Pending