From 96ba4e9ac011e05115e45d36a0343f4cc87665c6 Mon Sep 17 00:00:00 2001 From: swimablefish Date: Thu, 21 Nov 2024 14:28:57 +0800 Subject: [PATCH] Make the kwok chart support `hostNetwork` to avoid the issue #819 Update the README.md in the kwok helm chart to pass the job pull-kwok-verify-main update the comment --- charts/kwok/Chart.yaml | 2 +- charts/kwok/README.md | 1 + charts/kwok/templates/deployment.yaml | 1 + charts/kwok/values.yaml | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/kwok/Chart.yaml b/charts/kwok/Chart.yaml index 6b9ecb8d7..0e379984d 100644 --- a/charts/kwok/Chart.yaml +++ b/charts/kwok/Chart.yaml @@ -13,4 +13,4 @@ maintainers: - name: wzshiming email: wzshiming@hotmail.com appVersion: v0.6.1 -version: 0.1.1 +version: 0.1.2 diff --git a/charts/kwok/README.md b/charts/kwok/README.md index 2e136aeff..ffe3339c6 100644 --- a/charts/kwok/README.md +++ b/charts/kwok/README.md @@ -37,6 +37,7 @@ The following table lists the configurable parameters of the kwok chart and thei |-----|------|---------|-------------| | affinity | object | `{}` | | | fullnameOverride | string | `"kwok-controller"` | Override the `fullname` of the chart. | +| hostNetwork | bool | `false` | Change `hostNetwork` to `true` if you want to deploy in a kind cluster. | | image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. | | image.repository | string | `"registry.k8s.io/kwok/kwok"` | Image repository. | | image.tag | string | `""` | Overrides the image tag whose default is {{ .Chart.AppVersion }}. | diff --git a/charts/kwok/templates/deployment.yaml b/charts/kwok/templates/deployment.yaml index 6a39b86e4..b560ab36b 100644 --- a/charts/kwok/templates/deployment.yaml +++ b/charts/kwok/templates/deployment.yaml @@ -103,3 +103,4 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + hostNetwork: {{ .Values.hostNetwork }} diff --git a/charts/kwok/values.yaml b/charts/kwok/values.yaml index 6b6cefddb..8f532de9c 100644 --- a/charts/kwok/values.yaml +++ b/charts/kwok/values.yaml @@ -24,3 +24,6 @@ affinity: {} # -- The replica count for Deployment. replicas: 1 + +# -- Change `hostNetwork` to `true` if you want to deploy in a kind cluster. +hostNetwork: false