July 2020
Intermediate to advanced
392 pages
7h 20m
English
In Chapter 10, you need to have access to a Kubernetes cluster—it can be a minikube installation or any other kind. But you also need Knative Serving installed to run the Knative recipe. For this book, Kourier is used as an Ingress for Knative.
In this book, minikube 1.7.3, Kubernetes 1.17.3, Knative 0.13.0, and Kourier 0.3.12 were used.
To install Knative Serving, you need to run the following commands:
kubectl apply -f \https://github.com/knative/serving/releases/download/v0.13.0/serving-core.yamlkubectl apply -f \https://raw.githubusercontent.com/3scale/kourier/v0.3.12/deploy/\kourier-knative.yaml
Configure Knative Serving to use the proper ingress.class:
kubectl patch configmap/config-network \-n knative-serving \--type merge \-p '{"data":{"clusteringress.class":"kourier.ingress.networking.knative.dev","ingress.class":"kourier.ingress.networking.knative.dev"}}'
Set your desired domain; in this case, 127.0.0.1 is used because it runs in minikube:
kubectl patch configmap/config-domain \-n knative-serving \--type merge \-p '{"data":{"127.0.0.1.nip.io":""}}'
Now, you are ready start deploying Knative services.
Read now
Unlock full access