microshift ip #601
Unanswered
burrsutter
asked this question in
Q&A
Replies: 2 comments 2 replies
|
@mangelajo can hopefully provide some information around the usage of the OpenShift router. NodePort is available out of the box. MetalLB https://microshift.io/docs/user-documentation/how-tos/example-usage/ can be configured as well for LB services |
1 reply
|
you can use either NodePort, or a route/ingress out of the box, for example: Please note that for the mDNS resolver to work in the lan, the hostname of the device where MicroShift is installed must also be .local (we have a bug to be fixed), otherwise the mDNS responder isn't enabled. You could also use non-mdns names, and target the IP of the device on port 80 / 443 with the right hostname. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
How to gain access to the ip address or what is the trick with gaining access to the Service?
My minikube script:
kubectl create namespace mystuff
kubectl config set-context --current --namespace=mystuff
kubectl create deployment myapp --image=quay.io/rhdevelopers/quarkus-demo:v1
kubectl expose deployment myapp --port=8080 --type=LoadBalancer
IP=$(minikube ip)
PORT=$(kubectl get service/myapp -o jsonpath="{.spec.ports[*].nodePort}")
curl $IP:$PORT
and
kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
myapp LoadBalancer 10.43.37.209 8080:32385/TCP 4m54s
All reactions