From 8ec3fa1ec80b92706a23cc7e5a8bce64dfef24ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Rom=C3=A1n?= <39826173+jakub-roman@users.noreply.github.com> Date: Mon, 15 Jul 2019 17:17:42 +0200 Subject: [PATCH] Kustomization (#608) Add ability to install the operator via kustomization. --- docs/quickstart.md | 10 +++++++--- manifests/kustomization.yaml | 6 ++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 manifests/kustomization.yaml diff --git a/docs/quickstart.md b/docs/quickstart.md index d665d1815..965e96a36 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -54,9 +54,13 @@ kubectl create -f manifests/operator-service-account-rbac.yaml # identity and p kubectl create -f manifests/postgres-operator.yaml # deployment ``` -When using kubectl 1.14 or newer the mentioned manifests could be also be -bundled in one [Kustomization](https://github.com/kubernetes-sigs/kustomize) -manifest. +There is a [Kustomization](https://github.com/kubernetes-sigs/kustomize) +manifest that [combines the mentioned resources](../manifests/kustomization.yaml) - +it can be used with kubectl 1.14 or newer as easy as: + +```bash +kubectl apply -k github.com/zalando/postgres-operator/manifests +``` For convenience, we have automated starting the operator with minikube using the `run_operator_locally` script. It applies the [`acid-minimal-cluster`](../manifests/minimal-postgres-manifest). diff --git a/manifests/kustomization.yaml b/manifests/kustomization.yaml new file mode 100644 index 000000000..a39627956 --- /dev/null +++ b/manifests/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- configmap.yaml +- operator-service-account-rbac.yaml +- postgres-operator.yaml