Forked from lotharschulz/minikube loadbalancer and ingress
Created
November 17, 2017 10:41
-
-
Save mmourafiq/d3abccea6d0013cbb6edfa8871ede3d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/lotharschulz/akkahttp-playground/releases/tag/0.0.6-minikube-lb-ing-presentation-leipzig | |
# prerequsites: scala, sbt, docker, minikube, kubectl, local registry, project's docker images in local registry | |
kubectl create -f minikube-deployment-config.yaml | |
kubectl expose deployment akkahttpplayground-deployment --type="LoadBalancer" --port=8181 -target-port=8181 | |
minikube service akkahttpplayground-deployment # opens browser window | |
minikube addons enable ingress | |
kubectl create -f minikube-ingress.yaml | |
echo "$(minikube ip) myminikube.info" | sudo tee -a /etc/hosts | |
# check the service | |
curl -v http://myminikube.info/ | |
curl -v http://myminikube.info/hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment