Configure Contour adapter¶
This page describes how to install and configure the Contour adapter for Knative: net-contour.
Before you begin¶
This installation requires a Kubernetes cluster with Contour installed.
For information about Contour versions, see the Contour Compatibility Matrix.
Install and configure the adapter¶
-
Install the Knative Contour controller:
kubectl apply -f https://storage.googleapis.com/knative-nightly/net-contour/latest/net-contour.yaml -
Configure Knative Serving to use Contour by default:
kubectl patch configmap/config-network \ --namespace knative-serving \ --type merge \ --patch '{"data":{"ingress-class":"contour.ingress.networking.knative.dev"}}' -
Get the External IP address or full qualified domain name (CNAME):
kubectl --namespace contour-external get service envoyUse this value to configure your external DNS records.
The adapter's configurations are performed natively through Contour. For more information and resources see Contour home page.
Visibility¶
The following table shows the classes and services that expose Contour networking.
| ExternalIP | ClusterLocal |
|---|---|
| class: contour-external | class: contour-internal |
| service: contour-external/envoy | service: contour-internal/envoy |