Skip to content

Commit

Permalink
add decapod-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
robertchoi80 committed Jul 12, 2021
1 parent d9cce2b commit d3a8f2d
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 0 deletions.
5 changes: 5 additions & 0 deletions decapod-controller/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resources:
- resources.yaml

transformers:
- site-values.yaml
91 changes: 91 additions & 0 deletions decapod-controller/base/resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
labels:
name: prepare-decapod-controller
name: prepare-decapod-controller
spec:
helmVersion: v3
chart:
type: helmrepo
repository: https://openinfradev.github.io/helm-repo
name: prepare-decopod-controller
version: 0.1.0
releaseName: prepare-decopod-controller
targetNamespace: argo
values:
postgres:
secretName: argo-postgres-config
username: postgres
password: tacopassword
wait: true
---
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
labels:
name: postgresql
name: postgresql
spec:
helmVersion: v3
chart:
type: helmrepo
repository: https://charts.bitnami.com/bitnami
name: postgresql
version: 10.5.2
releaseName: postgresql
targetNamespace: argo
values:
# This secret name should be same as the one created by prepare-decapod-controller chart
existingSecret: argo-postgres-config
postgresqlConfiguration: {"listen_addresses": '*'}
##########################################################################
# NOTE: This doesn't seem to be necessary at init time. #
# Just leave it in case it's necessary for connection from argo-wf later #
##########################################################################
#pgHbaConfiguration: |-
# host all all 127.0.0.1/32 password
# host all all 10.233.0.1/16 password
postgresqlDatabase: postgres
persistence:
storageClass: "rbd"
size: 10Gi
wait: true
---
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
labels:
name: argo-workflows
name: argo-workflows
spec:
helmVersion: v3
chart:
type: helmrepo
repository: https://argoproj.github.io/argo-helm
name: argo-workflows
version: 0.2.6
releaseName: argo-workflows
targetNamespace: argo
values:
server:
serviceType: NodePort
controller:
persistence:
nodeStatusOffLoad: true
archive: true
postgresql:
host: postgresql.argo # Set this to postgresql pod's service name
port: 5432
database: postgres
tableName: argo_workflows
# This secret name should be same as the one created by prepare-decapod-controller chart
# In addition, the secrets must be in the same namespace of the controller
userNameSecret:
name: argo-postgres-config
key: postgresql-username
passwordSecret:
name: argo-postgres-config
key: postgresql-password
wait: true
21 changes: 21 additions & 0 deletions decapod-controller/base/site-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: openinfradev.github.com/v1
kind: HelmValuesTransformer
metadata:
name: site

charts:
- name: prepare-decapod-controller
override:
postgres.username: postgres
postgres.password: tacopassword

- name: postgresql
override:
persistence.storageClass: rbd
persistence.size: 10Gi

- name: argo-workflows
override:
controller.persistence.nodeStatusOffLoad: true
controller.persistence.archive: true
controller.persistence.postgresql.host: postgresql.argo

0 comments on commit d3a8f2d

Please sign in to comment.