Skip to content

Commit

Permalink
fix: missing logs and longer healthcheck period
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Dec 27, 2023
1 parent 6252749 commit 5ce2d87
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 8 deletions.
2 changes: 1 addition & 1 deletion App/Config/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Kestrel:
Url: http://+:9001
Logging:
LogLevel:
Default: None
Default: Information
Console:
LogLevel:
Default: Information
Expand Down
2 changes: 1 addition & 1 deletion config/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type: local
# fast mode
# 1. does not start the cluster, automatically assumes that your cluster already created
# 2. does not clean up resources. This makes your future starts faster
fast: false
fast: true

# whether to start local cluster. If false, will connect to current context
startCluster: true
Expand Down
2 changes: 1 addition & 1 deletion infra/api_chart/app/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Kestrel:
Url: http://+:9001
Logging:
LogLevel:
Default: None
Default: Information
Console:
LogLevel:
Default: Information
Expand Down
2 changes: 1 addition & 1 deletion infra/migration_chart/app/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Kestrel:
Url: http://+:9001
Logging:
LogLevel:
Default: None
Default: Information
Console:
LogLevel:
Default: Information
Expand Down
7 changes: 5 additions & 2 deletions infra/root_chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Root Chart to a single Service
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| api.affinity | object | `{}` | |
| api.annotations."argocd.argoproj.io/hook" | string | `"Sync"` | |
| api.annotations."argocd.argoproj.io/sync-wave" | string | `"4"` | |
| api.annotations.drop_log | string | `"true"` | |
| api.appSettings.App.Mode | string | `"Server"` | |
Expand All @@ -39,12 +40,14 @@ Root Chart to a single Service
| api.ingress.tls[0].secretName | string | `"sample"` | |
| api.livenessProbe.httpGet.path | string | `"/"` | |
| api.livenessProbe.httpGet.port | string | `"http"` | |
| api.livenessProbe.periodSeconds | int | `30` | |
| api.nameOverride | string | `"api"` | |
| api.nodeSelector | object | `{}` | |
| api.podAnnotations | object | `{}` | |
| api.podSecurityContext | object | `{}` | |
| api.readinessProbe.httpGet.path | string | `"/"` | |
| api.readinessProbe.httpGet.port | string | `"http"` | |
| api.readinessProbe.periodSeconds | int | `30` | |
| api.replicaCount | int | `1` | |
| api.resources.limits.cpu | string | `"1"` | |
| api.resources.limits.memory | string | `"1Gi"` | |
Expand All @@ -66,7 +69,7 @@ Root Chart to a single Service
| api.topologySpreadConstraints | object | `{}` | |
| bromine.annotations."argocd.argoproj.io/sync-wave" | string | `"1"` | |
| bromine.enable | bool | `false` | |
| bromine.rootSecret | object | `{"ref":"SULFONE_ZINC"}` | Secret of Secrets reference |
| bromine.rootSecret | object | `{"name":"sulfone-zinc-doppler","ref":"SULFONE_ZINC"}` | Secret of Secrets reference |
| bromine.rootSecret.ref | string | `"SULFONE_ZINC"` | DOPPLER Token Reference |
| bromine.storeName | string | `"sulfone-zinc"` | Store name to create |
| maindb.auth.database | string | `"sulfone-zinc"` | |
Expand All @@ -75,7 +78,7 @@ Root Chart to a single Service
| maindb.nameOverride | string | `"main-database"` | |
| maindb.primary.persistence.enabled | bool | `false` | |
| migration.affinity | object | `{}` | |
| migration.annotations."argocd.argoproj.io/hook-delete-policy" | string | `"HookSucceeded"` | |
| migration.annotations."argocd.argoproj.io/hook" | string | `"Sync"` | |
| migration.annotations."argocd.argoproj.io/sync-wave" | string | `"3"` | |
| migration.annotations.drop_log | string | `"true"` | |
| migration.appSettings.App.Mode | string | `"Migration"` | |
Expand Down
6 changes: 6 additions & 0 deletions infra/root_chart/values.pichu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ xSecurityContext: &migrateSecurityContext
api:
enabled: true
envFromSecret: *target

fullnameOverride: "zinc-api"

serviceTree:
landscape: *landscape
image:
Expand Down Expand Up @@ -70,6 +73,9 @@ api:

migration:
enabled: true

fullnameOverride: "zinc-migration"

envFromSecret: *target
securityContext: *migrateSecurityContext
podSecurityContext: *podSecurityContext
Expand Down
5 changes: 5 additions & 0 deletions infra/root_chart/values.pikachu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ xSecurityContext: &migrateSecurityContext
api:
enabled: true
envFromSecret: *target

fullnameOverride: "zinc-api"
serviceTree:
landscape: *landscape
image:
Expand Down Expand Up @@ -72,6 +74,9 @@ api:

migration:
enabled: true

fullnameOverride: "zinc-migration"

envFromSecret: *target
securityContext: *migrateSecurityContext
podSecurityContext: *podSecurityContext
Expand Down
4 changes: 4 additions & 0 deletions infra/root_chart/values.raichu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ xSecurityContext: &migrateSecurityContext
- ALL
api:
enabled: true

fullnameOverride: "zinc-api"
envFromSecret: *target
serviceTree:
landscape: *landscape
Expand Down Expand Up @@ -80,6 +82,8 @@ api:

migration:
enabled: true

fullnameOverride: "zinc-migration"
envFromSecret: *target
securityContext: *migrateSecurityContext
podSecurityContext: *podSecurityContext
Expand Down
9 changes: 7 additions & 2 deletions infra/root_chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ bromine:
# -- DOPPLER Token Reference
ref: "SULFONE_ZINC"

name: "sulfone-zinc-doppler"

api:
enabled: true
annotations:
argocd.argoproj.io/sync-wave: "4"
argocd.argoproj.io/hook: Sync
drop_log: "true"
nameOverride: "api"
fullnameOverride: ""
Expand Down Expand Up @@ -83,11 +86,13 @@ api:

autoscaling: {}
readinessProbe:
periodSeconds: 30
httpGet:
path: /
port: http

livenessProbe:
periodSeconds: 30
httpGet:
path: /
port: http
Expand All @@ -103,13 +108,13 @@ api:
migration:
annotations:
argocd.argoproj.io/sync-wave: "3"
argocd.argoproj.io/hook-delete-policy: HookSucceeded
argocd.argoproj.io/hook: Sync
drop_log: "true"

enabled: false
nameOverride: "migration"
fullnameOverride: ""

fullnameOverride: ""
serviceTree:
<<: *serviceTree
module: migration
Expand Down

0 comments on commit 5ce2d87

Please sign in to comment.