-
Notifications
You must be signed in to change notification settings - Fork 527
Closed
Description
steps reproduce it:
- Create Kubernetes cluster with self-signed certs
- Installer will set up the cluster but SC and SPU pods are running correctly.
Please see: https://gist.github.com/tarokkk/be24d9c1fde100b21150fa26a6031ce9. Installer terminates with error:
Error:
0: Fluvio cluster error
1: Failed to install Fluvio on Kubernetes
2: Kubernetes client error
3: error trying to connect: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1916:: unable to get issuer certificate
4: error trying to connect: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1916:: unable to get issuer certificate
5: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1916:: unable to get issuer certificate
6: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1916:: unable to get issuer certificate
This is probably because K8 library doesn't add ca.crt in kubernetes.io/service-account-token.
kubectl get secret -n fluvio fluvio-token-5x5hb -o=jsonpath='{.data.ca.crt}' | base64 -D | openssl x509 -text *[master]
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
[xxx]
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=cluster-7133-ca
Validity
Not Before: Feb 14 09:37:46 2022 GMT
Not After : Feb 13 10:38:16 2027 GMT
Subject: CN=kubernetes-ca
Reactions are currently unavailable