From 5dc991c6e050956d8fa627ec3ca127897efd1bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E8=A6=81=E5=BF=97?= Date: Fri, 8 Dec 2023 11:18:27 +0800 Subject: [PATCH] Networking using the host network --- application/templates/deployment.yaml | 3 +++ application/values-test.yaml | 3 +++ application/values.yaml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/application/templates/deployment.yaml b/application/templates/deployment.yaml index 270fb172..a2f6cd4f 100644 --- a/application/templates/deployment.yaml +++ b/application/templates/deployment.yaml @@ -299,5 +299,8 @@ spec: serviceAccountName: {{ template "application.name" $ }} {{- end }} {{- end }} + {{- if .Values.deployment.hostNetwork }} + hostNetwork: {{ .Values.deployment.hostNetwork }} + {{- end }} terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }} {{- end }} diff --git a/application/values-test.yaml b/application/values-test.yaml index 80013c92..29c795a2 100644 --- a/application/values-test.yaml +++ b/application/values-test.yaml @@ -217,6 +217,9 @@ deployment: name: https protocol: TCP + # Networking using the host network + hostNetwork: true + # Graceful termination timeout terminationGracePeriodSeconds: 120 diff --git a/application/values.yaml b/application/values.yaml index b6a3b2d4..ccb91391 100644 --- a/application/values.yaml +++ b/application/values.yaml @@ -285,6 +285,9 @@ deployment: # name: https # protocol: TCP + # Networking using the host network + hostNetwork: + # Graceful termination timeout terminationGracePeriodSeconds: