Skip to content

Commit

Permalink
Update rendered quickstart example utilizing the shutdown-manager
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Sloka <[email protected]>
  • Loading branch information
stevesloka committed Feb 13, 2020
1 parent aa2cae4 commit 81f421a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/contour/03-envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
args:
- envoy
- shutdown-manager
image: stevesloka/contour:dev
image: docker.io/projectcontour/contour:master
imagePullPolicy: Always
lifecycle:
preStop:
Expand Down
36 changes: 26 additions & 10 deletions examples/render/contour.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1612,6 +1612,26 @@ spec:
app: envoy
spec:
containers:
- command:
- /bin/contour
args:
- envoy
- shutdown-manager
image: docker.io/projectcontour/contour:master
imagePullPolicy: IfNotPresent
lifecycle:
preStop:
httpGet:
path: /shutdown
port: 8090
scheme: HTTP
livenessProbe:
httpGet:
path: /healthz
port: 8090
initialDelaySeconds: 3
periodSeconds: 10
name: shutdown-manager
- args:
- -c
- /config/envoy.json
Expand Down Expand Up @@ -1648,7 +1668,7 @@ spec:
path: /ready
port: 8002
initialDelaySeconds: 3
periodSeconds: 3
periodSeconds: 4
volumeMounts:
- name: envoy-config
mountPath: /config
Expand All @@ -1658,15 +1678,10 @@ spec:
mountPath: /ca
lifecycle:
preStop:
exec:
command:
- bash
- -c
- --
- echo
- -ne
- "POST /healthcheck/fail HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n"
- '>/dev/tcp/localhost/9001'
httpGet:
path: /shutdown
port: 8090
scheme: HTTP
initContainers:
- args:
- bootstrap
Expand Down Expand Up @@ -1696,6 +1711,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
automountServiceAccountToken: false
terminationGracePeriodSeconds: 300
volumes:
- name: envoy-config
emptyDir: {}
Expand Down
Empty file.

0 comments on commit 81f421a

Please sign in to comment.