updated wrong manifests
This commit is contained in:
parent
956940549b
commit
dd7d1c438b
3 changed files with 16 additions and 13 deletions
|
@ -24,6 +24,8 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: frontend
|
app: frontend
|
||||||
|
annotations:
|
||||||
|
sidecar.istio.io/rewriteAppHTTPProbers: "true"
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
|
|
|
@ -25,17 +25,11 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: loadgenerator
|
app: loadgenerator
|
||||||
|
annotations:
|
||||||
|
sidecar.istio.io/rewriteAppHTTPProbers: "true"
|
||||||
spec:
|
spec:
|
||||||
terminationGracePeriodSeconds: 5
|
terminationGracePeriodSeconds: 5
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
initContainers:
|
|
||||||
- name: wait-frontend
|
|
||||||
image: alpine:3.6
|
|
||||||
command: ['sh', '-c', 'set -x; apk add --no-cache curl &&
|
|
||||||
until timeout -t 2 curl -f "http://${FRONTEND_ADDR}"; do
|
|
||||||
echo "waiting for http://${FRONTEND_ADDR}";
|
|
||||||
sleep 2;
|
|
||||||
done;']
|
|
||||||
env:
|
env:
|
||||||
- name: FRONTEND_ADDR
|
- name: FRONTEND_ADDR
|
||||||
value: "frontend:80"
|
value: "frontend:80"
|
||||||
|
|
|
@ -199,8 +199,6 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: frontend
|
app: frontend
|
||||||
annotations:
|
|
||||||
sidecar.istio.io/rewriteAppHTTPProbers: "true"
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: server
|
- name: server
|
||||||
|
@ -446,11 +444,20 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: loadgenerator
|
app: loadgenerator
|
||||||
annotations:
|
|
||||||
sidecar.istio.io/rewriteAppHTTPProbers: "true"
|
|
||||||
spec:
|
spec:
|
||||||
terminationGracePeriodSeconds: 5
|
terminationGracePeriodSeconds: 5
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
initContainers:
|
||||||
|
- name: wait-frontend
|
||||||
|
image: alpine:3.6
|
||||||
|
command: ['sh', '-c', 'set -x; apk add --no-cache curl &&
|
||||||
|
until timeout -t 2 curl -f "http://${FRONTEND_ADDR}"; do
|
||||||
|
echo "waiting for http://${FRONTEND_ADDR}";
|
||||||
|
sleep 2;
|
||||||
|
done;']
|
||||||
|
env:
|
||||||
|
- name: FRONTEND_ADDR
|
||||||
|
value: "frontend:80"
|
||||||
containers:
|
containers:
|
||||||
- name: main
|
- name: main
|
||||||
image: gcr.io/google-samples/microservices-demo/loadgenerator:v0.1.2
|
image: gcr.io/google-samples/microservices-demo/loadgenerator:v0.1.2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue