diff --git a/kustomize/README.md b/kustomize/README.md index dc26f87d..e5bc15fd 100644 --- a/kustomize/README.md +++ b/kustomize/README.md @@ -41,6 +41,14 @@ If you want to install a specific Flagger release, add the version number to the kubectl apply -k github.com/weaveworks/flagger//kustomize/linkerd?ref=0.18.0 ``` +Install Flagger for Contour: + +```bash +kubectl apply -k github.com/weaveworks/flagger//kustomize/contour +``` + +This deploys Flagger and Prometheus in the `projectcontour` namespace and sets Prometheus to scrape Contour's Envoy instances. + ## Generic installer Install Flagger and Prometheus: diff --git a/kustomize/contour/kustomization.yaml b/kustomize/contour/kustomization.yaml new file mode 100644 index 00000000..31063f79 --- /dev/null +++ b/kustomize/contour/kustomization.yaml @@ -0,0 +1,8 @@ +namespace: flagger-system +resources: + - namespace.yaml +bases: + - ../base/flagger/ + - ../base/prometheus/ +patchesStrategicMerge: + - patch.yaml diff --git a/kustomize/contour/namespace.yaml b/kustomize/contour/namespace.yaml new file mode 100644 index 00000000..b500dfce --- /dev/null +++ b/kustomize/contour/namespace.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: projectcontour + diff --git a/kustomize/contour/patch.yaml b/kustomize/contour/patch.yaml new file mode 100644 index 00000000..8ba03b67 --- /dev/null +++ b/kustomize/contour/patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: flagger +spec: + template: + spec: + containers: + - name: flagger + args: + - -log-level=info + - -mesh-provider=contour + - -metrics-server=http://flagger-prometheus:9090 + - -slack-user=flagger + - -slack-channel= + - -slack-url=