Adding host network option. (#15197)

Signed-off-by: Alexey Shabalin <alexey.shabalin@fairfaxmedia.com.au>
This commit is contained in:
axozoid
2019-07-01 23:05:07 -07:00
committed by Kubernetes Prow Robot
parent 595f51dda8
commit cd2f373d61
4 changed files with 4 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.2.4
version: 1.3.0
keywords:
- spot
- termination
@@ -44,3 +44,4 @@ Parameter | Description | Default
`tolerations` | node taints to tolerate (requires Kubernetes >=1.6) | `[]`
`affinity` | node/pod affinities (requires Kubernetes >=1.6) | `{}`
`priorityClassName` | pod priorityClassName for pod. | ``
`hostNetwork` | controls whether the pod may use the node network namespace | `true`
@@ -14,6 +14,7 @@ spec:
app.kubernetes.io/name: {{ template "k8s-spot-termination-handler.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
hostNetwork: {{ .Values.hostNetwork }}
serviceAccountName: {{ template "k8s-spot-termination-handler.serviceAccountName" . }}
containers:
- name: {{ .Chart.Name }}
@@ -63,3 +63,4 @@ tolerations: []
# effect: "NoSchedule"
affinity: {}
hostNetwork: true