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

WIFI-13130 - add support for qa03 and dev03 env on another cluster #265

Merged
merged 1 commit into from
Apr 10, 2024
Merged
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
3 changes: 3 additions & 0 deletions chart/environment-values/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_values.custom_*.yaml
certs/
env_*
7 changes: 3 additions & 4 deletions chart/environment-values/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export OWRRM_VERSION_TAG=$(echo ${OWRRM_VERSION} | tr '/' '-')
# Check deployment method that's required for this environment
helm plugin install https://github.com/databus23/helm-diff || true
if [[ "$DEPLOY_METHOD" == "git" ]] ; then
helm plugin install https://github.com/aslafy-z/helm-git --version 0.10.0 || true
helm plugin list | grep "^helm-git" || helm plugin install https://github.com/aslafy-z/helm-git || true
rm -rf wlan-cloud-ucentral-deploy || true
git clone https://github.com/Telecominfraproject/wlan-cloud-ucentral-deploy.git
cd wlan-cloud-ucentral-deploy
Expand Down Expand Up @@ -162,14 +162,13 @@ else
export OWGW_SERVICE_DNS_RECORDS=""
fi

envsubst < values.custom.tpl.yaml > values.custom-${NAMESPACE}.yaml
envsubst < values.custom.tpl.yaml > _values.custom-${NAMESPACE}.yaml

set -x
helm upgrade --install --create-namespace --wait --timeout 60m \
--namespace openwifi-${NAMESPACE} \
${VALUES_FILES_FLAGS[*]} \
${EXTRA_VALUES_FLAGS[*]} \
-f values.custom-${NAMESPACE}.yaml \
-f _values.custom-${NAMESPACE}.yaml \
--set-file owgw.certs."restapi-cert\.pem"=$CERT_LOCATION \
--set-file owgw.certs."restapi-key\.pem"=$KEY_LOCATION \
--set-file owgw.certs."websocket-cert\.pem"=$CERT_LOCATION \
Expand Down
22 changes: 22 additions & 0 deletions chart/environment-values/values.openwifi-dev03.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
owgwui:
ingresses:
default:
annotations:
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be

owprovui:
ingresses:
default:
annotations:
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be

owrrm:
services:
owrrm:
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be

haproxy:
service:
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
owgw:
configProperties:
radius.proxy.enable: "false"
radius.proxy.accounting.port: 1813
radius.proxy.authentication.port: 1812
radius.proxy.coa.port: 3799
radsec.keepalive: 120
32 changes: 16 additions & 16 deletions chart/environment-values/values.openwifi-qa.owls-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,26 @@ owgw:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:ap-south-1:289708231103:certificate/2cc8c764-11fd-411d-bf7d-a93f488f3f6c
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "16002,16003,17002"

configProperties:
simulatorid: 53494D020202
storage.type: postgresql
storage.type.postgresql.host: owgw-pgsql
storage.type.postgresql.database: owgw
storage.type.postgresql.username: owgw
storage.type.postgresql.password: owgw
openwifi.certificates.allowmismatch: "true"
#configProperties:
#simulatorid: 53494D020202
#storage.type: postgresql
#storage.type.postgresql.host: owgw-pgsql
#storage.type.postgresql.database: owgw
#storage.type.postgresql.username: owgw
#storage.type.postgresql.password: owgw
#openwifi.certificates.allowmismatch: "true"

resources:
requests:
cpu: 2000m
memory: 3000Mi
memory: 3Gi
limits:
cpu: 2000m
memory: 3000Mi
memory: 8Gi

postgresql:
enabled: true
fullnameOverride: owgw-pgsql
postgresqlDatabase: owgw
postgresqlUsername: owgw
postgresqlPassword: owgw
#postgresql:
# enabled: true
# fullnameOverride: owgw-pgsql
# postgresqlDatabase: owgw
# postgresqlUsername: owgw
# postgresqlPassword: owgw
29 changes: 29 additions & 0 deletions chart/environment-values/values.openwifi-qa03.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

owgw:
services:
owgw:
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be

owgwui:
ingresses:
default:
annotations:
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be

owprovui:
ingresses:
default:
annotations:
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be

owrrm:
services:
owrrm:
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be

haproxy:
service:
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:us-east-2:289708231103:certificate/299d7444-acc4-46c2-ae83-40d2cd5f49be
Loading