Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split minio into own pkg & cleanup/update postgres/minio examples #667

Merged
merged 8 commits into from
Aug 23, 2022
6 changes: 6 additions & 0 deletions examples/minio/operator-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
operator:
resources:
requests:
cpu: 200m
memory: 256Mi
ephemeral-storage: 500Mi
26 changes: 26 additions & 0 deletions examples/minio/tenant-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
tenant:
pools:
## Servers specifies the number of MinIO Tenant Pods / Servers in this pool.
## For standalone mode, supply 1. For distributed mode, supply 4 or more.
## Note that the operator does not support upgrading from standalone to distributed mode.
- servers: 1
## volumesPerServer specifies the number of volumes attached per MinIO Tenant Pod / Server.
volumesPerServer: 4
## size specifies the capacity per volume
size: 1Gi
## storageClass specifies the storage class name to be used for this pool
storageClassName: "###ZARF_STORAGE_CLASS###"
## Configure resource requests and limits for MinIO containers
resources:
requests:
cpu: "250m"
memory: "1Gi"
## LogSearch API setup for MinIO Tenant.
log:
## Postgres setup for LogSearch API
db:
volumeClaimTemplate:
spec:
storageClassName: "###ZARF_STORAGE_CLASS###"
prometheus:
storageClassName: "###ZARF_STORAGE_CLASS###"
17 changes: 17 additions & 0 deletions examples/minio/zarf-connect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: minio-console-zarf-connect
namespace: minio-operator
annotations:
zarf.dev/connect-description: "Launch the minio console, to get a JWT run:\n\n kubectl -n minio-operator get secret $(kubectl -n minio-operator get serviceaccount console-sa -o jsonpath=\"{.secrets[0].name}\") -o jsonpath=\"{.data.token}\" | base64 --decode\n"
labels:
zarf.dev/connect-name: minio
spec:
selector:
app.kubernetes.io/instance: zarf-minio-operator-console
ports:
- name: http-console
port: 9090
protocol: TCP
targetPort: 9090
38 changes: 38 additions & 0 deletions examples/minio/zarf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
kind: ZarfPackageConfig
metadata:
name: minio
description: "Deploy minio"
version: 4.3.7
url: https://operator.min.io/
image: https://raw.githubusercontent.com/minio/minio/master/.github/logo.svg?sanitize=true

components:
- name: minio
required: true
charts:
- name: operator
releaseName: minio-operator
url: https://operator.min.io/
version: 4.4.28
namespace: minio-operator
valuesFiles:
- operator-values.yaml
- name: tenant
releaseName: minio-tenant
url: https://operator.min.io/
version: 4.4.28
namespace: minio-operator
valuesFiles:
- tenant-values.yaml
manifests:
- name: zarf-connect
files:
- zarf-connect.yaml
images:
- minio/console:v0.19.4
- minio/operator:v4.4.28
- quay.io/minio/minio:RELEASE.2022-05-26T05-48-41Z
- library/postgres:13
- busybox:1.33.1
- alpine
- quay.io/prometheus/prometheus:latest

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ spec:
teamId: "acid"
postgresql:
version: "13"
numberOfInstances: 3
enableConnectionPooler: true
numberOfInstances: 2
volume:
size: "2Gi"
users:
Expand All @@ -24,5 +23,5 @@ spec:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi
cpu: 1000m
memory: 1Gi
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ resources:
cpu: "100m"
memory: "100Mi"
limits:
cpu: "200m"
memory: "200Mi"
cpu: "500m"
memory: "500Mi"
envs:
# IMPORTANT: While operator chart and UI chart are idendependent, this is the interface between
# UI and operator API. Insert the service name of the operator API here!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,17 @@ configLogicalBackup:
configKubernetes:
pod_environment_configmap: "postgres-operator/postgres-pod-config"
configConnectionPooler:
# connection_pooler_image: "registry1.dso.mil/.../pgbouncer:master-18"
connection_pooler_default_cpu_request: "100m"
connection_pooler_default_cpu_limit: "500m"
connection_pooler_default_cpu_limit: "1000m"
connection_pooler_default_memory_request: "100Mi"
connection_pooler_default_memory_limit: "100Mi"
connection_pooler_default_memory_limit: "500Mi"
resources:
requests:
cpu: "100m"
memory: "250Mi"
limits:
cpu: "500m"
memory: "500Mi"
cpu: "1000m"
memory: "1Gi"
securityContext:
runAsUser: 1000
runAsNonRoot: true
Expand Down
39 changes: 0 additions & 39 deletions examples/postgres-operator/values/minio-instance.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions examples/postgres-operator/values/minio-operator.yaml

