Skip to content

Instantly share code, notes, and snippets.

@lotharschulz
Created June 23, 2017 20:37
Show Gist options
  • Save lotharschulz/5abd8ff96ec3dcd0ccaaef540bcf69e6 to your computer and use it in GitHub Desktop.
Save lotharschulz/5abd8ff96ec3dcd0ccaaef540bcf69e6 to your computer and use it in GitHub Desktop.
# 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