Skip to content

Commit

Permalink
Update azure deployment file
Browse files Browse the repository at this point in the history
  • Loading branch information
vimal-knoldus committed Sep 25, 2023
1 parent 853c7a9 commit 72a0546
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions admin-service/azure-deploy-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: adminservice
spec:
replicas: 1
selector:
matchLabels:
app: adminservice
template:
metadata:
labels:
app: adminservice
spec:
containers:
- name: adminservice
image: ntdemocontainerregistry.azurecr.io/IMAGE:TAG
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: adminservice
spec:
selector:
app: adminservice
ports:
- protocol: TCP
port: 80
targetPort: 8080
type: LoadBalancer
2 changes: 1 addition & 1 deletion az-svc-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ echo "---------------set docker image for kustomize-------------------"
./kustomize edit set image ntdemocontainerregistry.azurecr.io/IMAGE:TAG=ntdemocontainerregistry.azurecr.io/"$SERVICE_NAME":"$GITHUB_SHA"
echo "---------------deploy through kubectl------------------"
# deploy through kubectl
./kustomize build . | kubectl apply -f -
./kustomize build . | kubectl apply -f -azure-deploy-service.yaml
kubectl rollout status deployment/"$DEPLOYMENT_NAME"
kubectl get services -o wide
echo "-------------$SERVICE_NAME deployed on $CLUSTER_NAME----------"
Expand Down

0 comments on commit 72a0546

Please sign in to comment.