Skip to content

Commit

Permalink
feat(sandbox): add-tf-to-sandbox (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescrowley321 authored and yeshamavani committed Aug 25, 2021
1 parent 97c3c48 commit 7683485
Show file tree
Hide file tree
Showing 22 changed files with 615 additions and 0 deletions.
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: {}
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.
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: { }
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 sandbox/k8s/tf-sourceloop-sandbox/camunda/camunda-deployment.yaml
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 sandbox/k8s/tf-sourceloop-sandbox/camunda/camunda-service.yaml
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: {}
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
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
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: { }
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: {}
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
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: { }
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: {}
Loading

0 comments on commit 7683485

Please sign in to comment.