This repository is for the helm charts of the Klaytn Finder Backend. For the overall architecture of the finder, please refer to the Main Repo.
The code is provided as-is with no warranties.
Helm must be installed to use the charts. Please refer to Helm’s documentation to get started.
Once Helm is set up properly, add the repo as follows:
helm repo add klaytn-finder https://klaytn.github.io/finder-helm-chart/
create namepsace finder
kubectl create namespace finder
parameter | value |
---|---|
global.nameOverride | override defulat name finder |
global.network | baobab or cypress |
global.profile | stag , prod |
global.projectId | google project id |
global.namespace | create service aacount with the namespace |
global.serviceAccountName | service account name |
Each service has an environment parameter SPRING_PROFILES_ACTIVE
. Changing this parameter changes the services that are run, so please refer to the table below and fill it out.
serivce | profile | network | value |
---|---|---|---|
api | prod | baobab | prodBaobab,api |
api | prod | cypress | prodCypress,api |
api | stage | baobab | stagBaobab,all,devAuthToken |
api | stage | cypress | stagCypress,all,devAuthToken |
oapi | prod | baobab | prodBaobab |
oapi | prod | cypress | prodCypress |
oapi | stage | baobab | stagBaobab |
oapi | stage | cypress | stagCypress |
papi | prod | baobab | prodBaobab,papi |
papi | prod | cypress | prodCypress,papi |
worker | prod |
||
compiler | prod |
create my-values.yaml file
global:
nameOverride: finder
network: baobab
profile: prod
namespace: finder
projectId: klaytn-finder
serviceAccountName: sa-finder-service
api:
front:
images:
repository: asia-northeast3-docker.pkg.dev/klaytn-finder/finder-prod/finder-api
tag: public-4727becfbff481b98b3cb0c77fd0753368ad2d22
host: baobab-api.klaytnfinder.io
replicas: 1
env:
- name: SPRING_PROFILES_ACTIVE
value: prodBaobab,api
resources:
requests:
cpu: 1000m
memory: 2Gi
limits:
cpu: 1000m
memory: 2Gi
papi:
images:
ingress: #alb.ingress.kubernetes.io/group.name
repository: asia-northeast3-docker.pkg.dev/klaytn-finder/finder-prod/finder-api
tag: public-4727becfbff481b98b3cb0c77fd0753368ad2d22
host: prod-baobab-papi.klaytnfinder.io
replicas: 1
env:
- name: SPRING_PROFILES_ACTIVE
value: prodBaobab,papi
resources:
requests:
cpu: 1000m
memory: 2Gi
limits:
cpu: 1000m
memory: 2Gi
oapi:
ingress: #alb.ingress.kubernetes.io/group.name
images:
repository: asia-northeast3-docker.pkg.dev/klaytn-finder/finder-prod/finder-oapi
tag: public-06-d873c1e4b5760469a43918edd22ea17336b36db8
host: prod-baobab-oapi.klaytnfinder.io
replicas: 1
env:
- name: SPRING_PROFILES_ACTIVE
value: prodBaobab
resources:
requests:
cpu: 2000m
memory: 2Gi
limits:
cpu: 2000m
memory: 2Gi
worker:
ingress: #alb.ingress.kubernetes.io/group.name
images:
repository: asia-northeast3-docker.pkg.dev/klaytn-finder/finder-prod/finder-worker
tag: public-4727becfbff481b98b3cb0c77fd0753368ad2d22
host: worker-api.klaytnfinder.io
replicas: 1
env:
- name: SPRING_PROFILES_ACTIVE
value: prod
resources:
requests:
cpu: 1000m
memory: 2Gi
limits:
cpu: 1000m
memory: 2Gi
compiler:
ingress: #alb.ingress.kubernetes.io/group.name
images:
repository: asia-northeast3-docker.pkg.dev/klaytn-finder/finder-prod/finder-worker
tag: public-4727becfbff481b98b3cb0c77fd0753368ad2d22
host: worker-api.klaytnfinder.io
replicas: 1
env:
- name: SPRING_PROFILES_ACTIVE
value: prod
resources:
requests:
cpu: 1000m
memory: 2Gi
limits:
cpu: 1000m
memory: 2Gi
Installing with my-values.yaml file
helm install finder -n finder klaytn-finder/finder --values my-values.yaml
Your feedback is always welcome!