Skip to content

Commit

Permalink
Deployment change 261023
Browse files Browse the repository at this point in the history
  • Loading branch information
vimal-knoldus committed Oct 26, 2023
1 parent f4cb02e commit 3b04bd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin-service/azure-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
protocol: TCP
env:
- name: COSMOS_KEY
value: LtF8VYAv0rEVomFaxvwbCXaWgQgfUPin65FLVGnYtIJdtG8weqx25nFQrkQ2XCGR6pcPZbEP99ohACDb8NEYqA==
value: kLApjiCXgRCIRvbN7rPoRyAvOeZlHZeeQGfKFICrlwWJ87XTcYovjtZefffvyYFfjoDZwuEzFvCKACDbHZxDSA==
- name: COSMOS_URI
value: https://az-nashtech-db.documents.azure.com:443/
- name: KAFKA_SERVER
Expand All @@ -32,7 +32,7 @@ spec:
- name: SASL_MECHANISM
value: PLAIN
- name: JASS_CONFIG
value: org.apache.kafka.common.security.plain.PlainLoginModule required username="$ConnectionString" password="Endpoint=sb://az-nashtech-eventhub.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=B87NtYTykYr5HGQA7sBekeIVafkRrGtMS+AEhNePjN8=";
value: org.apache.kafka.common.security.plain.PlainLoginModule required username="$ConnectionString" password="Endpoint=sb://ntdemoevtnamespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=kr/qfACiaY9oEQF+sERt1vJa5d1BBHxH0+AEhBFXTfQ=";
- name: KEY_SERIALIZER
value: org.apache.kafka.common.serialization.StringSerializer
- name: VALUE_SERIALIZER
Expand Down
4 changes: 2 additions & 2 deletions az-svc-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DEPLOYMENT_NAME="adminservice"
RESOURCE_GROUP_NAME="az-nashtech-resource-group"

sudo az aks install-cli
sudo az acr login --name ntdemocontainerregistry --username ntdemocontainerregistry --password NshiXQFKNlAYyXJ/p7YxsSHwYqqEZwenHpJiQbpu9I+ACRDsvZur
sudo az acr login --name ntdemocontainerregistry --username ntdemocontainerregistry --password JlTMoFCc7LYcPJ/W3d78KcNiOjIT1Qzuxlq3H6Ckr9+ACRBdb1xa
echo "---------build and deploy $SERVICE_NAME-----------"
cd "$SERVICE_NAME" || exit
mvn clean install
Expand All @@ -16,7 +16,7 @@ echo "--------docker build done, docker push---------------"
sudo docker push ntdemocontainerregistry.azurecr.io/"$SERVICE_NAME":"$GITHUB_SHA"
echo "--------pushed docker image, deploy to aks cluster--------------------------"

sudo az login --service-principal -u 72c49877-6440-4e98-995b-42e97b099f8d -p WnM8Q~kzKjb5XAvu.Yw4f7lqeQ4H5euqauzvvaJ4 --tenant 023d14ee-6534-4891-94be-7d7350125054
sudo az login --service-principal -u d06701bf-c5a5-4597-aead-a2c607825554 -p s.m8Q~cwHZGO3sl8FPL1~uJZ_X_KJH3fHgj7EcYm --tenant 023d14ee-6534-4891-94be-7d7350125054
echo "--------getting kube config--------------------------"
sudo az aks get-credentials --resource-group "$RESOURCE_GROUP_NAME" --name "$AKS_CLUSTER"
# setup kustomize
Expand Down

0 comments on commit 3b04bd8

Please sign in to comment.