Skip to content

Commit

Permalink
Merge pull request #19 from lalithkota/main
Browse files Browse the repository at this point in the history
Changed mosip components version to stable and increased max connecti…
  • Loading branch information
shibu-narayanan authored Mar 1, 2024
2 parents 0a10e88 + 432d4b0 commit e89e090
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
17 changes: 12 additions & 5 deletions kubernetes/esignet/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,32 @@ echo Istio label
kubectl label ns $NS istio-injection=disabled --overwrite

echo Installing Softhsm for Esignet and mockid
helm -n $NS install softhsm-esignet mosip/softhsm -f softhsm-values.yaml --version 12.0.2 --wait
helm -n $NS install softhsm-mock-identity-system mosip/softhsm -f softhsm-values.yaml --version 12.0.2 --wait
helm -n $NS install softhsm-esignet mosip/softhsm -f softhsm-values.yaml --version 12.0.1-B2 --wait
helm -n $NS install softhsm-mock-identity-system mosip/softhsm -f softhsm-values.yaml --version 12.0.1-B2 --wait

$COPY_UTIL configmap global default $NS
$COPY_UTIL configmap artifactory-share artifactory $NS
$COPY_UTIL configmap config-server-share config-server $NS

echo Installing mock identity system
helm -n $NS install mock-identity-system mosip/mock-identity-system -f values.yaml --version 0.9.1 --wait
helm -n $NS upgrade --install mock-identity-system mosip/mock-identity-system -f values.yaml --version 0.9.1 --wait

echo Installing esignet
helm -n $NS install esignet mosip/esignet -f values.yaml --version 1.2.0 --wait
helm -n $NS upgrade --install esignet mosip/esignet \
--set image.repository=mosipid/esignet \
--set image.tag="1.2.0" \
--version 1.2.0 \
-f values.yaml \
--wait

echo Installing OIDC UI
helm -n $NS install oidc-ui mosip/oidc-ui \
helm -n $NS upgrade --install oidc-ui mosip/oidc-ui \
--set oidc_ui.configmaps.oidc-ui.REACT_APP_API_BASE_URL="http://esignet.$NS/v1/esignet" \
--set oidc_ui.configmaps.oidc-ui.REACT_APP_SBI_DOMAIN_URI="http://esignet.$NS" \
--set oidc_ui.configmaps.oidc-ui.OIDC_UI_PUBLIC_URL=''\
--set istio.enabled=false \
--set image.repository=mosipid/oidc-ui \
--set image.tag="1.2.0" \
--version 1.2.0 \
--wait

Expand Down
3 changes: 3 additions & 0 deletions kubernetes/esignet/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
istio:
enabled: false

metrics:
enabled: false

extraEnvVars:
- name: softhsm_esignet_security_pin
valueFrom:
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/keymanager/global-conf-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ data:
installation-name: openg2p
installation-domain: ${SANDBOX_HOSTNAME}
mosip-version: develop
mosip-api-host: api.${SANDBOX_HOSTNAME}
mosip-api-internal-host: api-internal.${SANDBOX_HOSTNAME}
mosip-api-host: ${SANDBOX_HOSTNAME}
mosip-api-internal-host: ${SANDBOX_HOSTNAME}
mosip-prereg-host: prereg.${SANDBOX_HOSTNAME}
mosip-activemq-host: activemq.${SANDBOX_HOSTNAME}
mosip-kibana-host: kibana.${SANDBOX_HOSTNAME}
Expand Down
12 changes: 6 additions & 6 deletions kubernetes/keymanager/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ kubectl label ns $KEYMANAGER_NS istio-injection=disabled --overwrite
envsubst < global-conf-map.yaml | kubectl apply -f -

echo Installing Softhsm for Kernel
helm -n $SOFTHSM_NS install softhsm-kernel mosip/softhsm -f softhsm-values.yaml --version 12.0.2 --wait
helm -n $SOFTHSM_NS install softhsm-kernel mosip/softhsm -f softhsm-values.yaml --version 12.0.1-B2 --wait

echo Installing Secrets required by config-server
helm -n $CONF_SECRETS_NS install conf-secrets mosip/conf-secrets --version 12.0.2 --wait
helm -n $CONF_SECRETS_NS install conf-secrets mosip/conf-secrets --version 12.0.1-B4 --wait

echo Installing Config Server
$COPY_UTIL configmap global default $CONFIG_SERVER_NS
Expand All @@ -49,25 +49,25 @@ $COPY_UTIL secret conf-secrets-various $CONF_SECRETS_NS $CONFIG_SERVER_NS

./dummy_secrets.sh

helm -n $CONFIG_SERVER_NS install config-server mosip/config-server -f config-server-values.yaml --version 12.0.2
helm -n $CONFIG_SERVER_NS upgrade --install config-server mosip/config-server -f config-server-values.yaml --version 12.0.1-B4

kubectl -n $CONFIG_SERVER_NS set env --keys=openg2p_admin_client_secret --from=secret/keycloak-client-secrets deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_
kubectl -n $CONFIG_SERVER_NS set env deployment/config-server SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_HUB_SECRET_ENCRYPTION_KEY-

kubectl -n $CONFIG_SERVER_NS rollout status deploy/config-server

echo Installing Artifactory
helm -n $ARTIFACTORY_NS install artifactory mosip/artifactory --version 12.0.2 --wait
helm -n $ARTIFACTORY_NS upgrade --install artifactory mosip/artifactory --version 12.0.1-B7 --wait

echo Installing kernel Keygen
$COPY_UTIL configmap global default $KEYMANAGER_NS
$COPY_UTIL configmap artifactory-share $ARTIFACTORY_NS $KEYMANAGER_NS
$COPY_UTIL configmap config-server-share $CONFIG_SERVER_NS $KEYMANAGER_NS
$COPY_UTIL configmap softhsm-kernel-share $SOFTHSM_NS $KEYMANAGER_NS

helm -n $KEYMANAGER_NS install kernel-keygen mosip/keygen -f keygen-values.yaml --version 12.0.2 --wait --wait-for-jobs
helm -n $KEYMANAGER_NS install kernel-keygen mosip/keygen -f keygen-values.yaml --version 12.0.1-B3 --wait --wait-for-jobs

echo Installing Keymanager
helm -n $KEYMANAGER_NS install keymanager mosip/keymanager --version 12.0.2 --set istio.enabled=false --wait
helm -n $KEYMANAGER_NS upgrade --install keymanager mosip/keymanager --version 12.0.1-B3 --set istio.enabled=false --wait

envsubst < istio-virtualservice.template.yaml | kubectl -n $KEYMANAGER_NS apply -f -
2 changes: 1 addition & 1 deletion kubernetes/postgresql/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ helm repo update
echo Create $NS namespace
kubectl create ns $NS

helm -n $NS install postgres oci://registry-1.docker.io/bitnamicharts/postgresql --version 13.2.27 --wait -f values.yaml $@
helm -n $NS upgrade --install postgres oci://registry-1.docker.io/bitnamicharts/postgresql --version 13.2.27 --wait -f values.yaml $@

if [ "$POSTGRES_ISTIO_ENABLED" != "false" ]; then
kubectl apply -n $NS -f istio-virtualservice.yaml
Expand Down
1 change: 1 addition & 0 deletions kubernetes/postgresql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ primary:
wal_level = logical
max_wal_senders = 20
max_replication_slots = 10
max_connections = 500
initdb:
scripts:
Expand Down

0 comments on commit e89e090

Please sign in to comment.