Skip to content

Instantly share code, notes, and snippets.

@trisberg
Last active April 20, 2020 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trisberg/6f7915b7fa9c8f16acec74adb57c80d0 to your computer and use it in GitHub Desktop.
Save trisberg/6f7915b7fa9c8f16acec74adb57c80d0 to your computer and use it in GitHub Desktop.
Knative Installation Notes

Knative Installation Notes

Installing Knative 0.14.0

Serving

kubectl apply -f https://github.com/knative/serving/releases/download/v0.14.0/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/v0.14.0/serving-core.yaml

Ingress

Contour

kubectl apply -f https://github.com/knative/net-contour/releases/download/v0.14.0/contour.yaml
kubectl apply -f https://github.com/knative/net-contour/releases/download/v0.14.0/net-contour.yaml
kubectl patch configmap/config-network \
  --namespace knative-serving \
  --type merge \
  --patch '{"data":{"ingress.class":"contour.ingress.networking.knative.dev"}}'
INGRESS=$(kubectl get --namespace contour-external service/envoy -o jsonpath='{.status.loadBalancer.ingress[0].ip}')

Kourier

kubectl apply -f https://github.com/knative/net-kourier/releases/download/v0.14.0/kourier.yaml
kubectl patch configmap/config-network \
  --namespace knative-serving \
  --type merge \
  --patch '{"data":{"ingress.class":"kourier.ingress.networking.knative.dev"}}'
INGRESS=$(kubectl get --namespace kourier-system service/kourier -o jsonpath='{.status.loadBalancer.ingress[0].ip}')

Eventing

kubectl apply -f https://github.com/knative/eventing/releases/download/v0.14.0/eventing-crds.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.14.0/eventing-core.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.14.0/in-memory-channel.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.14.0/channel-broker.yaml

Label namespace for Eventing:

kubectl label namespace default knative-eventing-injection=enabled

Verify that the broker is running:

kubectl -n default get broker.eventing.knative.dev default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment