Skip to content

Commit

Permalink
fix(ci): better DNS prefixes (#73)
Browse files Browse the repository at this point in the history
* fix(ci): better DNS prefixes

* rename

* Update README.md
  • Loading branch information
Julien Bouquillon authored Mar 24, 2021
1 parent 760d9eb commit de5155f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .k8s/__tests__/__snapshots__/dev.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ metadata:
namespace: 1000jours-85-master-dev2
spec:
rules:
- host: hasura-chore-d-u8fps8-les1000jours.dev2.fabrique.social.gouv.fr
- host: api-chore-d-u8fps8-les1000jours.dev2.fabrique.social.gouv.fr
http:
paths:
- backend:
Expand All @@ -394,7 +394,7 @@ spec:
path: /
tls:
- hosts:
- hasura-chore-d-u8fps8-les1000jours.dev2.fabrique.social.gouv.fr
- api-chore-d-u8fps8-les1000jours.dev2.fabrique.social.gouv.fr
secretName: wildcard-crt
---
apiVersion: batch/v1
Expand Down Expand Up @@ -714,7 +714,7 @@ metadata:
namespace: 1000jours-85-master-dev2
spec:
rules:
- host: strapi-chore-d-u8fps8-les1000jours.dev2.fabrique.social.gouv.fr
- host: backoffice-chore-d-u8fps8-les1000jours.dev2.fabrique.social.gouv.fr
http:
paths:
- backend:
Expand All @@ -723,7 +723,7 @@ spec:
path: /
tls:
- hosts:
- strapi-chore-d-u8fps8-les1000jours.dev2.fabrique.social.gouv.fr
- backoffice-chore-d-u8fps8-les1000jours.dev2.fabrique.social.gouv.fr
secretName: wildcard-crt
"
`;
8 changes: 4 additions & 4 deletions .k8s/__tests__/__snapshots__/preprod.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ metadata:
namespace: 1000jours-85-preprod-dev2
spec:
rules:
- host: hasura-v1-2-3-les1000jours.dev2.fabrique.social.gouv.fr
- host: api-v1-2-3-les1000jours.dev2.fabrique.social.gouv.fr
http:
paths:
- backend:
Expand All @@ -392,7 +392,7 @@ spec:
path: /
tls:
- hosts:
- hasura-v1-2-3-les1000jours.dev2.fabrique.social.gouv.fr
- api-v1-2-3-les1000jours.dev2.fabrique.social.gouv.fr
secretName: wildcard-crt
---
apiVersion: bitnami.com/v1alpha1
Expand Down Expand Up @@ -675,7 +675,7 @@ metadata:
namespace: 1000jours-85-preprod-dev2
spec:
rules:
- host: strapi-v1-2-3-les1000jours.dev2.fabrique.social.gouv.fr
- host: backoffice-v1-2-3-les1000jours.dev2.fabrique.social.gouv.fr
http:
paths:
- backend:
Expand All @@ -684,7 +684,7 @@ spec:
path: /
tls:
- hosts:
- strapi-v1-2-3-les1000jours.dev2.fabrique.social.gouv.fr
- backoffice-v1-2-3-les1000jours.dev2.fabrique.social.gouv.fr
secretName: wildcard-crt
"
`;
8 changes: 4 additions & 4 deletions .k8s/__tests__/__snapshots__/prod.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ metadata:
namespace: les1000jours
spec:
rules:
- host: hasura.les1000jours.fabrique.social.gouv.fr
- host: api-les1000jours.fabrique.social.gouv.fr
http:
paths:
- backend:
Expand All @@ -373,7 +373,7 @@ spec:
path: /
tls:
- hosts:
- hasura.les1000jours.fabrique.social.gouv.fr
- api-les1000jours.fabrique.social.gouv.fr
secretName: hasura-crt
---
apiVersion: bitnami.com/v1alpha1
Expand Down Expand Up @@ -653,7 +653,7 @@ metadata:
namespace: les1000jours
spec:
rules:
- host: strapi-les1000jours.fabrique.social.gouv.fr
- host: backoffice-les1000jours.fabrique.social.gouv.fr
http:
paths:
- backend:
Expand All @@ -662,7 +662,7 @@ spec:
path: /
tls:
- hosts:
- strapi-les1000jours.fabrique.social.gouv.fr
- backoffice-les1000jours.fabrique.social.gouv.fr
secretName: strapi-crt
"
`;
1 change: 1 addition & 0 deletions .k8s/components/hasura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const manifests = create({
env,
config: {
ingress: true,
subDomainPrefix: "api-",
},
deployment: {
image: getHarborImagePath({ name: "les1000jours-hasura" }),
Expand Down
2 changes: 1 addition & 1 deletion .k8s/components/strapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const manifests = create("strapi", {
config: {
containerPort: 1337,
withPostgres: true,
subDomainPrefix: "strapi-",
subDomainPrefix: "backoffice-",
},
deployment: {
image: getHarborImagePath({ name: "les1000jours-strapi" }),
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ yarn ios
### Application back-end

TODO

0 comments on commit de5155f

Please sign in to comment.