Deploy and manage Contour using an operator.
To build the operator, run:
make manager
Install the Contour Operator & Contour CRDs:
make install
Run the operator locally or in the cluster .
To run the operator locally. Note: This will run in the foreground, so switch to a new terminal if you want to leave it running:
make run
To run the operator in a cluster:
make deploy
Verify the deployment is available (not needed if running the operator locally):
$ kubectl get deploy -n contour-operator
NAME READY UP-TO-DATE AVAILABLE AGE
contour-operator-controller-manager 1/1 1 1 1m
Install an instance of the Contour
custom resource:
kubectl apply -f config/samples/
Verify the Contour and Envoy pods are running/completed:
$ kubectl get po -n projectcontour
NAME READY STATUS RESTARTS AGE
contour-7649c6f6cc-ct5rz 1/1 Running 0 116s
contour-7649c6f6cc-dmbrc 1/1 Running 0 116s
contour-certgen-rmz86 0/1 Completed 0 116s
envoy-jrhsp 2/2 Running 0 116s
kubectl apply -f https://projectcontour.io/examples/kuard.yaml
kubectl apply -f https://projectcontour.io/examples/kuard-httpproxy.yaml