[stable/kube2iam] Add liveness probe (#3400)

* Add liveness check so kube takes care of kube2iam in the event of any issues

* Configure --app-port to remain consistent with Helm chart value of .host.port

* Bump minor version

* Remove option to disable liveness probe
This commit is contained in:
Dan Gorst
2018-02-01 07:40:12 -08:00
committed by k8s-ci-robot
parent 1144328634
commit c0a4cbb957
4 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: kube2iam
version: 0.7.0
version: 0.8.0
description: Provide IAM credentials to pods based on annotations.
keywords:
- kube2iam
-1
View File
@@ -56,7 +56,6 @@ Parameter | Description | Default
`updateStrategy` | Strategy for DaemonSet updates (requires Kubernetes 1.6+) | `OnDelete`
`verbose` | Enable verbose output | `false`
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
```console
+12 -1
View File
@@ -37,6 +37,7 @@ spec:
{{- if .Values.verbose }}
- --verbose
{{- end }}
- --app-port={{ .Values.host.port }}
env:
- name: HOST_IP
valueFrom:
@@ -59,7 +60,17 @@ spec:
value: {{ .Values.aws.region }}
{{- end }}
ports:
- containerPort: 8181
- containerPort: {{ .Values.host.port }}
livenessProbe:
httpGet:
path: /healthz
port: {{ .Values.host.port }}
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 5
successThreshold: 1
failureThreshold: 3
timeoutSeconds: 1
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- if .Values.host.iptables }}
+1
View File
@@ -8,6 +8,7 @@ host:
ip: $(HOST_IP)
iptables: false
interface: docker0
port: 8181
image:
repository: jtblin/kube2iam