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
38 changes: 19 additions & 19 deletions configure.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
#!/bin/bash
set -e

# Install tiller
echo "Installing tiller"
kubectl create serviceaccount tiller \
-n kube-system
kubectl create clusterrolebinding tiller \
--clusterrole=cluster-admin \
--serviceaccount=kube-system:tiller
helm init --service-account tiller

# Wait some time till tiller starts
echo "Sleeping 15 seconds till tiller starts"
sleep 15
# # Install tiller
# echo "Installing tiller"
# kubectl create serviceaccount tiller \
# -n kube-system
# kubectl create clusterrolebinding tiller \
# --clusterrole=cluster-admin \
# --serviceaccount=kube-system:tiller
# helm init --service-account tiller

# # Wait some time till tiller starts
# echo "Sleeping 15 seconds till tiller starts"
# sleep 15

# Install the Postgres Operator
echo "Installing the postgres operator"
POSTGRES_OPERATOR_PATH=$HOME/opt/zalando-postgres-operator
POSTGRES_OPERATOR_TAR_GZ=$POSTGRES_OPERATOR_PATH/zalando-postgres-operator.tar.gz
mkdir -p $POSTGRES_OPERATOR_PATH
curl https://github.com/zalando/postgres-operator/archive/v1.2.0.tar.gz -sL --output $POSTGRES_OPERATOR_TAR_GZ
curl https://github.com/zalando/postgres-operator/archive/v1.6.3.tar.gz -sL --output $POSTGRES_OPERATOR_TAR_GZ
tar -xzvf $POSTGRES_OPERATOR_TAR_GZ -C $POSTGRES_OPERATOR_PATH
rm $POSTGRES_OPERATOR_TAR_GZ
helm install \
--name zalando-postgres-operator \
$POSTGRES_OPERATOR_PATH/postgres-operator-1.2.0/charts/postgres-operator
zalando-postgres-operator \
$POSTGRES_OPERATOR_PATH/postgres-operator-1.6.3/charts/postgres-operator

# Add Banzai's and Jetstack helm repositories
echo "Adding needed repositories to install zookeeper and kafka operators"
Expand All @@ -34,24 +34,24 @@ helm repo add jetstack https://charts.jetstack.io
# Install the Zookeeper Operator
echo "Installing the zookeeper operator"
helm install \
--name banzai-zookeeper-operator \
banzai-zookeeper-operator \
banzaicloud-stable/zookeeper-operator

# Install the Cert Manager
echo "Installing the cert-manager operator (needed by the kafka operator)"
kubectl apply --validate=false -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.10/deploy/manifests/00-crds.yaml
helm install \
--name cert-manager \
cert-manager \
--version v0.10.1 \
jetstack/cert-manager

# Wait some time till cert manager stuff is available
# # Wait some time till cert manager stuff is available
echo "Sleeping 60 seconds till cert manager stuff is available"
sleep 60

# Install the Kafka Operator
echo "Installing the kafka operator"
helm install \
--name banzai-kafka-operator \
banzai-kafka-operator \
--version 0.2.4 \
banzaicloud-stable/kafka-operator
4 changes: 2 additions & 2 deletions deployment/api-gateway/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: api-gateway
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: api-gateway
Expand All @@ -18,7 +18,7 @@ spec:
image: itbacep/api-gateway
ports:
- containerPort: 80
resources:
resources:
requests:
cpu: "100m"
memory: "512Mi"
Expand Down
4 changes: 2 additions & 2 deletions deployment/basic-ui/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
image: itbacep/basic-ui
ports:
- containerPort: 8000
resources:
resources:
requests:
cpu: "200m"
memory: "1Gi"
Expand All @@ -27,4 +27,4 @@ spec:
memory: "2Gi"
env:
- name: API_HOST
value: https://api.cep.bellotapps.com
value: https://api.rattarchy.xyz
3 changes: 1 addition & 2 deletions deployment/evaluations-service-postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
teamId: "evaluations-service"
volume:
size: 1Gi
numberOfInstances: 3
numberOfInstances: 1
enableMasterLoadBalancer: false
enableReplicaLoadBalancer: false
users:
Expand All @@ -25,4 +25,3 @@ spec:
limits:
cpu: 100m
memory: "1Gi"

10 changes: 5 additions & 5 deletions deployment/evaluations-service/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: evaluations-service
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: evaluations-service
Expand All @@ -18,7 +18,7 @@ spec:
image: itbacep/evaluations-service
ports:
- containerPort: 8000
resources:
resources:
requests:
cpu: "100m"
memory: "512Mi"
Expand All @@ -40,13 +40,13 @@ spec:
- name: SPRING_DATASOURCE_USERNAME
valueFrom:
secretKeyRef:
name: evaluations-service.evaluations-service-postgres-cluster.credentials
name: evaluations-service.evaluations-service-postgres-cluster.credentials.postgresql.acid.zalan.do
key: username
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: evaluations-service.evaluations-service-postgres-cluster.credentials
name: evaluations-service.evaluations-service-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password

