Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Add helm chart for apollo router #389

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
helm repo add keda https://kedacore.github.io/charts
helm repo add opa https://open-policy-agent.github.io/kube-mgmt/charts
helm repo add prometheus https://prometheus-community.github.io/helm-charts
helm repo add bitnami https://charts.bitnami.com/bitnami

- name: Lint
run: >
Expand Down
10 changes: 8 additions & 2 deletions charts/xchemlab/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,23 @@ dependencies:
- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
version: 25.0.0
- name: postgresql-ha
repository: https://charts.bitnami.com/bitnami
version: 11.5.1
- name: thanos
repository: oci://docker.io/bitnamicharts
version: 12.11.0
- name: rabbitmq
repository: oci://docker.io/bitnamicharts
version: 12.0.7
- name: router
repository: oci://ghcr.io/apollographql/helm-charts
version: 1.41.1
- name: oauth2-proxy
repository: oci://registry-1.docker.io/bitnamicharts
version: 3.7.4
- name: oauth2-proxy
repository: oci://registry-1.docker.io/bitnamicharts
version: 3.7.4
digest: sha256:2738fe6bf788e283ebdd64f5bbf8c0094b9e7271b40fe693b661117d4bed9eb9
generated: "2024-03-06T11:37:40.525320982Z"
digest: sha256:392add4e5d0d1eadb60a80376f5422e17b58638eb604042e90381aa8a9ce7f71
generated: "2024-03-13T12:10:55.03395991Z"
10 changes: 9 additions & 1 deletion charts/xchemlab/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.0
version: 0.11.0

