Skip to content

Commit

Permalink
Deployment changes 231023
Browse files Browse the repository at this point in the history
  • Loading branch information
vimal-knoldus committed Oct 23, 2023
1 parent c7f2b1e commit ad055d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions admin-service/azure-deploy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ spec:
protocol: TCP
env:
- name: COSMOS_KEY
value: fRafGwI2i9OVY78MincqeS2vB3ORJ2UPIoAakjGX5YgmM5xz8Wg9f61HelDB6s0shsAk5KSL8OkRACDbUH8ocg==
value: LtF8VYAv0rEVomFaxvwbCXaWgQgfUPin65FLVGnYtIJdtG8weqx25nFQrkQ2XCGR6pcPZbEP99ohACDb8NEYqA==
- name: COSMOS_URI
value: https://az-nashtech-db.documents.azure.com:443/
- name: KAFKA_SERVER
value: ntdemoevtnamespace.servicebus.windows.net:9093
value: az-nashtech-eventhub.servicebus.windows.net:9093
- name: KAFKA_SECURITY_PROTOCOL
value: SASL_SSL
- name: SASL_MECHANISM
value: PLAIN
- name: JASS_CONFIG
value: org.apache.kafka.common.security.plain.PlainLoginModule required username="$ConnectionString" password="Endpoint=sb://ntdemoevtnamespace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=R2VBAzrTUtPto2W5d4fKhzZGH/AWPXupJ+AEhK2Me8E=";
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=";
- 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 cfCgHVF4pR4vo1Zrcpkj76bFMQeYgcCsKWVj5LqcZr+ACRAhHjyX
sudo az acr login --name ntdemocontainerregistry --username ntdemocontainerregistry --password NshiXQFKNlAYyXJ/p7YxsSHwYqqEZwenHpJiQbpu9I+ACRDsvZur
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 8eba7be9-c943-4eb4-9443-7be18d8ac72d -p Ie.8Q~tVh_EFBbVoePRk61NJ~wammEHgVyZKFbRP --tenant 023d14ee-6534-4891-94be-7d7350125054
sudo az login --service-principal -u 72c49877-6440-4e98-995b-42e97b099f8d -p WnM8Q~kzKjb5XAvu.Yw4f7lqeQ4H5euqauzvvaJ4 --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 ad055d4

Please sign in to comment.