From 6832a4ffdef9ebd4f1aa89defd434ecf928566fc Mon Sep 17 00:00:00 2001 From: John Harris Date: Sat, 18 Dec 2021 14:07:05 -0800 Subject: [PATCH] Add/update Kustomize configurations Signed-off-by: John Harris --- kustomize/base/flagger/deployment.yaml | 1 - kustomize/base/flagger/rbac.yaml | 13 +++++++++++++ kustomize/kuma/kustomization.yaml | 5 +++++ kustomize/kuma/patch.yaml | 14 ++++++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 kustomize/kuma/kustomization.yaml create mode 100644 kustomize/kuma/patch.yaml diff --git a/kustomize/base/flagger/deployment.yaml b/kustomize/base/flagger/deployment.yaml index f0bd8b13..af0c3f60 100644 --- a/kustomize/base/flagger/deployment.yaml +++ b/kustomize/base/flagger/deployment.yaml @@ -53,5 +53,4 @@ spec: memory: "32Mi" cpu: "10m" securityContext: - readOnlyRootFilesystem: true runAsUser: 10001 diff --git a/kustomize/base/flagger/rbac.yaml b/kustomize/base/flagger/rbac.yaml index 354de833..bb1134a4 100644 --- a/kustomize/base/flagger/rbac.yaml +++ b/kustomize/base/flagger/rbac.yaml @@ -177,6 +177,19 @@ rules: - update - patch - delete + - apiGroups: + - kuma.io + resources: + - trafficroutes + - trafficroutes/finalizers + verbs: + - get + - list + - watch + - create + - update + - patch + - delete - nonResourceURLs: - /version verbs: diff --git a/kustomize/kuma/kustomization.yaml b/kustomize/kuma/kustomization.yaml new file mode 100644 index 00000000..bdd2d17a --- /dev/null +++ b/kustomize/kuma/kustomization.yaml @@ -0,0 +1,5 @@ +namespace: kuma-system +bases: + - ../base/flagger/ +patchesStrategicMerge: + - patch.yaml diff --git a/kustomize/kuma/patch.yaml b/kustomize/kuma/patch.yaml new file mode 100644 index 00000000..78c08401 --- /dev/null +++ b/kustomize/kuma/patch.yaml @@ -0,0 +1,14 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: flagger +spec: + template: + spec: + containers: + - name: flagger + args: + - -log-level=info + - -include-label-prefix=app.kubernetes.io + - -mesh-provider=kuma + - -metrics-server=http://prometheus-server.kuma-metrics:80 \ No newline at end of file