Fix port conflict for tiller
This change is primarily based on this PS-https://review.opendev.org/#/c/659369/ Change-Id: Ia213445be76b58870bec009b75a16a4e3374a5c3
This commit is contained in:
parent
6a9b3bf9c9
commit
2203d1dad0
@ -23,14 +23,14 @@ httpGet:
|
|||||||
{{- define "tillerReadinessProbeTemplate" }}
|
{{- define "tillerReadinessProbeTemplate" }}
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /readiness
|
path: /readiness
|
||||||
port: 44135
|
port: {{ .Values.conf.tiller.probe_port }}
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- define "tillerLivenessProbeTemplate" }}
|
{{- define "tillerLivenessProbeTemplate" }}
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /liveness
|
path: /liveness
|
||||||
port: 44135
|
port: {{ .Values.conf.tiller.probe_port }}
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
@ -167,6 +167,10 @@ spec:
|
|||||||
{{- if .Values.conf.tiller.storage }}
|
{{- if .Values.conf.tiller.storage }}
|
||||||
- --storage={{ .Values.conf.tiller.storage }}
|
- --storage={{ .Values.conf.tiller.storage }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
- -listen
|
||||||
|
- ":{{ .Values.conf.tiller.port }}"
|
||||||
|
- -probe-listen
|
||||||
|
- ":{{ .Values.conf.tiller.probe_port }}"
|
||||||
- -logtostderr
|
- -logtostderr
|
||||||
- -v
|
- -v
|
||||||
- {{ .Values.conf.tiller.verbosity | quote }}
|
- {{ .Values.conf.tiller.verbosity | quote }}
|
||||||
|
@ -206,7 +206,8 @@ conf:
|
|||||||
tiller:
|
tiller:
|
||||||
# If set to false then some form of Tiller needs to be provided
|
# If set to false then some form of Tiller needs to be provided
|
||||||
enabled: true
|
enabled: true
|
||||||
port: 44134
|
port: 24134
|
||||||
|
probe_port: 24135
|
||||||
verbosity: 5
|
verbosity: 5
|
||||||
trace: false
|
trace: false
|
||||||
storage: null
|
storage: null
|
||||||
|
@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
httpGet:
|
httpGet:
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
path: /readiness
|
path: /readiness
|
||||||
port: 44135
|
port: {{ .Values.conf.tiller.probe_port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- define "tillerLivenessProbeTemplate" }}
|
{{- define "tillerLivenessProbeTemplate" }}
|
||||||
httpGet:
|
httpGet:
|
||||||
scheme: HTTP
|
scheme: HTTP
|
||||||
path: /liveness
|
path: /liveness
|
||||||
port: 44135
|
port: {{ .Values.conf.tiller.probe_port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if .Values.manifests.deployment_tiller }}
|
{{- if .Values.manifests.deployment_tiller }}
|
||||||
@ -92,6 +92,10 @@ spec:
|
|||||||
{{- if .Values.conf.tiller.storage }}
|
{{- if .Values.conf.tiller.storage }}
|
||||||
- --storage={{ .Values.conf.tiller.storage }}
|
- --storage={{ .Values.conf.tiller.storage }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
- -listen
|
||||||
|
- ":{{ .Values.conf.tiller.port }}"
|
||||||
|
- -probe-listen
|
||||||
|
- ":{{ .Values.conf.tiller.probe_port }}"
|
||||||
- -logtostderr
|
- -logtostderr
|
||||||
- -v
|
- -v
|
||||||
- {{ .Values.conf.tiller.verbosity | quote }}
|
- {{ .Values.conf.tiller.verbosity | quote }}
|
||||||
@ -110,7 +114,7 @@ spec:
|
|||||||
- "{{ .Values.conf.tiller.prestop_sleep }}"
|
- "{{ .Values.conf.tiller.prestop_sleep }}"
|
||||||
ports:
|
ports:
|
||||||
- name: tiller
|
- name: tiller
|
||||||
containerPort: 44134
|
containerPort: {{ .Values.conf.tiller.port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
{{ dict "envAll" $envAll "component" "tiller" "container" "tiller" "type" "readiness" "probeTemplate" (include "tillerReadinessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
{{ dict "envAll" $envAll "component" "tiller" "container" "tiller" "type" "readiness" "probeTemplate" (include "tillerReadinessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||||
{{ dict "envAll" $envAll "component" "tiller" "container" "tiller" "type" "liveness" "probeTemplate" (include "tillerLivenessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
{{ dict "envAll" $envAll "component" "tiller" "container" "tiller" "type" "liveness" "probeTemplate" (include "tillerLivenessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||||
|
@ -49,6 +49,8 @@ conf:
|
|||||||
# Note: Defaulting to the (default) kubernetes grace period, as anything
|
# Note: Defaulting to the (default) kubernetes grace period, as anything
|
||||||
# greater than that will have no effect.
|
# greater than that will have no effect.
|
||||||
prestop_sleep: 30
|
prestop_sleep: 30
|
||||||
|
port: 44134
|
||||||
|
probe_port: 44135
|
||||||
|
|
||||||
pod:
|
pod:
|
||||||
probes:
|
probes:
|
||||||
|
Loading…
Reference in New Issue
Block a user