fluvio icon indicating copy to clipboard operation
fluvio copied to clipboard

[Bug]: CLI should also use KUBECONFIG

Open sysarcher opened this issue 2 years ago • 2 comments

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.

sysarcher avatar Aug 15 '22 12:08 sysarcher

Related to https://github.com/infinyon/fluvio/issues/1933#issuecomment-1159597639

tjtelan avatar Aug 15 '22 16:08 tjtelan

@tjtelan yup, seems to be closely related!!

sysarcher avatar Aug 15 '22 19:08 sysarcher

Stale issue message

github-actions[bot] avatar Oct 15 '22 11:10 github-actions[bot]