Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DSD-4140] changed configurations for camdgc-perf #1484

Open
wants to merge 3 commits into
base: camdgc-perf
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions deployment/v3/external/hsm/softhsm/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ $# -ge 1 ] ; then
fi

NS=softhsm
CHART_VERSION=12.0.1-B2
CHART_VERSION=12.0.2

echo Create $NS namespaces
kubectl create ns $NS
Expand All @@ -34,4 +34,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
installing_softhsm # calling function
installing_softhsm # calling function
2 changes: 1 addition & 1 deletion deployment/v3/external/kafka/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function installing_kafka() {
kubectl label ns $NS istio-injection=enabled --overwrite

echo Updating helm repos
helm repo add kafka-ui https://provectus.github.io/kafka-ui
helm repo add kafka-ui https://provectus.github.io/kafka-ui-charts
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update

Expand Down
2 changes: 1 addition & 1 deletion deployment/v3/external/landing-page/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=landing-page
CHART_VERSION=12.0.1-B3
CHART_VERSION=12.0.2

echo Create $NS namespace
kubectl create ns $NS
Expand Down
47 changes: 30 additions & 17 deletions deployment/v3/external/msg-gateway/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Creates configmap and secrets for Email
# Creates configmap and secrets for SMTP and SMS
## Usage: ./install.sh [kubeconfig]

if [ $# -ge 1 ] ; then
Expand All @@ -15,36 +15,49 @@ function msg_gateway() {
echo Istio label
kubectl label ns $NS istio-injection=enabled --overwrite

HOST=mock-smtp.mock-smtp
PORT=8025
USER=
SECRET="''"
SMTP_HOST=mock-smtp.mock-smtp
SMS_HOST=mock-smtp.mock-smtp
SMTP_PORT=8025
SMS_PORT=8080
SMTP_USER=
SMS_USER=
SMTP_SECRET="''"
SMS_SECRET="''"

read -p "Would you like to use mock-smtp (Y/N) [ Default: Y ] : " yn
# Set yn to N if user input is null
if [ -z $yn ]; then
yn=Y;
fi
if [ $yn != "Y" ]; then
read -p "Please enter the SMTP host " HOST
read -p "Please enter the SMTP host port " PORT
read -p "Please enter the SMTP user " USER
read -p "Please enter the SMTP secret key " SECRET
read -p "Please enter the SMTP host " SMTP_HOST
read -p "Please enter the SMTP host port " SMTP_PORT
read -p "Please enter the SMTP user " SMTP_USER
read -p "Please enter the SMTP secret key " SMTP_SECRET
fi
unset yn
read -p "Would you like to use mock-sms (Y/N) [ Default: Y ] : " yn
if [ -z $yn ]; then
yn=Y;
fi
if [ $yn != "Y" ]; then
read -p "Please enter the SMS host " SMS_HOST
read -p "Please enter the SMS host port " SMS_PORT
read -p "Please enter the SMS user " SMS_USER
read -p "Please enter the SMS secret key " SMS_SECRET
fi
kubectl -n $NS delete --ignore-not-found=true configmap msg-gateway
kubectl -n $NS create configmap msg-gateway --from-literal="smtp-host=$SMTP_HOST" --from-literal="sms-host=$SMS_HOST" --from-literal="smtp-port=$SMTP_PORT" --from-literal="sms-port=$SMS_PORT" --from-literal="smtp-username=$SMTP_USER" --from-literal="sms-username=$SMS_USER"
kubectl -n $NS delete --ignore-not-found=true secret msg-gateway
kubectl -n $NS create secret generic msg-gateway --from-literal="smtp-secret=$SMTP_SECRET" --from-literal="sms-secret=$SMS_SECRET" --dry-run=client -o yaml | kubectl apply -f -

kubectl -n $NS delete --ignore-not-found=true configmap email-gateway
kubectl -n $NS create configmap email-gateway --from-literal="email-smtp-host=$HOST" --from-literal="email-smtp-port=$PORT" --from-literal="email-smtp-username=$USER"
kubectl -n $NS delete --ignore-not-found=true secret email-gateway
kubectl -n $NS create secret generic email-gateway --from-literal="email-smtp-secret=$SECRET" --dry-run=client -o yaml | kubectl apply -f -

echo Email realted configurations set.
echo smtp and sms related configurations set.
return 0
}

# set commands for error handling.
set -e
set -o errexit ## set -e : exit the script if any statement returns a non-true return value
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
msg_gateway # calling function
msg_gateway # calling function
6 changes: 3 additions & 3 deletions deployment/v3/external/postgres/init_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ fi

function initialize_db() {
NS=postgres
CHART_VERSION=12.0.1-B3
CHART_VERSION=12.0.2
helm repo update
while true; do
read -p "CAUTION: all existing data will be lost. Are you sure?(Y/n)" yn
if [ $yn = "Y" ]
then
echo Removing any existing installation
helm -n $NS delete postgres-init
helm -n $NS delete postgres-init || true
echo Initializing DB
helm -n $NS install postgres-init mosip/postgres-init --set image.repository=mosipqa/postgres-init --set image.tag=develop -f init_values.yaml --version $CHART_VERSION --wait --wait-for-jobs
break
Expand All @@ -32,4 +32,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
initialize_db # calling function
initialize_db # calling function
4 changes: 2 additions & 2 deletions deployment/v3/external/postgres/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ kubectl label ns $NS istio-injection=enabled --overwrite

function installing_postgres() {
echo Installing Postgres
helm -n $NS install postgres mosip/postgresql --version 10.16.2 -f values.yaml --wait
helm -n $NS install postgres bitnami/postgresql --version 13.1.5 -f values.yaml --wait
echo Installed Postgres

echo Installing gateways and virtual services
Expand All @@ -30,4 +30,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
installing_postgres # calling function
installing_postgres # calling function
4 changes: 2 additions & 2 deletions deployment/v3/mosip/biosdk/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function installing_biosdk() {
helm repo update

echo Installing Biosdk server
helm -n $NS install biosdk-service mosip/biosdk-service --set image.repository=mosipqa/biosdk-server --set image.tag=1.2.0.1-B2 -f values.yaml --version $CHART_VERSION
helm -n $NS install biosdk-service mosip/biosdk-service --set image.repository=mosipid/biosdk-server --set image.tag=1.2.0.1-B2 -f values.yaml --version $CHART_VERSION
echo Biosdk service installed sucessfully.
return 0
}
Expand All @@ -29,4 +29,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
installing_biosdk # calling function
installing_biosdk # calling function
4 changes: 2 additions & 2 deletions deployment/v3/mosip/config-server/copy_cm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ COPY_UTIL=../../utils/copy_cm_func.sh
DST_NS=config-server
$COPY_UTIL configmap global default $DST_NS
$COPY_UTIL configmap keycloak-host keycloak $DST_NS
$COPY_UTIL configmap activemq-activemq-artemis-share activemq $DST_NS
#$COPY_UTIL configmap activemq-activemq-artemis-share activemq $DST_NS
$COPY_UTIL configmap s3 s3 $DST_NS
$COPY_UTIL configmap email-gateway msg-gateways $DST_NS
$COPY_UTIL configmap msg-gateway msg-gateways $DST_NS
4 changes: 2 additions & 2 deletions deployment/v3/mosip/config-server/copy_secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ DST_NS=config-server
$COPY_UTIL secret db-common-secrets postgres $DST_NS
$COPY_UTIL secret keycloak keycloak $DST_NS
$COPY_UTIL secret keycloak-client-secrets keycloak $DST_NS
$COPY_UTIL secret activemq-activemq-artemis activemq $DST_NS
#$COPY_UTIL secret activemq-activemq-artemis activemq $DST_NS
$COPY_UTIL secret softhsm-kernel softhsm $DST_NS
$COPY_UTIL secret softhsm-ida softhsm $DST_NS
$COPY_UTIL secret s3 s3 $DST_NS
$COPY_UTIL secret email-gateway msg-gateways $DST_NS
$COPY_UTIL secret msg-gateway msg-gateways $DST_NS
$COPY_UTIL secret mosip-captcha captcha $DST_NS
$COPY_UTIL secret conf-secrets-various conf-secrets $DST_NS
2 changes: 1 addition & 1 deletion deployment/v3/mosip/config-server/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
gitRepo:
uri: https://github.com/mosip/mosip-config
version: 1.2.0.1-v3
version: camdgc-perf
## Folders within the base repo where properties may be found.
searchFolders: ""
private: false
Expand Down
6 changes: 3 additions & 3 deletions deployment/v3/mosip/datashare/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=datashare
CHART_VERSION=12.0.1-B2
CHART_VERSION=12.0.2

echo Create $NS namespace
kubectl create ns $NS
Expand All @@ -22,7 +22,7 @@ function installing_datashare() {
./copy_cm.sh

echo Installing datashare
helm -n $NS install datashare mosip/datashare --set image.repository=mosipqa/data-share-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION
helm -n $NS install datashare mosip/datashare --set image.repository=mosipid/data-share-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION

kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status
return 0
Expand All @@ -34,4 +34,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
installing_datashare # calling function
installing_datashare # calling function
14 changes: 7 additions & 7 deletions deployment/v3/mosip/ida/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ if [ $# -ge 1 ] ; then
fi

NS=ida
CHART_VERSION=12.0.1
KEYGEN_CHART_VERSION=12.0.1
CHART_VERSION=12.0.2
KEYGEN_CHART_VERSION=12.0.2

echo Create $NS namespace
kubectl create ns $NS
Expand All @@ -23,16 +23,16 @@ function installing_ida() {
./copy_cm.sh

echo Running ida keygen
helm -n $NS install ida-keygen mosip/keygen --set image.repository=mosipqa/keys-generator --set image.tag=develop --wait --wait-for-jobs --version $KEYGEN_CHART_VERSION -f keygen_values.yaml
helm -n $NS install ida-keygen mosip/keygen --set image.repository=mosipdev/keys-generator --set image.tag=develop --wait --wait-for-jobs --version $KEYGEN_CHART_VERSION -f keygen_values.yaml

echo Installing ida auth
helm -n $NS install ida-auth mosip/ida-auth --set image.repository=mosipqa/authentication-service --set image.tag=develop --version $CHART_VERSION
helm -n $NS install ida-auth mosip/ida-auth --set image.repository=mosipdev/authentication-service --set image.tag=develop --version $CHART_VERSION

echo Installing ida internal
helm -n $NS install ida-internal mosip/ida-internal --set image.repository=mosipqa/authentication-internal-service --set image.tag=develop --version $CHART_VERSION
helm -n $NS install ida-internal mosip/ida-internal --set image.repository=mosipdev/authentication-internal-service --set image.tag=develop --version $CHART_VERSION

echo Installing ida otp
helm -n $NS install ida-otp mosip/ida-otp --set image.repository=mosipqa/authentication-otp-service --set image.tag=develop --version $CHART_VERSION
helm -n $NS install ida-otp mosip/ida-otp --set image.repository=mosipdev/authentication-otp-service --set image.tag=develop --version $CHART_VERSION

kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status
echo Intalled ida services
Expand All @@ -45,4 +45,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
installing_ida # calling function
installing_ida # calling function
10 changes: 5 additions & 5 deletions deployment/v3/mosip/idrepo/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ function installing_idrepo() {
./copy_cm.sh

echo Running salt generator job
helm -n $NS install idrepo-saltgen mosip/idrepo-saltgen --set image.repository=mosipqa/id-repository-salt-generator --set image.tag=1.2.0.1-B1 --version $CHART_VERSION --wait --wait-for-jobs
helm -n $NS install idrepo-saltgen mosip/idrepo-saltgen --set image.repository=mosipid/id-repository-salt-generator --set image.tag=1.2.0.1-B1 --version $CHART_VERSION --wait --wait-for-jobs

echo Running credential
helm -n $NS install credential mosip/credential --set image.repository=mosipqa/credential-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION
helm -n $NS install credential mosip/credential --set image.repository=mosipdev/credential-service --set image.tag=develop --version $CHART_VERSION

echo Running credential request service
helm -n $NS install credentialrequest mosip/credentialrequest --set image.repository=mosipqa/credential-request-generator --set image.tag=1.2.0.1-B1 --version $CHART_VERSION
helm -n $NS install credentialrequest mosip/credentialrequest --set image.repository=mosipdev/credential-request-generator --set image.tag=develop --version $CHART_VERSION

echo Running identity service
helm -n $NS install identity mosip/identity --set image.repository=mosipqa/id-repository-identity-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION
helm -n $NS install identity mosip/identity --set image.repository=mosipdev/id-repository-identity-service --set image.tag=develop --version $CHART_VERSION

#echo Running vid service
#helm -n $NS install vid mosip/vid --version $CHART_VERSION
Expand All @@ -47,4 +47,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
installing_idrepo # calling function
installing_idrepo # calling function
12 changes: 6 additions & 6 deletions deployment/v3/mosip/kernel/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=kernel
CHART_VERSION=12.0.1-B2
CHART_VERSION=12.0.2

echo Create $NS namespace
kubectl create ns $NS
Expand All @@ -22,20 +22,20 @@ function installing_kernel() {
./copy_cm.sh

echo Installing authmanager
helm -n $NS install authmanager mosip/authmanager --set image.repository=mosipqa/kernel-auth-service --set image.tag=1.2.0.1-B2 --version $CHART_VERSION
helm -n $NS install authmanager mosip/authmanager --set image.repository=mosipid/kernel-auth-service --set image.tag=1.2.0.1-B2 --version $CHART_VERSION

echo Installing auditmanager
helm -n $NS install auditmanager mosip/auditmanager --set image.repository=mosipqa/kernel-auditmanager-service --set image.tag=1.2.0.1 --version $CHART_VERSION

echo Installing idgenerator
helm -n $NS install idgenerator mosip/idgenerator --set image.repository=mosipqa/kernel-idgenerator-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION
helm -n $NS install idgenerator mosip/idgenerator --set image.repository=mosipid/kernel-idgenerator-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION

ADMIN_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-admin-host})
echo Installing masterdata and allowing Admin UI to access masterdata services.
helm -n $NS install masterdata mosip/masterdata --set image.repository=mosipqa/kernel-masterdata-service --set image.tag=1.2.0.1-B1 --set istio.corsPolicy.allowOrigins\[0\].exact=https://$ADMIN_HOST --version $CHART_VERSION
helm -n $NS install masterdata mosip/masterdata --set image.repository=mosipid/kernel-masterdata-service --set image.tag=1.2.0.1-B1 --set istio.corsPolicy.allowOrigins\[0\].exact=https://$ADMIN_HOST --version $CHART_VERSION

echo Installing otpmanager
helm -n $NS install otpmanager mosip/otpmanager --set image.repository=mosipqa/kernel-otpmanager-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION
helm -n $NS install otpmanager mosip/otpmanager --set image.repository=mosipid/kernel-otpmanager-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION

#echo Installing pridgenerator
#helm -n $NS install pridgenerator mosip/pridgenerator --version $CHART_VERSION
Expand All @@ -47,7 +47,7 @@ function installing_kernel() {
#helm -n $NS install syncdata mosip/syncdata --version $CHART_VERSION

echo Installing notifier
helm -n $NS install notifier mosip/notifier --set image.repository=mosipqa/kernel-notification-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION
helm -n $NS install notifier mosip/notifier --set image.repository=mosipid/kernel-notification-service --set image.tag=1.2.0.1-B1 --version $CHART_VERSION

kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status

Expand Down
4 changes: 2 additions & 2 deletions deployment/v3/mosip/keymanager/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=keymanager
CHART_VERSION=12.0.1-B2
CHART_VERSION=12.0.2

echo Creating $NS namespace
kubectl create ns $NS
Expand Down Expand Up @@ -39,4 +39,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
installing_keymanager # calling function
installing_keymanager # calling function
6 changes: 3 additions & 3 deletions deployment/v3/mosip/mosip-file-server/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=mosip-file-server
CHART_VERSION=12.0.1
CHART_VERSION=12.0.2

echo Create $NS namespace
kubectl create ns $NS
Expand All @@ -32,7 +32,7 @@ function installing_mfs() {

echo Install mosip-file-server. This may take a few minutes ..
helm -n $NS install mosip-file-server mosip/mosip-file-server \
--set image.repository=mosipqa/mosip-file-server --set image.tag=1.2.0.1 \
--set image.repository=mosipqa/mosip-file-server --set image.tag=develop \
--set mosipfileserver.host=$FILESERVER_HOST \
--set mosipfileserver.secrets.KEYCLOAK_CLIENT_SECRET="$KEYCLOAK_CLIENT_SECRET" \
--set istio.corsPolicy.allowOrigins\[0\].prefix=https://$API_HOST \
Expand All @@ -54,4 +54,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
installing_mfs # calling function
installing_mfs # calling function
Loading