- name: SPRING_DATASOURCE_URL
value: jdbc:postgresql://evaluations-service-postgres-cluster:5432/evaluationsservice
4 changes: 2 additions & 2 deletions deployment/executor-service/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: executor-service
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: executor-service
Expand All @@ -18,7 +18,7 @@ spec:
image: itbacep/executor-service
ports:
- containerPort: 8010
resources:
resources:
requests:
cpu: "200m"
memory: "512Mi"
Expand Down
44 changes: 21 additions & 23 deletions deployment/kafka/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@ spec:
requests:
cpu: "0.1"
memory: "512Mi"
- id: 1
brokerConfigGroup: "default"
brokerConfig:
resourceRequirements:
limits:
cpu: "0.3"
memory: "3Gi"
requests:
cpu: "0.1"
memory: "512Mi"
- id: 2
brokerConfigGroup: "default"
brokerConfig:
resourceRequirements:
limits:
cpu: "0.3"
memory: "3Gi"
requests:
cpu: "0.1"
memory: "512Mi"
# - id: 1
# brokerConfigGroup: "default"
# brokerConfig:
# resourceRequirements:
# limits:
# cpu: "0.3"
# memory: "3Gi"
# requests:
# cpu: "0.1"
# memory: "512Mi"
# - id: 2
# brokerConfigGroup: "default"
# brokerConfig:
# resourceRequirements:
# limits:
# cpu: "0.3"
# memory: "3Gi"
# requests:
# cpu: "0.1"
# memory: "512Mi"
rollingUpgradeConfig:
failureThreshold: 1
listenersConfig:
Expand Down Expand Up @@ -85,7 +85,7 @@ spec:
}
clusterConfig: |
{
"min.insync.replicas": 3
"min.insync.replicas": 1
}
config: |
# Copyright 2017 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information.
Expand Down Expand Up @@ -272,5 +272,3 @@ spec:
webserver.accesslog.path=access.log
# HTTP Request Log retention days
webserver.accesslog.retention.days=14


4 changes: 2 additions & 2 deletions deployment/lti-app/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: lti-app
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: lti-app
Expand All @@ -18,7 +18,7 @@ spec:
image: itbacep/lti-app
ports:
- containerPort: 8000
resources:
resources:
requests:
cpu: "100m"
memory: "512Mi"
Expand Down
3 changes: 1 addition & 2 deletions deployment/lti-service-postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
teamId: "lti-service"
volume:
size: 1Gi
numberOfInstances: 3
numberOfInstances: 1
enableMasterLoadBalancer: false
enableReplicaLoadBalancer: false
users:
Expand All @@ -25,4 +25,3 @@ spec:
limits:
cpu: 100m
memory: "1Gi"

10 changes: 5 additions & 5 deletions deployment/lti-service/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: lti-service
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: lti-service
Expand All @@ -18,7 +18,7 @@ spec:
image: itbacep/lti-service
ports:
- containerPort: 8000
resources:
resources:
requests:
cpu: "100m"
memory: "512Mi"
Expand All @@ -43,13 +43,13 @@ spec:
- name: SPRING_DATASOURCE_USERNAME
valueFrom:
secretKeyRef:
name: lti-service.lti-service-postgres-cluster.credentials
name: lti-service.lti-service-postgres-cluster.credentials.postgresql.acid.zalan.do
key: username
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: lti-service.lti-service-postgres-cluster.credentials
name: lti-service.lti-service-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password

- name: SPRING_DATASOURCE_URL
value: jdbc:postgresql://lti-service-postgres-cluster:5432/ltiservice
3 changes: 1 addition & 2 deletions deployment/playground-service-postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
teamId: "playground-service"
volume:
size: 1Gi
numberOfInstances: 3
numberOfInstances: 1
enableMasterLoadBalancer: false
enableReplicaLoadBalancer: false
users:
Expand All @@ -25,4 +25,3 @@ spec:
limits:
cpu: 100m
memory: "1Gi"

10 changes: 5 additions & 5 deletions deployment/playground-service/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: playground-service
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: playground-service
Expand All @@ -18,7 +18,7 @@ spec:
image: itbacep/playground-service
ports:
- containerPort: 8000
resources:
resources:
requests:
cpu: "100m"
memory: "512Mi"
Expand All @@ -40,13 +40,13 @@ spec:
- name: SPRING_DATASOURCE_USERNAME
valueFrom:
secretKeyRef:
name: playground-service.playground-service-postgres-cluster.credentials
name: playground-service.playground-service-postgres-cluster.credentials.postgresql.acid.zalan.do
key: username
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: playground-service.playground-service-postgres-cluster.credentials
name: playground-service.playground-service-postgres-cluster.credentials.postgresql.acid.zalan.do
key: password

- name: SPRING_DATASOURCE_URL
value: jdbc:postgresql://playground-service-postgres-cluster:5432/playgroundservice
4 changes: 2 additions & 2 deletions deployment/service-registry/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: service-registry
spec:
serviceName: service-registry
replicas: 2
replicas: 1
selector:
matchLabels:
app: service-registry
Expand All @@ -18,7 +18,7 @@ spec:
image: itbacep/service-registry
ports:
- containerPort: 8761
resources:
resources:
requests:
cpu: "10m"
memory: "512Mi"
Expand Down
3 changes: 1 addition & 2 deletions deployment/users-service-postgres/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ spec:
teamId: "users-service"
volume:
size: 1Gi
numberOfInstances: 3
numberOfInstances: 1
enableMasterLoadBalancer: false
enableReplicaLoadBalancer: false
users:
Expand All @@ -25,4 +25,3 @@ spec:
limits:
cpu: 100m
memory: "1Gi"

Loading