Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions kubernetes/arangodb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: arangodb
labels:
app: arangodb
spec:
replicas: 1
template:
metadata:
name: arangodb
labels:
app: arangodb
spec:
containers:
- name: arangodb
image: gcr.io/sampleproject-31/arangodb:v1
imagePullPolicy: Always
resources:
requests:
memory: "2Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2"
envFrom:
- configMapRef:
name: env-config
ports:
- containerPort: 8529
restartPolicy: Always
imagePullSecrets:
- name: regcred
selector:
matchLabels:
app: arangodb
36 changes: 36 additions & 0 deletions kubernetes/cassandra.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cassandra
labels:
app: cassandra
spec:
replicas: 1
template:
metadata:
name: cassandra
labels:
app: cassandra
spec:
containers:
- name: cassandra
image: gcr.io/sampleproject-31/cassandra:v1
imagePullPolicy: Always
resources:
requests:
memory: "2Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2"
envFrom:
- configMapRef:
name: env-config
ports:
- containerPort: 9042
restartPolicy: Always
imagePullSecrets:
- name: regcred
selector:
matchLabels:
app: cassandra
34 changes: 34 additions & 0 deletions kubernetes/couchbase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: couchbase
labels:
app: couchbase
spec:
replicas: 1
template:
metadata:
name: couchbase
labels:
app: couchbase
spec:
containers:
- name: couchbase
image: gcr.io/sampleproject-31/couchbase:v1
imagePullPolicy: Always
resources:
requests:
memory: "2Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2"
envFrom:
- configMapRef:
name: env-config
restartPolicy: Always
imagePullSecrets:
- name: regcred
selector:
matchLabels:
app: couchbase
42 changes: 42 additions & 0 deletions kubernetes/env-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: env-config
labels:
app: env-config
data:
ENV_TYPE: Staging
GOOGLE_APPLICATION_CREDENTIALS: apps/notification_app/src/main/resources/firebase-config.json
RABBIT_HOST: rabbitmq
ARANGO_HOST: arangodb
POSTGRES_HOST: postgres
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_PORT: '5432'
ARANGO_USER: root
ARANGO_DB: Reddit
ARANGO_PASSWORD: root
ARANGO_ROOT_PASSWORD: root
COUCHBASE_HOST: localhost
COUCHBASE_USERNAME: Administrator
COUCHBASE_PASSWORD: root
CASSANDRA_NODE: cassandra
CASSANDRA_PORT: 9042
KEYSPACE_NAME: chat_app
REPLICATION_STRATEGY: SimpleStrategy
REPLICATION_FACTOR: 2
PGPOOL_BACKEND_NODES=0:postgres:5432
PGPOOL_SR_CHECK_USER: postgres
PGPOOL_SR_CHECK_PASSWORD: root
PGPOOL_ENABLE_LDAP: no
PGPOOL_ENABLE_POOL_HBA: no
PGPOOL_POSTGRES_USERNAME: postgres
PGPOOL_POSTGRES_PASSWORD: root
PGPOOL_ADMIN_USERNAME: postgres
PGPOOL_ADMIN_PASSWORD: root
MINIO_HOST: https://play.min.io/
MINIO_ROOT_USER: Q3AM3UQ867SPQQA43P2F
MINIO_ROOT_PASSWORD: zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG
JWT_SECRET: scaleabull
JWT_ISSUER: org.sab
34 changes: 34 additions & 0 deletions kubernetes/notification-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: notification-app
labels:
app: notification-app
spec:
replicas: 1
template:
metadata:
name: notification-app
labels:
app: notification-app
spec:
containers:
- name: notification-app
image: gcr.io/sampleproject-31/notification-app:v1
imagePullPolicy: Always
resources:
requests:
memory: "2Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2"
envFrom:
- configMapRef:
name: env-config
restartPolicy: Always
imagePullSecrets:
- name: regcred
selector:
matchLabels:
app: notification-app
36 changes: 36 additions & 0 deletions kubernetes/postgres.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres
labels:
app: postgres
spec:
replicas: 1
template:
metadata:
name: postgres
labels:
app: postgres
spec:
containers:
- name: postgres
image: gcr.io/sampleproject-31/postgres:v1
imagePullPolicy: Always
resources:
requests:
memory: "2Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2"
envFrom:
- configMapRef:
name: env-config
ports:
- containerPort: 5432
restartPolicy: Always
imagePullSecrets:
- name: regcred
selector:
matchLabels:
app: postgres
36 changes: 36 additions & 0 deletions kubernetes/rabbitmq.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rabbitmq
labels:
app: rabbitmq
spec:
replicas: 1
template:
metadata:
name: rabbitmq
labels:
app: rabbitmq
spec:
containers:
- name: rabbitmq
image: gcr.io/sampleproject-31/rabbitmq:v1
imagePullPolicy: Always
resources:
requests:
memory: "2Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2"
envFrom:
- configMapRef:
name: env-config
ports:
- containerPort: 5672
restartPolicy: Always
imagePullSecrets:
- name: regcred
selector:
matchLabels:
app: rabbitmq
34 changes: 34 additions & 0 deletions kubernetes/search-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: search-app
labels:
app: search-app
spec:
replicas: 1
template:
metadata:
name: search-app
labels:
app: search-app
spec:
containers:
- name: search-app
image: gcr.io/sampleproject-31/search-app:v1
imagePullPolicy: Always
resources:
requests:
memory: "2Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2"
envFrom:
- configMapRef:
name: env-config
restartPolicy: Always
imagePullSecrets:
- name: regcred
selector:
matchLabels:
app: search-app