kink icon indicating copy to clipboard operation
kink copied to clipboard

Make the API service type configurable

Open scealiontach opened this issue 2 years ago • 1 comments

There are a lot of gotchas with NodePorts, why not allow the service type to be specified? Even better since the API is just a web port in any case optionally fire up an ingress?

Even better fire up an Ingress(optionally). Incidentally, this tool is a fantastic idea.

scealiontach avatar Sep 16 '21 13:09 scealiontach

I'm really interested in this too! I edited the service to be of type: LoadBalancer and it works fine, but you need to add the --insecure-skip-tls-verify option to your kubectl commands as the CERT_SANS variable is only set to the nodeIP. Would be great to have it configurable at the command line too.

~> KUBECONFIG=/Users/alessandro/Desktop/kubeconfig kubectl --insecure-skip-tls-verify get nodes -o wide
NAME                                                      STATUS   ROLES                  AGE   VERSION   INTERNAL-IP   EXTERNAL-IP   OS-IMAGE       KERNEL-VERSION     CONTAINER-RUNTIME
kind-a6b8cc50-8128-4635-85b6-59fa572edbfc-control-plane   Ready    control-plane,master   11m   v1.21.2   172.18.0.2    <none>        Ubuntu 21.04   5.4.0-1069-azure   containerd://1.5.2

~> cat /Users/alessandro/Desktop/kubeconfig| grep server
    server: https://<externalIP>:30001

ams0 avatar Mar 07 '22 14:03 ams0