Commit 738c394c authored by Daniel Scholl's avatar Daniel Scholl
Browse files

Updated

parent 7f7a4c87
......@@ -17,7 +17,7 @@ spec:
http:
paths:
- backend:
serviceName: default-service
serviceName: osdu-common
servicePort: 80
path: /*
- backend:
......@@ -67,8 +67,8 @@ spec:
- backend:
serviceName: unit-service
servicePort: 80
path: /api/unit/*
path: /api/unit/*
- backend:
serviceName: file
servicePort: 80
path: /api/file/v2/*
path: /api/file/v2/*
apiVersion: v1
kind: Service
metadata:
name: default-service
name: osdu-common
namespace: osdu
labels:
app: default-service
app: osdu-common
spec:
type: ClusterIP
ports:
- port: 80
selector:
app: default-service
app: osdu-common
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: default-service
name: osdu-common
namespace: osdu
spec:
selector:
matchLabels:
app: default-service
app: osdu-common
replicas: 1
template:
metadata:
labels:
app: default-service
app: osdu-common
spec:
containers:
- name: default-service
- name: osdu-common
image: neilpeterson/aks-helloworld:v1
ports:
- containerPort: 80
env:
- name: TITLE
value: "Azure OSDU Platform - (AKS)"
\ No newline at end of file
value: "Azure OSDU Platform - (AKS)"
......@@ -39,10 +39,12 @@ steps:
max_attempts=20
until kubectl get deployment $SERVICE_NAME
do
echo "Waiting for Deployment..."
if [ ${attempt_counter} -eq ${max_attempts} ];then
echo "Deployment Image not updated, integration tests are skipped"
exit 1
fi
attempt_counter=$(($attempt_counter+1))
sleep 10
[[ attempt_counter -eq $max_attempts ]] && echo "Deployment not found!" && exit 1
((attempt_counter++))
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment