diff --git a/kubernetes/arangodb.yaml b/kubernetes/arangodb.yaml new file mode 100644 index 00000000..737f6ea8 --- /dev/null +++ b/kubernetes/arangodb.yaml @@ -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 \ No newline at end of file diff --git a/kubernetes/cassandra.yaml b/kubernetes/cassandra.yaml new file mode 100644 index 00000000..65e0e43f --- /dev/null +++ b/kubernetes/cassandra.yaml @@ -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 \ No newline at end of file diff --git a/kubernetes/couchbase.yaml b/kubernetes/couchbase.yaml new file mode 100644 index 00000000..b6674360 --- /dev/null +++ b/kubernetes/couchbase.yaml @@ -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 \ No newline at end of file diff --git a/kubernetes/env-config.yaml b/kubernetes/env-config.yaml new file mode 100644 index 00000000..3eae326e --- /dev/null +++ b/kubernetes/env-config.yaml @@ -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 \ No newline at end of file diff --git a/kubernetes/notification-app.yaml b/kubernetes/notification-app.yaml new file mode 100644 index 00000000..157fedfc --- /dev/null +++ b/kubernetes/notification-app.yaml @@ -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 \ No newline at end of file diff --git a/kubernetes/postgres.yaml b/kubernetes/postgres.yaml new file mode 100644 index 00000000..cb4bfb8d --- /dev/null +++ b/kubernetes/postgres.yaml @@ -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 \ No newline at end of file diff --git a/kubernetes/rabbitmq.yaml b/kubernetes/rabbitmq.yaml new file mode 100644 index 00000000..36befb68 --- /dev/null +++ b/kubernetes/rabbitmq.yaml @@ -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 \ No newline at end of file diff --git a/kubernetes/search-app.yaml b/kubernetes/search-app.yaml new file mode 100644 index 00000000..52b6893b --- /dev/null +++ b/kubernetes/search-app.yaml @@ -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 \ No newline at end of file