From 401a94bd3614f53795c868b65636885a2789a4c4 Mon Sep 17 00:00:00 2001 From: Chris Nesbitt-Smith Date: Thu, 27 Jun 2019 10:59:02 +0100 Subject: [PATCH 1/2] add kustomization.yaml --- deployments/kubernetes/kustomization.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 deployments/kubernetes/kustomization.yaml diff --git a/deployments/kubernetes/kustomization.yaml b/deployments/kubernetes/kustomization.yaml new file mode 100644 index 00000000..38ac5dce --- /dev/null +++ b/deployments/kubernetes/kustomization.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - manifests/clusterrole.yaml + - manifests/clusterrolebinding.yaml + - manifests/role.yaml + - manifests/rolebinding.yaml + - manifests/serviceaccount.yaml + - manifests/deployment.yaml \ No newline at end of file From 69487f6caf8bc0179394e9fe47bda13625f3b732 Mon Sep 17 00:00:00 2001 From: Chris Nesbitt-Smith Date: Thu, 27 Jun 2019 14:34:07 +0100 Subject: [PATCH 2/2] update readme for kustomize --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 85caa1c8..8cfd5644 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,30 @@ kubectl apply -f https://raw.githubusercontent.com/stakater/Reloader/master/depl By default Reloader gets deployed in `default` namespace and watches changes `secrets` and `configmaps` in all namespaces. +### Vanilla kustomize + +You can also apply the vanilla manifests by running the following command +```bash +kubectl apply -k https://github.com/stakater/Reloader/deployments/kubernetes +``` +Similarly to vanilla manifests get deployed in `default` namespace and watches changes `secrets` and `configmaps` in all namespaces. + +### Kustomize + +You can write your own `kustomization.yaml` using ours as a 'base' and write patches to tweak the configuration. + +```yaml +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namePrefix: reloader- + +bases: + - https://github.com/stakater/Reloader/deployments/kubernetes + +namespace: reloader +``` + ### Helm Charts Alternatively if you have configured helm on your cluster, you can add reloader to helm from our public chart repository and deploy it via helm using below mentioned commands