Skip to content

Commit 8ec3fa1

Browse files
jakub-romanFxKu
authored andcommitted
Kustomization (zalando#608)
Add ability to install the operator via kustomization.
1 parent d5c3a28 commit 8ec3fa1

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

docs/quickstart.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@ kubectl create -f manifests/operator-service-account-rbac.yaml # identity and p
5454
kubectl create -f manifests/postgres-operator.yaml # deployment
5555
```
5656

57-
When using kubectl 1.14 or newer the mentioned manifests could be also be
58-
bundled in one [Kustomization](https://github.com/kubernetes-sigs/kustomize)
59-
manifest.
57+
There is a [Kustomization](https://github.com/kubernetes-sigs/kustomize)
58+
manifest that [combines the mentioned resources](../manifests/kustomization.yaml) -
59+
it can be used with kubectl 1.14 or newer as easy as:
60+
61+
```bash
62+
kubectl apply -k github.com/zalando/postgres-operator/manifests
63+
```
6064

6165
For convenience, we have automated starting the operator with minikube using the
6266
`run_operator_locally` script. It applies the [`acid-minimal-cluster`](../manifests/minimal-postgres-manifest).

manifests/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- configmap.yaml
5+
- operator-service-account-rbac.yaml
6+
- postgres-operator.yaml

0 commit comments

Comments
 (0)