浏览代码

Make sure host ports are not retained on upgrade

sonicaj 3 年之前
父节点
当前提交
372707f1e5
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      charts/chia/1.3.18/templates/deployment.yaml
  2. 3 3
      test/chia/1.3.18/templates/deployment.yaml

+ 3 - 3
charts/chia/1.3.18/templates/deployment.yaml

@@ -16,9 +16,7 @@ spec:
       labels: {{ include "common.labels.selectorLabels" . | nindent 8 }}
     spec:
       # FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router
-      {{ if eq (include "hostNetworkingEnabled" .) "true" }}
-      hostNetwork: true
-      {{ end }}
+      hostNetwork: {{ include "hostNetworkingEnabled" . }}
       containers:
         - name: {{ .Chart.Name }}
           {{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
@@ -31,9 +29,11 @@ spec:
             - name: chia-network
               protocol: TCP
               containerPort: 8444
+              hostPort: null
             - name: chia-farmer
               protocol: TCP
               containerPort: 8447
+              hostPort: null
           {{ $envList := (default list .Values.environmentVariables) }}
           {{ $envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile") }}
           {{ $envList = mustAppend $envList (dict "name" "farmr" "value" $.Values.farmr_env) }}

+ 3 - 3
test/chia/1.3.18/templates/deployment.yaml

@@ -16,9 +16,7 @@ spec:
       labels: {{ include "common.labels.selectorLabels" . | nindent 8 }}
     spec:
       # FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router
-      {{ if eq (include "hostNetworkingEnabled" .) "true" }}
-      hostNetwork: true
-      {{ end }}
+      hostNetwork: {{ include "hostNetworkingEnabled" . }}
       containers:
         - name: {{ .Chart.Name }}
           {{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
@@ -31,9 +29,11 @@ spec:
             - name: chia-network
               protocol: TCP
               containerPort: 8444
+              hostPort: null
             - name: chia-farmer
               protocol: TCP
               containerPort: 8447
+              hostPort: null
           {{ $envList := (default list .Values.environmentVariables) }}
           {{ $envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile") }}
           {{ $envList = mustAppend $envList (dict "name" "farmr" "value" $.Values.farmr_env) }}