Illegal base64 data for sonarqube-custom-ca secret
The documentation mentions creating a secret containing a custom CA, however, when I followed the documentation, I received this error:
flux get kustomization -A
[ . . . TRUNCATED . . . ]
Secret/sonarqube/sonarqube-custom-ca validation error: error decoding from json: illegal base64 data at input byte 8
I found that I needed to create my secret like this instead:
apiVersion: v1
kind: Secret
metadata:
name: my-cacerts
stringData:
cert-1.crt: |
-----BEGIN CERTIFICATE-----
[ . . . REDACTED . . . ]
-----END CERTIFICATE-----
Note: see the stringData
instead of `data.
Reference(s):