I deployed XtraDB again after Kubernetes cluster de-deployment, now with a new version (1.9) and some changed noted below, but it didn’t start at all. Then I’m now trying to remove it ‘kubectl delete -f cr.yaml’ and ‘kubectl delete -f bundle.yaml’, result from that under installation logs.
Installation:
[root@dbaasjump002 deploy]# kubectl apply -f crd.yaml
customresourcedefinition.apiextensions.k8s.io/perconaxtradbclusters.pxc.percona.com created
customresourcedefinition.apiextensions.k8s.io/perconaxtradbclusterbackups.pxc.percona.com created
customresourcedefinition.apiextensions.k8s.io/perconaxtradbclusterrestores.pxc.percona.com created
customresourcedefinition.apiextensions.k8s.io/perconaxtradbbackups.pxc.percona.com created
[root@dbaasjump002 deploy]# kubectl create namespace pxc-v-1-9-0-ceph
namespace/pxc-v-1-9-0-ceph created
[root@dbaasjump002 deploy]# kubectl apply -f rbac.yaml -n pxc-v-1-9-0-ceph
role.rbac.authorization.k8s.io/percona-xtradb-cluster-operator created
serviceaccount/percona-xtradb-cluster-operator created
rolebinding.rbac.authorization.k8s.io/service-account-percona-xtradb-cluster-operator created
[root@dbaasjump002 deploy]# kubectl apply -f operator.yaml -n pxc-v-1-9-0-ceph
deployment.apps/percona-xtradb-cluster-operator created
[root@dbaasjump002 deploy]# kubectl apply -f secrets.yaml -n pxc-v-1-9-0-ceph
secret/my-cluster-secrets created
Percona XtraDB MySQL cluster changes on default cr.yaml, before creating cluster:
pxc, memory request: 1G → 4G (changes how much memory will be allocated for each MySQL node at the first)
pxc, storage: 6G → 150G (changes how much each storage will be allocated for each MySQL node at the first)
pmm, enabled: false → true (enables Percona Monitoring and Management)
[root@dbaasjump002 deploy]# kubectl apply -f cr.yaml -n pxc-v-1-9-0-ceph
perconaxtradbcluster.pxc.percona.com/xtradb001 created
Situation now:
[root@dbaasjump002 deploy]# kubectl get all
NAME READY STATUS RESTARTS AGE
pod/xtradb001-ceph-haproxy-0 1/3 CrashLoopBackOff 26 45m
pod/xtradb001-ceph-pxc-0 3/4 CrashLoopBackOff 13 45m
pod/xtradb001-ceph-pxc-1 2/4 CrashLoopBackOff 25 42m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/xtradb001-ceph-haproxy ClusterIP 10.255.145.162 3306/TCP,3309/TCP,33062/TCP,33060/TCP 45m
service/xtradb001-ceph-haproxy-replicas ClusterIP 10.255.192.212 3306/TCP 45m
service/xtradb001-ceph-pxc ClusterIP None 3306/TCP,33062/TCP,33060/TCP 45m
service/xtradb001-ceph-pxc-unready ClusterIP None 3306/TCP,33062/TCP,33060/TCP 45m
NAME READY AGE
statefulset.apps/xtradb001-ceph-haproxy 0/3 45m
statefulset.apps/xtradb001-ceph-pxc 0/1 45m
[root@dbaasjump002 deploy]# kubectl get pxc
NAME ENDPOINT STATUS PXC PROXYSQL HAPROXY AGE
xtradb001-ceph xtradb001-ceph-haproxy.pxc-v-1-9-0-ceph stopping 46m