How do i launch a service via the minikube setup of kubernetes?
-
Let say you have a service running which exposes a status port on the minikube node. You can open that service in a browser by finding out the name of the service and running minikube service against it, as follows:
List the services.
$ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 46d web-service NodePort 10.96.232.44 <none> 80:30862/TCP 51m
Open the service in a browser.
$ minikube service web-service Opening kubernetes service default/web-service in default browser...
© Lightnetics 2024