Add possibility to set NOTICE_URL environment variable (#15927)

Signed-off-by: skarj <skaarj.sergey@gmail.com>
This commit is contained in:
Sergey Baranov
2019-07-29 02:05:55 -07:00
committed by Kubernetes Prow Robot
parent 56d24fbeba
commit 7d0bd56c8a
4 changed files with 9 additions and 1 deletions
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.13.0-1"
description: The K8s Spot Termination handler handles draining AWS Spot Instances in response to termination requests.
name: k8s-spot-termination-handler
version: 1.4.0
version: 1.4.1
keywords:
- spot
- termination
@@ -29,6 +29,7 @@ Parameter | Description | Default
`image.repository` | container image repository | `kubeaws/kube-spot-termination-notice-handler`
`image.tag` | container image tag | `1.13.0-1`
`image.pullPolicy` | container image pull policy | `IfNotPresent`
`noticeUrl` | the URL of EC2 spot instance termination notice endpoint | `http://169.254.169.254/latest/meta-data/spot/termination-time`
`pollInterval` | the interval in seconds between attempts to poll EC2 metadata API for termination events | `"5"`
`verbose` | Enable verbose | _not defined_
`slackUrl` | Slack webhook URL to send messages when a termination notice is received | _not defined_
@@ -37,6 +37,10 @@ spec:
- name: VERBOSE
value: {{ . | quote }}
{{- end }}
{{- with .Values.noticeUrl }}
- name: NOTICE_URL
value: {{ . | quote }}
{{- end }}
{{- if not .Values.enableLogspout }}
- name: LOGSPOUT
value: "ignore"
@@ -17,6 +17,9 @@ image:
tag: 1.13.0-1
pullPolicy: IfNotPresent
# URL of EC2 spot instance termination notice endpoint
noticeUrl: http://169.254.169.254/latest/meta-data/spot/termination-time
# Poll the metadata every pollInterval seconds for termination events:
pollInterval: 5