Skip to content

Commit

Permalink
fix: Ingress for production env.
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed May 19, 2021
1 parent db9a9ca commit a166cdb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ Seed:
refs:
- master
- alpha
- beta
- next
variables:
# Don't run when deploying in production or releasing
- $PRODUCTION
Expand Down
2 changes: 1 addition & 1 deletion .k8s/components/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const getManifests = () => {
ingress: true,
withPostgres: true,
containerPort: 3000,
subDomainPrefix: process.env.PRODUCTION ? `${subdomain}.` : `${subdomain}-`,
subDomainPrefix: process.env.PRODUCTION ? `fake-` : `${subdomain}-`,
},
deployment: {
image: getHarborImagePath({ name }),
Expand Down
4 changes: 3 additions & 1 deletion .k8s/components/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export const getManifests = () => {

const manifests = create(name, {
env,
config: { subdomain },
config: {
subdomain: process.env.PRODUCTION ? `fake-${subdomain}` : subdomain,
},
deployment: {
image: getHarborImagePath({ name }),
...podProbes,
Expand Down
1 change: 0 additions & 1 deletion .k8s/environments/prod/backend.configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ data:
NODE_ENV: production
PGSSLMODE: "require"
DOMIFA_ENV_ID: prod
SECRET: my_great_production_secret

0 comments on commit a166cdb

Please sign in to comment.