The command kubectl get secret my-cluster-cluster-ca-cert -n kafka -o jsonpath="{.data.ca}" | base64 --decode should return the certificate but returns an empty string.
The certificate contains the following attributes:
ca.crt: 1854 bytes
ca.p12: 1702 bytes
ca.password: 12 bytes
So there is no attribute "ca" only "ca.crt", "ca.p12" and "ca.password".
this command returens only the decoded password , it should showed as a clear text.
but first , you need to make sure that the user ( my-user ) already created in ysers.yaml file.
The command
kubectl get secret my-cluster-cluster-ca-cert -n kafka -o jsonpath="{.data.ca}" | base64 --decode
should return the certificate but returns an empty string.The certificate contains the following attributes: ca.crt: 1854 bytes ca.p12: 1702 bytes ca.password: 12 bytes
So there is no attribute "ca" only "ca.crt", "ca.p12" and "ca.password".