dependencies:
- name: chimp-chomp
Expand Down Expand Up @@ -43,6 +43,10 @@ dependencies:
repository: https://prometheus-community.github.io/helm-charts
version: 25.0.0
condition: prometheus.enabled
- name: postgresql-ha
repository: https://charts.bitnami.com/bitnami
version: 11.5.1
condition: postgresql-ha.enabled
- name: thanos
repository: oci://docker.io/bitnamicharts
version: 12.11.0
Expand All @@ -51,6 +55,10 @@ dependencies:
repository: oci://docker.io/bitnamicharts
version: 12.0.7
condition: rabbitmq.enabled
- name: router
repository: oci://ghcr.io/apollographql/helm-charts
version: 1.41.1
condition: apollo-router.enabled
- alias: oauth2-proxy-thanos
name: oauth2-proxy
repository: oci://registry-1.docker.io/bitnamicharts
Expand Down
14 changes: 14 additions & 0 deletions charts/xchemlab/templates/application-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: application-passwords
namespace: xchemlab
spec:
encryptedData:
passwords: AgCALIOXYoCZlI3qJHUwxAGlCF5T2RqhzRGJ6WILt/feRkKdwkicFpCpdjbkLoZMutgIFbmSZtCxUopvocUTVVvy08thDwy/Vuc/tpVhGuKqGbhf7YB8Kohy4lXKfNQjuyIlIlrKlp2EvweNDC2czBwkKP2IKNcBjwO66CyE8JNUuva15UdVA+PrEeaQ+9t5bQclGafYoPnAfh/JBDVdUoHu5UESDycyXTl6IA6jXhgckXuN4mRfrkdXxJgpob2DQCmGDj8d6QBhsNjhYaJJVkK3wr3hbdHvsZGzRMsrZEeNgYGKjBkAyRxgBQqWJITA25yQIi+oWiCW0plkQZw0zEzIDH5ZP85gWCTksY/kBbSW0oaSfdIOj/6X/WpEhfjowEX99pyr6zeYCC+JvXMx/PfkkwbVdevWC4IydXXUi+kctPgBk0Cww12+vGk2u22u0tHX6QpyWcmvETlHHC13oJta/K6CdHbRtyBpnyVORwMYuIuc+gh3BSAzIlYekzWp+/998/0uywg1PUBR7TbpbZyyEFZb2ShYaqYajV7YeYP72wAG3NjvIRQAa4cyk5iXVms/hHKED5IqveeJf88ksrvdmeTqoSdTlxCaixDgyhUzaLIv6ZPv9olFS6k5IyWZ20bwjm4cPGlq5MHs6buDIRZYWs2pXIGuhA8PWByaptWtCJQWB2jOfCzUdSv0+gYjIAJOe525moLuBDUbT9YpDmH3
usernames: AgCQwvol+C036DNxeVfjDDtfr1LQcl+CI9R/ZjOJ/5Ctx5yawz3Xnv8AfIpvDR79+wFLkXwwng2vY3rSw462Cjj/X5FxHqzqkp9S2bNV8SlG5cb8X9wYoFrqvOq5IPDJv+HgwIdAv15kgBnT1eBr23FGovBa4TasfKQIF63DD2xx4xKsUllkXr9MrdmOz/dgtyJxwPLDE2DtTVD71IXvFucLavr6oFXCKIJ12NR556hKE1xdZZgKaNnJeLil33KA5P1MiQ8tXrco1aPbUqZ5JB2FPF3wNxW6Wmw/AeptT3QJj6QObYdSEM4/HGB+zxHEvRAXrk+9CwFZ+w57fODnDffghxrPkReFmWKLOiXBPB8YqVz5MPK8fpPMPVrFcG4YPy03LHJtboaTs1Slk0O+HxzQeeA0BOrl6Uy9TmNxZIOt202jbrkGhtLhJJnAZFfr4vrhdmALF7+aAAkDeVTF0nycCnnmo2ZHGrvlIK02PaphhGw6iuLR+8/efZNl8IErVIehwCH9+u0sIik7+FwPYNlpYeRcNmsQoJmJuy1avyowcDnHInf57s+ZlAxKbbjUX/EIO5ebuoT45kLV5MpeDIQbYS77fg3SRdaMO3OnMEv2WwYc6Tg+N8q89UAk6wqqu0VEVfng39hg/tZQmKb9O4oCosFSdobFC9I3Kf49Qh8/N4FnfaPYRWsjf6zVCVwz+hGbkmqhadv7gA==
template:
metadata:
creationTimestamp: null
name: application-passwords
namespace: xchemlab
13 changes: 13 additions & 0 deletions charts/xchemlab/templates/pgpool-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: pgpool-passwords
namespace: xchemlab
spec:
encryptedData:
admin-password: AgA+DTJgyISrh2I9MCWM8k6vR9aO61FIIxRWJ82OyNnA1yHdFgQcKsnSbEVJaYBPTerUyJUC7OuKiTs/IRlu6jAtJabiknoS0XVnTHp0RF42baMPBvR0d6pXBt+d9EFFv9vXKG5Ko6cd1fQkuI38i8qsrmBq0y8Z2vlvdq+hG9p/zFKLXON622NQWkLvc8d8y58nl+q1gOco/I+lP4E+2woHkhnsPHlh3+FhpaZXEaZRbSKkdB79rzeumlUrjwugWBxovz/8J4LjMtMv5Xt4LqNo2AAl1TRBxBG8RCaX59vRU4WFZf3gEsnCXBDWBwQTiIr/kt9L43hXqZK/FLUSPLcJruxrCdPRpe2dqvU1GfeDneg1aCgV6msc73K2zIOTVbACsb/glUwHRgr+C8c12oD1p/T+mL9E/dV37kRLHxOunmfcrsnpmWHtJB5y955HwBzw8MYiB7F7EFd78+8D7gQXvCdffRtELnhN9ynewCQd0P8DzK97JfJUIbB7+Wl6C8u9A1v0i6Tw7ofRNROuykVyNtK3jrGNeCxRH1cgowRVK6DlOBuZvEhAvE6/f5nLgF4FtLPYZkECqPMprpnSgLEj1ogNOq/+WpnXCfavX+tmrqBLmqtJfBVcl9LBjBgXiqsMXQ0zw2QSEzAaJHymc3Kur2BLnkHQ035UMrZ+CgExjFLSHqlo34VMQzytmuMy2dW0fFPSQMig1fduEJXJMzdcb+GTslJNjJM=
template:
metadata:
creationTimestamp: null
name: pgpool-passwords
namespace: xchemlab
14 changes: 14 additions & 0 deletions charts/xchemlab/templates/postgres-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: postgres-passwords
namespace: xchemlab
spec:
encryptedData:
password: AgBsk50Y8gy4qdfpauAD7opsqUSQnDnooUn7ADb/O7laUW3TVg1NSRNmmP2GUV462DGLAf3mg6wreTP+MatZKFvyfOo3Cn526BCdIBD98DikGKQMatzmQL6K7Ou5e7UnqVPM3nFAP5ggsb7+VKkQ/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puuhWvgnNPdfwEvcw6dKBmweQLiM5aybnFB1DdKkWHaDOJEn0iFhJttKHYRUNeLrdeW2ua4F48qnnf9tFAFafGU9tPsEZi2CJDIhnrB4dEz8e1OvZy9j5gTKWmeAbTZUWbtAOd7QuARxkdJl0bZCZQgF0gvEAoR0KTohzjImcgDQ0lDhjwJ2mo1Ic3oPJO2QwEi05QhZ2o8F5TU95VFknQiKzQuEusZo/a8WMhVMcisS8XiShNgQad13yUcLL64HYNuXEznl1qL7aE=
template:
metadata:
creationTimestamp: null
name: postgres-passwords
namespace: xchemlab
12 changes: 12 additions & 0 deletions charts/xchemlab/templates/router-apikey-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: router-apikey
namespace: xchemlab
spec:
encryptedData:
managedFederationApiKey: AgC16KXRwfTLl+eBBMOwQzW3RWMvJOVe9nNUYivBKgNj85hnOp9RKkwOOwIO0lGHsxgL+X4Mo6n/xXx9BtPijlRvAPTUULwWeKgquc+NM8xeJYcgawRO4Yug8tpA2oQurGNKYWyf6L1aRWEFUNPsohlBAS7cRUuNldRcmOa98z1+IOde/Vj8bUPjz5hyLPb70T40dF04fJkIqmGit3BTh/niNk7vBfpltgcAI7PCLGj/H8D8+IBB1FiEx8jOKNf9QPzCI+dPi1jiSJ3WVZhF0zaCHDvzO9PfSVw9I2Ybvi3/Fqw/E7SZoLKysi4tUBk5UUPNloYUUyNAxemziDlNHDGL4c+kX6wpGtsmuyHWJBcmRMY+7f7NoydFzLOLXFl97BuFn3LdIWaUX0jnJgfeRB9Z7M4ujYqrBpnDSoQFyOh8p1arQQRzvfd7HWf6rPwy8M9x1HR3TWaNOeHkZ6iEfFj6SVHOuEqZ6TmeHbX7q4D+3QfCbg2fKhn+8DWnkE42cMX10+afscqLFLjbuOBqQVvspUooGS5z/aeee/aovCgXmxaZab2Pml+4x9iVpIOZgn9inJ6ny18sQ/EczFMg8AcvAitiBPLk5jB4xXSaFDaElXsWnLo9aA94M/1ifQ1q1ENET11v3mB50QqHjcjIl8rR86KugJJhapW1qTGoAMuHzqgzCr7BTZak85k/gp5gVlIAUBXZfjO2QSu9E6yApKOTaM+4FPECNlAkshtgZ0lwxIJH/c15LOQ=
template:
metadata:
name: router-apikey
namespace: xchemlab
98 changes: 78 additions & 20 deletions charts/xchemlab/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,44 @@ chimp-chomp:
compound-library:
enabled: true
database:
host: postgres://postgresql-ha-pgpool
user: postgres
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local
user: xchemlab
password:
secretName: postgres-passwords
secretKey: password
secretName: application-passwords
secretKey: passwords
opa:
url: http://{{ .Release.Name }}-opa-kube-mgmt:8181

