Skip to content

Commit

Permalink
fix helm chart (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: san-zrl <san@zurich.ibm.com>
  • Loading branch information
san-zrl authored Oct 16, 2024
1 parent 840cd63 commit d98668d
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ make production
> [!NOTE]
> By default, the service can be accessed at http://localhost:8001
Deploy using the helm chart to a kubernetes environment.
Deploy using the helm chart to a kubernetes environment. Pass the domain suffix and the cbomkit database creds via helm parameters.
```shell
# clone the repository
git clone https://github.com/IBM/cbomkit
# deploy using helm
helm install cbomkit
--set common.clusterDomain={CLUSTER_DOMAIN}
--set postgresql.auth.username={POSTGRES_USER}
--set postgresql.auth.password={POSTGRES_PASSWORD}
./chart
Expand Down
6 changes: 3 additions & 3 deletions chart/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 15.5.16
digest: sha256:1af1ac920f4a095910961c40ce5045afd4fdc94aa0cc3b65593bffe31dadf6c5
generated: "2024-07-12T00:09:22.986163523Z"
version: 15.5.38
digest: sha256:40258817c36e0e257155ba3d6e620027f7b1eb2bad0ab083c9a20f9984fc4317
generated: "2024-10-04T15:23:04.860835+02:00"
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ appVersion: "1.16.0"

dependencies:
- name: postgresql
version: "16.4.0"
version: "15.5.38"
repository: https://charts.bitnami.com/bitnami
4 changes: 2 additions & 2 deletions chart/templates/cbomkit-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
value: jdbc:postgresql://{{ .Values.postgresql.fullnameOverride }}:5432/{{ .Values.postgresql.auth.database }}
- name: CBOMKIT_PORT
value: "8080"
- name: CBOMKITt_DB_USERNAME
- name: CBOMKIT_DB_USERNAME
valueFrom:
secretKeyRef:
key: username
Expand Down Expand Up @@ -84,4 +84,4 @@ spec:
terminationGracePeriodSeconds: 30
volumes:
- name: cbomkit-volume
emptyDir: {}
emptyDir: {}
18 changes: 18 additions & 0 deletions chart/templates/cbomkit-frontend-route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
description: Route for cbomkit-frontend.
name: {{ .Values.frontend.name }}
labels:
app: {{ .Values.frontend.name }}
resource: {{ .Values.frontend.name }}
spec:
port:
targetPort: 8000-tcp
tls:
termination: edge
to:
kind: Service
name: {{ .Values.frontend.name }}
wildcardPolicy: None
18 changes: 18 additions & 0 deletions chart/templates/cbomkit-route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: route.openshift.io/v1
kind: Route
metadata:
annotations:
description: Route for cbomkit backend.
name: {{ .Values.backend.name }}
labels:
app: {{ .Values.backend.name }}
resource: {{ .Values.backend.name }}
spec:
port:
targetPort: 8080-tcp
tls:
termination: edge
to:
kind: Service
name: {{ .Values.backend.name }}
wildcardPolicy: None

0 comments on commit d98668d

Please sign in to comment.