github.com/percona/percona-xtradb-cluster-operator@v1.14.0/e2e-tests/limits/compare/statefulset_no-limits-pxc-k127.yml (about)

     1  apiVersion: apps/v1
     2  kind: StatefulSet
     3  metadata:
     4    generation: 1
     5    name: no-limits-pxc
     6    ownerReferences:
     7      - controller: true
     8        kind: PerconaXtraDBCluster
     9        name: no-limits
    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: no-limits
    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: no-limits-pxc
    25    template:
    26      metadata:
    27        labels:
    28          app.kubernetes.io/component: pxc
    29          app.kubernetes.io/instance: no-limits
    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: pmm
    40              - name: PMM_PASSWORD
    41                valueFrom:
    42                  secretKeyRef:
    43                    key: pmmserver
    44                    name: internal-no-limits
    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: pmm
    65              - name: PMM_AGENT_SERVER_PASSWORD
    66                valueFrom:
    67                  secretKeyRef:
    68                    key: pmmserver
    69                    name: internal-no-limits
    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: $(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-no-limits
   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: no-limits
   111              - name: PMM_ADMIN_CUSTOM_PARAMS
   112              - name: PMM_AGENT_PRERUN_SCRIPT
   113                value: /var/lib/mysql/pmm-prerun.sh
   114              - name: PMM_AGENT_SIDECAR
   115                value: "true"
   116              - name: PMM_AGENT_SIDECAR_SLEEP
   117                value: "5"
   118              - name: PMM_AGENT_PATHS_TEMPDIR
   119                value: /tmp
   120            envFrom:
   121              - secretRef:
   122                  name: no-limits-env-vars-pxc
   123                  optional: true
   124            imagePullPolicy: IfNotPresent
   125            lifecycle:
   126              preStop:
   127                exec:
   128                  command:
   129                    - bash
   130                    - -c
   131                    - pmm-admin unregister --force
   132            livenessProbe:
   133              failureThreshold: 3
   134              httpGet:
   135                path: /local/Status
   136                port: 7777
   137                scheme: HTTP
   138              initialDelaySeconds: 60
   139              periodSeconds: 10
   140              successThreshold: 1
   141              timeoutSeconds: 5
   142            name: pmm-client
   143            ports:
   144              - containerPort: 7777
   145                protocol: TCP
   146              - containerPort: 30100
   147                protocol: TCP
   148              - containerPort: 30101
   149                protocol: TCP
   150              - containerPort: 30102
   151                protocol: TCP
   152              - containerPort: 30103
   153                protocol: TCP
   154              - containerPort: 30104
   155                protocol: TCP
   156              - containerPort: 30105
   157                protocol: TCP
   158            resources: {}
   159            terminationMessagePath: /dev/termination-log
   160            terminationMessagePolicy: File
   161            volumeMounts:
   162              - mountPath: /var/lib/mysql
   163                name: datadir
   164          - args:
   165              - mysqld
   166            command:
   167              - /var/lib/mysql/pxc-entrypoint.sh
   168            env:
   169              - name: PXC_SERVICE
   170                value: no-limits-pxc-unready
   171              - name: MONITOR_HOST
   172                value: '%'
   173              - name: MYSQL_ROOT_PASSWORD
   174                valueFrom:
   175                  secretKeyRef:
   176                    key: root
   177                    name: internal-no-limits
   178              - name: XTRABACKUP_PASSWORD
   179                valueFrom:
   180                  secretKeyRef:
   181                    key: xtrabackup
   182                    name: internal-no-limits
   183              - name: MONITOR_PASSWORD
   184                valueFrom:
   185                  secretKeyRef:
   186                    key: monitor
   187                    name: internal-no-limits
   188              - name: OPERATOR_ADMIN_PASSWORD
   189                valueFrom:
   190                  secretKeyRef:
   191                    key: operator
   192                    name: internal-no-limits
   193              - name: LIVENESS_CHECK_TIMEOUT
   194                value: "5"
   195              - name: READINESS_CHECK_TIMEOUT
   196                value: "15"
   197              - name: DEFAULT_AUTHENTICATION_PLUGIN
   198                value: mysql_native_password
   199            envFrom:
   200              - secretRef:
   201                  name: no-limits-env-vars-pxc
   202                  optional: true
   203            imagePullPolicy: IfNotPresent
   204            livenessProbe:
   205              exec:
   206                command:
   207                  - /var/lib/mysql/liveness-check.sh
   208              failureThreshold: 3
   209              initialDelaySeconds: 300
   210              periodSeconds: 10
   211              successThreshold: 1
   212              timeoutSeconds: 5
   213            name: pxc
   214            ports:
   215              - containerPort: 3306
   216                name: mysql
   217                protocol: TCP
   218              - containerPort: 4444
   219                name: sst
   220                protocol: TCP
   221              - containerPort: 4567
   222                name: write-set
   223                protocol: TCP
   224              - containerPort: 4568
   225                name: ist
   226                protocol: TCP
   227              - containerPort: 33062
   228                name: mysql-admin
   229                protocol: TCP
   230              - containerPort: 33060
   231                name: mysqlx
   232                protocol: TCP
   233            readinessProbe:
   234              exec:
   235                command:
   236                  - /var/lib/mysql/readiness-check.sh
   237              failureThreshold: 5
   238              initialDelaySeconds: 15
   239              periodSeconds: 30
   240              successThreshold: 1
   241              timeoutSeconds: 15
   242            resources:
   243              requests:
   244                cpu: 300m
   245                memory: 500M
   246            terminationMessagePath: /dev/termination-log
   247            terminationMessagePolicy: File
   248            volumeMounts:
   249              - mountPath: /var/lib/mysql
   250                name: datadir
   251              - mountPath: /etc/percona-xtradb-cluster.conf.d
   252                name: config
   253              - mountPath: /tmp
   254                name: tmp
   255              - mountPath: /etc/mysql/ssl
   256                name: ssl
   257              - mountPath: /etc/mysql/ssl-internal
   258                name: ssl-internal
   259              - mountPath: /etc/mysql/mysql-users-secret
   260                name: mysql-users-secret-file
   261              - mountPath: /etc/my.cnf.d
   262                name: auto-config
   263              - mountPath: /etc/mysql/vault-keyring-secret
   264                name: vault-keyring-secret
   265              - mountPath: /etc/mysql/init-file
   266                name: mysql-init-file
   267        dnsPolicy: ClusterFirst
   268        initContainers:
   269          - command:
   270              - /pxc-init-entrypoint.sh
   271            imagePullPolicy: IfNotPresent
   272            name: pxc-init
   273            resources:
   274              limits:
   275                cpu: 50m
   276                memory: 50M
   277            terminationMessagePath: /dev/termination-log
   278            terminationMessagePolicy: File
   279            volumeMounts:
   280              - mountPath: /var/lib/mysql
   281                name: datadir
   282        restartPolicy: Always
   283        schedulerName: default-scheduler
   284        securityContext:
   285          fsGroup: 1001
   286          supplementalGroups:
   287            - 1001
   288        serviceAccount: default
   289        serviceAccountName: default
   290        terminationGracePeriodSeconds: 600
   291        volumes:
   292          - emptyDir: {}
   293            name: tmp
   294          - configMap:
   295              defaultMode: 420
   296              name: no-limits-pxc
   297              optional: true
   298            name: config
   299          - name: ssl-internal
   300            secret:
   301              defaultMode: 420
   302              optional: true
   303              secretName: some-name-ssl-internal
   304          - name: ssl
   305            secret:
   306              defaultMode: 420
   307              optional: false
   308              secretName: some-name-ssl
   309          - configMap:
   310              defaultMode: 420
   311              name: auto-no-limits-pxc
   312              optional: true
   313            name: auto-config
   314          - name: vault-keyring-secret
   315            secret:
   316              defaultMode: 420
   317              optional: true
   318              secretName: no-limits-vault
   319          - name: mysql-users-secret-file
   320            secret:
   321              defaultMode: 420
   322              optional: false
   323              secretName: internal-no-limits
   324          - name: mysql-init-file
   325            secret:
   326              defaultMode: 420
   327              optional: true
   328              secretName: no-limits-mysql-init
   329    updateStrategy:
   330      rollingUpdate:
   331        partition: 0
   332      type: RollingUpdate
   333    volumeClaimTemplates:
   334      - metadata:
   335          name: datadir
   336        spec:
   337          accessModes:
   338            - ReadWriteOnce
   339          resources:
   340            requests:
   341              storage: 6Gi
   342        status:
   343          phase: Pending