compound-soaking:
enabled: true
database:
host: postgres://postgresql-ha-pgpool
user: postgres
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local
user: xchemlab
password:
secretName: postgres-passwords
secretKey: password
secretName: application-passwords
secretKey: passwords
opa:
url: http://{{ .Release.Name }}-opa-kube-mgmt:8181

crystal-library:
enabled: true
database:
host: postgres://postgresql-ha-pgpool
user: postgres
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local
user: xchemlab
password:
secretName: postgres-passwords
secretKey: password
secretName: application-passwords
secretKey: passwords
opa:
url: http://{{ .Release.Name }}-opa-kube-mgmt:8181

pin-packing:
enabled: true
database:
host: postgres://postgresql-ha-pgpool
user: postgres
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local
user: xchemlab
password:
secretName: postgres-passwords
secretKey: password
secretName: application-passwords
secretKey: passwords
opa:
url: http://{{ .Release.Name }}-opa-kube-mgmt:8181

Expand All @@ -77,11 +77,11 @@ targeting:
secretName: targeting-s3-secret
secretKey: secret-access-key
database:
host: postgres://postgresql-ha-pgpool
user: postgres
host: postgres://xchemlab-postgresql-ha-pgpool.xchemlab.svc.cluster.local
user: xchemlab
password:
secretName: postgres-passwords
secretKey: password
secretName: application-passwords
secretKey: passwords
opa:
url: http://{{ .Release.Name }}-opa-kube-mgmt:8181

Expand Down Expand Up @@ -156,6 +156,64 @@ opa-kube-mgmt:
rbac:
create: false

postgresql-ha:
postgresql:
existingSecret: postgres-passwords
podAntiAffinityPreset: hard
resources:
requests:
cpu: 500m
memory: 512Mi
limits:
cpu: 2
memory: 2Gi
initdbScripts:
db-init.sql: |
SELECT 'CREATE DATABASE compound_library' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'compound_library')\gexec;
SELECT 'CREATE DATABASE compound_soaking' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'compound_soaking')\gexec;
SELECT 'CREATE DATABASE crystal_library' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'crystal_library')\gexec;
SELECT 'CREATE DATABASE targeting' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'targeting')\gexec;
SELECT 'CREATE DATABASE pin_packing' OWNER xchemlab WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'pin_packing')\gexec;

pgpool:
existingSecret: pgpool-passwords
customUsersSecret: application-passwords
resources:
requests:
cpu: 500m
memory: 256Mi
limits:
cpu: 1
memory: 512Mi

persistence:
storageClass: db-nvme-storage
size: 50Gi

router:
enabled: true
managedFederation:
existingSecret: router-apikey
graphRef: xchemlab@current
ingress:
enabled: true
hosts:
- host: xchemlab.diamond.ac.uk
paths:
- path: /
pathType: Prefix
router:
args:
- --hot-reload
- --dev
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 1
memory: 128Mi

prometheus:
enabled: true

Expand Down
Loading