Skip to content

Instantly share code, notes, and snippets.

Last active March 31, 2020 21:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Knative on minikube with Kourier
export KNATIVE_VERSION="0.13.0"
# Not sure the minimum but this works for helloworld
minikube start --cpus=4 --memory=4096 --addons=ingress
# Install Knative Serving
kubectl apply --filename "$KNATIVE_VERSION/serving-crds.yaml"
kubectl apply --filename "$KNATIVE_VERSION/serving-core.yaml"
# Configure the magic DNS name
kubectl apply --filename "$KNATIVE_VERSION/serving-default-domain.yaml"
# Install and configure Kourier
kubectl apply --filename$KNATIVE_VERSION/third_party/kourier-latest/kourier.yaml
kubectl patch configmap/config-network --namespace knative-serving --type merge --patch '{"data":{"ingress.class":""}}'
# watch until all pods are ready
kubectl get pod -A -w
# open new tab to start the LB
minikube tunnel
# get public IP
kubectl get svc kourier -n kourier-system
# deploy helloworld from jonatasbaldin
kubectl apply -f
# get the URL, should look like
kubectl get ksvc
# cURL the URL, should see Hello Go Sample v1!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment