Skip to content

Instantly share code, notes, and snippets.

@csantanapr
Created October 13, 2021 14:02
Show Gist options
  • Save csantanapr/ccae24a28e6b54548d584000cf01631a to your computer and use it in GitHub Desktop.
Save csantanapr/ccae24a28e6b54548d584000cf01631a to your computer and use it in GitHub Desktop.
deploy-svc-ingress-trivia

Trivia on ingress

Refs: https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/

You are tasked to deploy an application to http://hello-world.info the software is package at gcr.io/google-samples/hello-app:1.0 the app team said the software listens on port 8080. web app responds to prefix path http://hello-world.info/* Deploy only using the 3 commands, complete the commands.

  1. kubectl create deployment --port **** ...
  2. kubectl expose ...
  3. kubectl create ingress ...

The first person to answer unlocks the hallway zoom

answer:

  1. kubectl create deployment web --image gcr.io/google-samples/hello-app:1.0 --port 8080
  2. kubectl expose deployment web
  3. kubectl create ingress web --rule="hello-world.info/*=web:8080"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment