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 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