fluvio
fluvio copied to clipboard
[Bug]: CLI should also use KUBECONFIG
What happened Can not deploy Fluvio cluster on orchestration platforms like OpenShift.
Expected behavior
Deploying Fluvio cluster on OpenShift requires TLS certificates in cert path. This is not always feasible. Instead, using KUBECONFIG
environment variable, or the default ~/.kube/config
path is more idiomatic.
Describe the setup
- Trying to deploy Fluvio on RedHat OpenShift
- version: 0.9.33
Log output
❯ fluvio cluster start
Current channel: latest
📝 Running pre-flight checks
✅ Kubectl active cluster NAME_MASKED:6443/kube:admin at: https://api.MASKED.com:6443 found
✅ Supported helm version 3.9.2+g1addefb is installed
✅ Supported Kubernetes server 1.23.5+3afdacb found
✅ Fluvio system charts are installed
✅ Previous fluvio installation not found
🎉 All checks passed!
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:1921:: self signed certificate in certificate chain
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:1921:: self signed certificate in certificate chain
5: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1921:: self signed certificate in certificate chain
6: tls handshake: HandshakeError: the handshake failed: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1921:: self signed certificate in certificate chain
Environment (please complete the following information):
- OS: Linux
- Fluvio Version 0.9.33
- Kubernetes version: 1.23
- OpenShift 4.10
Additional context
Config file in ~/.kube/config
.
Related to https://github.com/infinyon/fluvio/issues/1933#issuecomment-1159597639
@tjtelan yup, seems to be closely related!!
Stale issue message