-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sandbox): add-tf-to-sandbox (#263)
- Loading branch information
1 parent
97c3c48
commit 7683485
Showing
22 changed files
with
615 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
sandbox/k8s/tf-sourceloop-sandbox/audit-ms-example/audit-ms-example-deployment.yaml
This file contains 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,53 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
# network/sourceloop-sanbox: "true" | ||
io.sourceloop.service: audit-ms-example | ||
name: audit-ms-example | ||
namespace: sourceloop-sandbox | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.sourceloop.service: audit-ms-example | ||
template: | ||
metadata: | ||
labels: | ||
io.sourceloop.service: audit-ms-example | ||
spec: | ||
containers: | ||
- env: | ||
- name: DB_DATABASE | ||
value: audit_db | ||
- name: DB_HOST | ||
value: postgres.sourceloop-sandbox.svc.cluster.local | ||
- name: DB_PASSWORD | ||
value: changeme | ||
- name: DB_PORT | ||
value: "5432" | ||
- name: DB_USER | ||
value: postgres | ||
- name: JWT_ISSUER | ||
value: https://loopback4-microservice-catalog | ||
- name: JWT_SECRET | ||
value: i_am_a_strong_secret | ||
- name: LOG_LEVEL | ||
value: debug | ||
- name: NODE_ENV | ||
value: dev | ||
- name: REDIS_DB | ||
value: "0" | ||
- name: REDIS_HOST | ||
value: redis | ||
- name: REDIS_PASSWORD | ||
value: test | ||
- name: REDIS_PORT | ||
value: "6379" | ||
image: localhost:32000/audit-ms-example | ||
name: audit-ms-example | ||
ports: | ||
- containerPort: 3000 | ||
resources: { } | ||
restartPolicy: Always | ||
status: {} |
17 changes: 17 additions & 0 deletions
17
sandbox/k8s/tf-sourceloop-sandbox/audit-ms-example/audit-ms-example-service.yaml
This file contains 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 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
io.sourceloop.service: audit-ms-example | ||
name: audit-ms-example | ||
namespace: sourceloop-sandbox | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- name: "3000" | ||
port: 3000 | ||
targetPort: 3000 | ||
selector: | ||
io.sourceloop.service: audit-ms-example | ||
status: | ||
loadBalancer: {} |
Empty file.
73 changes: 73 additions & 0 deletions
73
...s/tf-sourceloop-sandbox/auth-multitenant-example/auth-multitenant-example-deployment.yaml
This file contains 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,73 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
# network/sourceloop-sanbox: "true" | ||
io.sourceloop.service: auth-multitenant-example | ||
name: auth-multitenant-example | ||
namespace: sourceloop-sandbox | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.sourceloop.service: auth-multitenant-example | ||
template: | ||
metadata: | ||
labels: | ||
io.sourceloop.service: auth-multitenant-example | ||
spec: | ||
containers: | ||
- env: | ||
- name: DB_DATABASE | ||
value: authentication_db | ||
- name: DB_HOST | ||
value: postgres.sourceloop-sandbox.svc.cluster.local | ||
- name: DB_PASSWORD | ||
value: changeme | ||
- name: DB_PORT | ||
value: "5432" | ||
- name: DB_SCHEMA | ||
value: main | ||
- name: DB_USER | ||
value: postgres | ||
- name: JWT_ISSUER | ||
value: https://loopback4-microservice-catalog | ||
- name: JWT_SECRET | ||
value: i_am_a_strong_secret | ||
- name: KEYCLOAK_CALLBACK_URL | ||
value: test | ||
- name: KEYCLOAK_CLIENT_ID | ||
value: test | ||
- name: KEYCLOAK_CLIENT_SECRET | ||
value: test | ||
- name: KEYCLOAK_HOST | ||
value: test | ||
- name: KEYCLOAK_REALM | ||
value: test | ||
- name: LOCALE | ||
value: en | ||
- name: LOG_LEVEL | ||
value: debug | ||
- name: NODE_ENV | ||
value: dev | ||
- name: RATE_LIMITER_MAX_REQS | ||
value: "100" | ||
- name: RATE_LIMITER_WINDOW_MS | ||
value: "100" | ||
- name: REDIS_DB | ||
value: "0" | ||
- name: REDIS_HOST | ||
value: redis | ||
- name: REDIS_PORT | ||
value: "6379" | ||
- name: USER_TEMP_PASSWORD | ||
value: tempP@ssw0rd | ||
- name: X_FRAME_OPTIONS | ||
value: SAMEORIGIN | ||
image: localhost:32000/auth-multitenant-example | ||
name: auth-multitenant-example | ||
ports: | ||
- containerPort: 3000 | ||
resources: { } | ||
restartPolicy: Always | ||
status: { } |
16 changes: 16 additions & 0 deletions
16
.../k8s/tf-sourceloop-sandbox/auth-multitenant-example/auth-multitenant-example-service.yaml
This file contains 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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
io.sourceloop.service: auth-multitenant-example | ||
name: auth-multitenant-example | ||
namespace: sourceloop-sandbox | ||
spec: | ||
ports: | ||
- name: "3000" | ||
port: 3000 | ||
targetPort: 3000 | ||
selector: | ||
io.sourceloop.service: auth-multitenant-example | ||
status: | ||
loadBalancer: {} |
28 changes: 28 additions & 0 deletions
28
sandbox/k8s/tf-sourceloop-sandbox/camunda/camunda-deployment.yaml
This file contains 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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
io.sourceloop.service: camunda | ||
name: camunda | ||
namespace: sourceloop-sandbox | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.sourceloop.service: camunda | ||
strategy: {} | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
# network/sourceloop-sanbox: "true" | ||
io.sourceloop.service: camunda | ||
spec: | ||
containers: | ||
- image: camunda/camunda-bpm-platform:run-latest | ||
name: camunda-engine | ||
ports: | ||
- containerPort: 8080 | ||
resources: {} | ||
restartPolicy: Always | ||
status: {} |
16 changes: 16 additions & 0 deletions
16
sandbox/k8s/tf-sourceloop-sandbox/camunda/camunda-service.yaml
This file contains 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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
io.sourceloop.service: camunda | ||
name: camunda | ||
namespace: sourceloop-sandbox | ||
spec: | ||
ports: | ||
- name: "8080" | ||
port: 8080 | ||
targetPort: 8080 | ||
selector: | ||
io.sourceloop.service: camunda | ||
status: | ||
loadBalancer: {} |
22 changes: 22 additions & 0 deletions
22
sandbox/k8s/tf-sourceloop-sandbox/health-check/health-check-deployment.yaml
This file contains 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,22 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: health-check | ||
namespace: sourceloop-sandbox | ||
labels: | ||
app: nginx | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx | ||
ports: | ||
- containerPort: 80 |
13 changes: 13 additions & 0 deletions
13
sandbox/k8s/tf-sourceloop-sandbox/health-check/health-check-service.yaml
This file contains 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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: health-check-svc | ||
namespace: sourceloop-sandbox | ||
labels: | ||
app: nginx | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- port: 80 | ||
selector: | ||
app: nginx |
53 changes: 53 additions & 0 deletions
53
sandbox/k8s/tf-sourceloop-sandbox/in-mail-example/in-mail-example-deployment.yaml
This file contains 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,53 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
# network/sourceloop-sanbox: "true" | ||
io.sourceloop.service: in-mail-example | ||
name: in-mail-example | ||
namespace: sourceloop-sandbox | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.sourceloop.service: in-mail-example | ||
template: | ||
metadata: | ||
labels: | ||
io.sourceloop.service: in-mail-example | ||
spec: | ||
containers: | ||
- env: | ||
- name: DB_DATABASE | ||
value: in_mail_db | ||
- name: DB_HOST | ||
value: postgres.sourceloop-sandbox.svc.cluster.local | ||
- name: DB_PASSWORD | ||
value: changeme | ||
- name: DB_PORT | ||
value: "5432" | ||
- name: DB_SCHEMA | ||
value: main | ||
- name: DB_USER | ||
value: postgres | ||
- name: JWT_ISSUER | ||
value: https://loopback4-microservice-catalog | ||
- name: JWT_SECRET | ||
value: i_am_a_strong_secret | ||
- name: LOG_LEVEL | ||
value: debug | ||
- name: NODE_ENV | ||
value: dev | ||
- name: REDIS_DATABASE | ||
value: "0" | ||
- name: REDIS_HOST | ||
value: redis | ||
- name: REDIS_PORT | ||
value: "6379" | ||
image: localhost:32000/in-mail-example | ||
name: in-mail-example | ||
ports: | ||
- containerPort: 3000 | ||
resources: { } | ||
restartPolicy: Always | ||
status: { } |
16 changes: 16 additions & 0 deletions
16
sandbox/k8s/tf-sourceloop-sandbox/in-mail-example/in-mail-example-service.yaml
This file contains 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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
io.sourceloop.service: in-mail-example | ||
name: in-mail-example | ||
namespace: sourceloop-sandbox | ||
spec: | ||
ports: | ||
- name: "3000" | ||
port: 3000 | ||
targetPort: 3000 | ||
selector: | ||
io.sourceloop.service: in-mail-example | ||
status: | ||
loadBalancer: {} |
7 changes: 7 additions & 0 deletions
7
sandbox/k8s/tf-sourceloop-sandbox/namespaces/sourceloop-sandbox-namespace.yaml
This file contains 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,7 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: sourceloop-sandbox | ||
labels: | ||
name: sourceloop-sandbox |
47 changes: 47 additions & 0 deletions
47
...ourceloop-sandbox/notification-socket-example/notification-socket-example-deployment.yaml
This file contains 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,47 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
# network/sourceloop-sanbox: "true" | ||
io.sourceloop.service: notification-socket-example | ||
name: notification-socket-example | ||
namespace: sourceloop-sandbox | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.sourceloop.service: notification-socket-example | ||
template: | ||
metadata: | ||
labels: | ||
io.sourceloop.service: notification-socket-example | ||
spec: | ||
containers: | ||
- env: | ||
- name: DB_DATABASE | ||
value: notification_db | ||
- name: DB_HOST | ||
value: postgres.sourceloop-sandbox.svc.cluster.local | ||
- name: DB_PASSWORD | ||
value: changeme | ||
- name: DB_PORT | ||
value: "5432" | ||
- name: DB_SCHEMA | ||
value: public | ||
- name: DB_USER | ||
value: postgres | ||
- name: JWT_ISSUER | ||
value: https://loopback4-microservice-catalog | ||
- name: JWT_SECRET | ||
value: i_am_a_strong_secret | ||
- name: LOG_LEVEL | ||
value: debug | ||
- name: NODE_ENV | ||
value: dev | ||
image: localhost:32000/notification-socket-example | ||
name: notification-socket-example | ||
ports: | ||
- containerPort: 3000 | ||
resources: { } | ||
restartPolicy: Always | ||
status: { } |
16 changes: 16 additions & 0 deletions
16
...f-sourceloop-sandbox/notification-socket-example/notification-socket-example-service.yaml
This file contains 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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
io.sourceloop.service: notification-socket-example | ||
name: notification-socket-example | ||
namespace: sourceloop-sandbox | ||
spec: | ||
ports: | ||
- name: "3000" | ||
port: 3000 | ||
targetPort: 3000 | ||
selector: | ||
io.sourceloop.service: notification-socket-example | ||
status: | ||
loadBalancer: {} |
Oops, something went wrong.