-
Notifications
You must be signed in to change notification settings - Fork 1
Add Kubernetes environments for Preprod and Test #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b142cee
[created] ingress with tailscale class
TsybulkaM 8fc42dc
[changed] host form generic
TsybulkaM 5011133
[changed_minor] added host name
TsybulkaM 738c002
[changed] path ref
TsybulkaM 4110f1c
[added] pathRewrite
TsybulkaM 1804579
[try] with traefik class name
TsybulkaM 3546689
[changed_minor] make route_engine config more dev
TsybulkaM 46fd786
[created] test and preprod env for k8s with tailscale access + [refac…
TsybulkaM 45f2b33
[created] k8s apply scripts
TsybulkaM a676219
[added] namespaces in sctipts
TsybulkaM f763ac2
[changed_minor] missed Install Poetry step
TsybulkaM af07842
[changed_minor] linter run + missed namesppaces in k8s mnfs
TsybulkaM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/bash | ||
|
|
||
| # --- apply configmaps and secrets --- | ||
| kubectl apply -f preprod-env/configmap.yaml -n preprod | ||
| kubectl apply -f base/secret.yaml -n preprod | ||
|
|
||
| # --- apply deployments --- | ||
| kubectl apply -f base/frontend/frontend-deployment.yaml -n preprod | ||
| kubectl apply -f base/logicway/logicway-deployment.yaml -n preprod | ||
| kubectl apply -f base/postgres/postgres-deployment.yaml -n preprod | ||
| kubectl apply -f base/route-engine/route-engine-deployment.yaml -n preprod | ||
|
|
||
| # --- apply services --- | ||
| kubectl apply -f preprod-env/services/ -n preprod | ||
|
|
||
| # --- apply jobs --- | ||
| kubectl apply -f base/logicway/job-load-data.yaml -n preprod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/bin/bash | ||
|
|
||
| # --- apply configmaps and secrets --- | ||
| kubectl apply -f test-env/configmap.yaml -n test | ||
| kubectl apply -f test-env/secret.yaml -n test | ||
|
|
||
| # --- apply deployments --- | ||
| kubectl apply -f test-env/frontend/frontend-deployment.yaml -n test | ||
| kubectl apply -f test-env/logicway/logicway-deployment.yaml -n test | ||
| kubectl apply -f test-env/postgres/postgres-deployment.yaml -n test | ||
| kubectl apply -f test-env/route-engine/route-engine-deployment.yaml -n test | ||
|
|
||
| # --- apply services --- | ||
| kubectl apply -f test-env/services/ -n test | ||
|
|
||
| # --- apply jobs --- | ||
| kubectl apply -f test-env/logicway/job-load-data.yaml -n test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: app-config | ||
| namespace: preprod | ||
| data: | ||
| DB_NAME: "logicway" | ||
| DB_HOST: "postgres" | ||
| DB_PORT: "5432" | ||
| ROUTE_ENGINE_URL: "http://route-engine.preprod.svc.cluster.local" | ||
| REACT_APP_LOGICWAY_URL: "http://logicway-preprod.taile241c6.ts.net" | ||
| REACT_APP_ROUTE_ENGINE_URL: "http://logicway-preprod.taile241c6.ts.net/routing/proxy_route_engine" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: frontend | ||
| namespace: preprod | ||
| annotations: | ||
| tailscale.com/expose: "true" | ||
| tailscale.com/hostname: "frontend-preprod" | ||
| spec: | ||
| selector: | ||
| app: frontend | ||
| ports: | ||
| - port: 80 | ||
| targetPort: 80 | ||
| type: ClusterIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: logicway | ||
| labels: | ||
| app: logicway | ||
| namespace: preprod | ||
| annotations: | ||
| tailscale.com/expose: "true" | ||
| tailscale.com/hostname: "logicway-preprod" | ||
| spec: | ||
| selector: | ||
| app: logicway | ||
| ports: | ||
| - name: http-django-8000 | ||
| port: 80 | ||
| targetPort: 8000 | ||
| type: ClusterIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: postgres | ||
| namespace: preprod | ||
| spec: | ||
| selector: | ||
| app: postgres | ||
| ports: | ||
| - port: 5432 | ||
| targetPort: 5432 | ||
| type: ClusterIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: route-engine | ||
| labels: | ||
| app: route-engine | ||
| namespace: preprod | ||
| spec: | ||
| selector: | ||
| app: route-engine | ||
| ports: | ||
| - name: http-django-8001 | ||
| port: 80 | ||
| targetPort: 8001 | ||
| type: ClusterIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: app-config | ||
| namespace: test | ||
| data: | ||
| DB_NAME: "logicway" | ||
| DB_HOST: "postgres" | ||
| DB_PORT: "5432" | ||
| ROUTE_ENGINE_URL: "http://route-engine.test.svc.cluster.local" | ||
| REACT_APP_LOGICWAY_URL: "http://logicway-test.taile241c6.ts.net" | ||
| REACT_APP_ROUTE_ENGINE_URL: "http://logicway-test.taile241c6.ts.net/routing/proxy_route_engine" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: frontend | ||
| namespace: test | ||
| annotations: | ||
| tailscale.com/expose: "true" | ||
| tailscale.com/hostname: "frontend-test" | ||
| spec: | ||
| selector: | ||
| app: frontend | ||
| ports: | ||
| - port: 80 | ||
| targetPort: 80 | ||
| type: ClusterIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: logicway | ||
| labels: | ||
| app: logicway | ||
| namespace: test | ||
| annotations: | ||
| tailscale.com/expose: "true" | ||
| tailscale.com/hostname: "logicway-test" | ||
| spec: | ||
| selector: | ||
| app: logicway | ||
| ports: | ||
| - name: http-django-8000 | ||
| port: 80 | ||
| targetPort: 8000 | ||
| type: ClusterIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: postgres | ||
| namespace: test | ||
| annotations: | ||
| tailscale.com/expose: "true" | ||
| tailscale.com/hostname: "postgres-test" | ||
| spec: | ||
| selector: | ||
| app: postgres | ||
| ports: | ||
| - port: 5432 | ||
| targetPort: 5432 | ||
| type: ClusterIP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: route-engine | ||
| labels: | ||
| app: route-engine | ||
| namespace: test | ||
| spec: | ||
| selector: | ||
| app: route-engine | ||
| ports: | ||
| - name: http-django-8001 | ||
| port: 80 | ||
| targetPort: 8001 | ||
| type: ClusterIP | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.