This file was deleted.

75 changes: 33 additions & 42 deletions examples/postgres-operator/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,54 @@ kind: ZarfPackageConfig
metadata:
name: postgres-operator-demo
description: "Demo of prod-like Postgres database(s) on an edge cluster"
# Big Bang / Iron Bank are only amd64
architecture: amd64

components:
- name: baseline
- name: minio
required: true
import:
path: ../minio

manifests:
- name: postgres-example-config
files:
- manifests/patch-svc-accounts.yaml
- manifests/minio-instance-zarf-connect.yaml
- manifests/pgadmin-zarf-connect.yaml
- manifests/postgres-cluster.yaml
- manifests/postgres-operator.yaml
- manifests/postgres-operator-ui-zarf-connect.yaml
- name: postgres
required: true
charts:
- name: postgres-operator
url: https://opensource.zalando.com/postgres-operator/charts/postgres-operator
version: 1.7.0
version: 1.8.2
namespace: postgres-operator
valuesFiles:
- values/postgres-operator.yaml
- postgres/operator-values.yaml
- name: postgres-operator-ui
url: https://opensource.zalando.com/postgres-operator/charts/postgres-operator-ui
version: 1.7.0
version: 1.8.2
namespace: postgres-operator
valuesFiles:
- values/postgres-operator-ui.yaml
- postgres/operator-ui-values.yaml
manifests:
- name: postgres-example-config
files:
- postgres/patch-svc-accounts.yaml
- postgres/db-cluster.yaml
- postgres/operator.yaml
- postgres/zarf-connect.yaml
images:
- registry.opensource.zalan.do/acid/postgres-operator-ui:v1.8.2
- registry.opensource.zalan.do/acid/postgres-operator:v1.8.2
- registry.opensource.zalan.do/acid/logical-backup:v1.8.0
- registry.opensource.zalan.do/acid/logical-backup:v1.8.2
- registry.opensource.zalan.do/acid/pgbouncer:master-22
- registry.opensource.zalan.do/acid/spilo-14:2.1-p6

- name: pgadmin
charts:
- name: pgadmin4
url: https://helm.runix.net
version: 1.7.2
version: 1.11.0
namespace: postgres-operator
valuesFiles:
- values/pgadmin.yaml
- name: minio-operator
url: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio-operator.git
version: 4.2.3-bb.1
namespace: minio-operator
gitPath: chart
valuesFiles:
- values/minio-operator.yaml
- name: minio-instance
url: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio.git
version: 4.2.3-bb.1
namespace: minio-operator
gitPath: chart
valuesFiles:
- values/minio-instance.yaml

- pgadmin/values.yaml
manifests:
- name: zarf-connect
jeff-mccoy marked this conversation as resolved.
Show resolved Hide resolved
files:
- pgadmin/zarf-connect.yaml
images:
- registry.opensource.zalan.do/acid/postgres-operator:v1.7.0
- registry.opensource.zalan.do/acid/spilo-13:2.1-p1
- registry.opensource.zalan.do/acid/logical-backup:v1.7.0
- registry.opensource.zalan.do/acid/pgbouncer:master-18
- registry.opensource.zalan.do/acid/postgres-operator-ui:v1.7.0
- docker.io/dpage/pgadmin4:5.5
- docker.io/rancher/pause:3.1
- registry1.dso.mil/ironbank/opensource/minio/operator:v4.2.3
- registry1.dso.mil/ironbank/opensource/minio/minio:RELEASE.2021-08-31T05-46-54Z
- docker.io/dpage/pgadmin4:6.10