github.com/percona/percona-xtradb-cluster-operator@v1.14.0/e2e-tests/proxy-protocol/compare/statefulset_proxy-protocol-pxc-k127-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    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          supplementalGroups:
   158            - 1001
   159        serviceAccount: default
   160        serviceAccountName: default
   161        terminationGracePeriodSeconds: 600
   162        volumes:
   163          - emptyDir: {}
   164            name: tmp
   165          - configMap:
   166              defaultMode: 420
   167              name: proxy-protocol-pxc
   168              optional: true
   169            name: config
   170          - name: ssl-internal
   171            secret:
   172              defaultMode: 420
   173              optional: true
   174              secretName: proxy-protocol-ssl-internal
   175          - name: ssl
   176            secret:
   177              defaultMode: 420
   178              optional: false
   179              secretName: proxy-protocol-ssl
   180          - configMap:
   181              defaultMode: 420
   182              name: auto-proxy-protocol-pxc
   183              optional: true
   184            name: auto-config
   185          - name: vault-keyring-secret
   186            secret:
   187              defaultMode: 420
   188              optional: true
   189              secretName: proxy-protocol-vault
   190          - name: mysql-users-secret-file
   191            secret:
   192              defaultMode: 420
   193              optional: false
   194              secretName: internal-proxy-protocol
   195          - name: mysql-init-file
   196            secret:
   197              defaultMode: 420
   198              optional: true
   199              secretName: proxy-protocol-mysql-init
   200    updateStrategy:
   201      rollingUpdate:
   202        partition: 0
   203      type: RollingUpdate
   204    volumeClaimTemplates:
   205      - metadata:
   206          name: datadir
   207        spec:
   208          accessModes:
   209            - ReadWriteOnce
   210          resources:
   211            requests:
   212              storage: 2G
   213        status:
   214          phase: Pending