Commit 372707f1 authored by sonicaj's avatar sonicaj

Make sure host ports are not retained on upgrade

parent bb453a39
......@@ -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) }}
......
......@@ -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) }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment