Skip to content

Commit

Permalink
add ingress to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsagtani97 committed Dec 6, 2022
1 parent 385555d commit a09384d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 12 deletions.
2 changes: 1 addition & 1 deletion helm_chart/roman/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
app: roman
name: roman
labels:
app: roman
spec:
Expand Down
25 changes: 25 additions & 0 deletions helm_chart/roman/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: roman
labels:
app: roman
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/enable-cors: "true"
# nginx.ingress.kubernetes.io/cors-allow-origin: "{{ required "Must specify allowOrigin" .Values.allowOrigin }}"
spec:
tls:
- hosts:
- "{{ required "Must specify host" .Values.roman.host }}"
# secretName: "{{ include "roman.fullname" . }}"
rules:
- host: "{{ .Values.roman.host }}"
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: roman
servicePort: 80

2 changes: 1 addition & 1 deletion helm_chart/roman/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
app: roman
name: roman
labels:
app: roman
spec:
Expand Down
21 changes: 11 additions & 10 deletions helm_chart/roman/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,30 @@


roman:
replicaCount: 2
replicaCount: 1
image:
repository: quay.io/wire/roman
# Overrides the image tag whose default is the chart appVersion.
tag: staging
serviceToken: # Provide the service recording bot service token.
serviceToken: # Provide the roman service token.
# randomly generated for local testing
appKey: b53181dd-6400-4960-8988-f775545588ff-0949f503-421e-4588-a2c5-f64fd9c180fd
# random base 64 string used as certificate, replace with real one
pubKeyBase64: bm90aGluZyBhbmQgdGhhdAo=
publicURL: # Link to the subdomain pointing to recordingbot.
dbURL: jdbc:postgresql://data-postgres:5432/recording # Link to your Postgres server.
dbUser: recording # Provide your Postgres DB username.
dbPassword: recording # Provide your Postgres DB password.
publicURL: # Link to the subdomain pointing to roman.
dbURL: jdbc:postgresql://data-postgres:5432/romanservice # Link to your Postgres server.
dbUser: romanservice # Provide your Postgres DB username.
dbPassword: romanservice # Provide your Postgres DB password.
host:

postgresql:
enabled: false
fullnameOverride: data-postgres
auth:
postgresPassword: recording
username: recording
password: recording
database: recording
postgresPassword: romanservice
username: romanservice
password: romanservice
database: romanservice
primary:
persistence:
existingClaim: postgresql-pv-claim
Expand Down

0 comments on commit a09384d

Please sign in to comment.