Skip to content

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

  1. Install the Knative Contour controller:

    kubectl apply -f https://storage.googleapis.com/knative-nightly/net-contour/latest/net-contour.yaml
    
  2. 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"}}'
    
  3. Get the External IP address or full qualified domain name (CNAME):

    kubectl --namespace contour-external get service envoy
    

    Use 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

We use analytics and cookies to understand site traffic. Information about your use of our site is shared with Google for that purpose. Learn more.

× OK