Error: You need to specify CLUSTER_NAME

root@tent-master-01:/home/myuser# kubectl get pods -n percona-mysql-ha -w
NAME READY STATUS RESTARTS AGE
percona-cluster-proxysql-0 0/3 CrashLoopBackOff 27 (4m39s ago) 25m
percona-cluster-pxc-0 1/1 Running 1 (23m ago) 25m
percona-cluster-pxc-1 1/1 Running 0 25m
percona-cluster-pxc-2 1/1 Running 1 (23m ago) 24m
pxc-operator-7679ff5dfc-fpb45 1/1 Running 0 133m

root@tent-master-01:/home/myuser# kubectl logs percona-cluster-proxysql-0 -n percona-mysql-ha -c proxysql
Error: You need to specify CLUSTER_NAME

I am unable to start percona-cluster-proxysql-0. I am deploying it via helm and with Ansible. I have tried to specify the CLUSTER_NAME in many different areas to no avail. From a manual perspective, how do you set this up?

@redzchris It seems you installing operator via some customise way.

Well you can check the insight of that crashing pod [percona-cluster-proxysql-0] to get more information like some before error lines or the container info. Do you have the deployment or cr.yaml file ?

kubectl describe pod percona-cluster-proxysql-0
kubectl logs percona-cluster-proxysql-0

We have a manual/guide about installing/setup of PXC operator under different flavours which you can explore here - System requirements - Percona Operator for MySQL