Skip to content

Commit

Permalink
Merge pull request #2 from scalar-labs/graceful-shutdown-for-envoy-an…
Browse files Browse the repository at this point in the history
…d-scalardl

Add prestop for graceful shutdown envoy pods
  • Loading branch information
feeblefakie authored Apr 26, 2021
2 parents caf0aa8 + fc9467f commit add9315
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/scalardl/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: scalardl
description: Implementation scalardl.
type: application
version: 1.2.2
version: 1.2.3
appVersion: 2.1.0
deprecated: false
icon: https://scalar-labs.com/wp-content/themes/scalar/assets/img/logo_scalar.svg
Expand Down
4 changes: 2 additions & 2 deletions charts/scalardl/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# scalardl

Implementation scalardl.
Current chart version is `1.2.2`
Current chart version is `1.2.3`

## Values

Expand All @@ -11,7 +11,7 @@ Current chart version is `1.2.2`
| envoy.envoyConfiguration.adminAccessLogPath | string | `"/dev/stdout"` | admin log path |
| envoy.image.pullPolicy | string | `"IfNotPresent"` | Specify a imagePullPolicy |
| envoy.image.repository | string | `"ghcr.io/scalar-labs/scalar-envoy"` | Docker image |
| envoy.image.version | string | `"1.0.0"` | |
| envoy.image.version | string | `"1.0.1"` | |
| envoy.imagePullSecrets | list | `[]` | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. |
| envoy.nodeSelector | object | `{}` | nodeSelector is form of node selection constraint |
| envoy.podSecurityContext | object | `{}` | PodSecurityContext holds pod-level security attributes and common container settings |
Expand Down
4 changes: 4 additions & 0 deletions charts/scalardl/templates/envoy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ spec:
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "curl -sX POST 127.0.0.1:9001/healthcheck/fail; sleep 30"]
resources:
{{- toYaml .Values.envoy.resources | nindent 12 }}
{{- with .Values.envoy.nodeSelector }}
Expand Down
2 changes: 1 addition & 1 deletion charts/scalardl/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ envoy:
# envoy.image.repository -- Docker image
repository: ghcr.io/scalar-labs/scalar-envoy
# envoy.image.tag -- Docker tag
version: 1.0.0
version: 1.0.1
# envoy.image.pullPolicy -- Specify a imagePullPolicy
pullPolicy: IfNotPresent

Expand Down

0 comments on commit add9315

Please sign in to comment.