Skip to content

Commit

Permalink
add config for services in helm chart (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
havardelnan authored Feb 10, 2025
1 parent 957029d commit dc0c706
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
17 changes: 9 additions & 8 deletions charts/ror-api/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ data:
GIN_MODE: {{.Values.api.http.mode | quote}}
ALLOW_ORIGINS: {{.Values.api.config.allowOrigins | quote}}
USE_CORS: {{.Values.api.config.useCors | quote }}
RABBITMQ_HOST: "rabbitmq-ror.nhn-ror.svc"
MONGODB_HOST: "ror-mongodb.nhn-ror.svc"
VAULT_HOST: "ror-vault-active.nhn-ror.svc"
VAULT_PORT: "8200"
REDIS_HOST: "ror-redis-headless.nhn-ror.svc"
REDIS_PORT: "6379"
STARTUP_SLEEP_TIME: "0"
RABBITMQ_HOST: {{.Values.api.config.rabbitmq.host | quote}}
RABBITMQ_PORT: {{.Values.api.config.rabbitmq.port | quote}}
MONGODB_HOST: {{.Values.api.config.mongodb.host | quote}}
MONGODB_PORT: {{.Values.api.config.mongodb.port | quote}}
VAULT_HOST: {{.Values.api.config.vault.host | quote}}
VAULT_PORT: {{.Values.api.config.vault.port | quote}}
REDIS_HOST: {{.Values.api.config.redis.host | quote}}
REDIS_PORT: {{.Values.api.config.redis.port | quote}}
LOG_LEVEL: {{.Values.api.config.logLevel | quote}}
OIDC_PROVIDER: {{.Values.api.config.oidc.provider | quote}}
OIDC_CLIENT_ID: {{.Values.api.config.oidc.clientId | quote}}
OPENTELEMETRY_COLLECTOR_ENDPOINT: "ror-opentelemetry-collector.nhn-ror.svc:4317"
OPENTELEMETRY_COLLECTOR_ENDPOINT: {{.Values.api.config.tracing.endpoint | quote}}
ENABLE_TRACING: {{.Values.api.config.tracing.enabled | quote}}
HTTP_TIMEOUT: {{.Values.api.http.timeout | quote}}
LDAP_CERT_FOLDER: "/ldap-certs"
Expand Down
13 changes: 13 additions & 0 deletions charts/ror-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,21 @@ api:
clientId: "ror.sky.test.nhn.no"
tracing:
enabled: true
endpoint: "ror-opentelemetry-collector.nhn-ror.svc:4317"
tanzu:
tanzuAuthBaseUrl: "http://nhn-ror-ms-tanzu-auth.nhn-ror.svc:8080"
rabbitmq:
host: "rabbitmq-ror.nhn-ror.svc"
port: 5672
mongodb:
host: "ror-mongodb.nhn-ror.svc"
port: 27017
vault:
host: "ror-vault-active.nhn-ror.svc"
port: 8200
redis:
host: "ror-redis-master.nhn-ror.svc"
port: 6379
replicaCount: 3
image:
repository: ghcr.io/norskhelsenett/ror-api
Expand Down

0 comments on commit dc0c706

Please sign in to comment.