Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[GENERAL] Allow different port for svc and pod
[oom.git]
/
kubernetes
/
common
/
common
/
templates
/
_pod.tpl
diff --git
a/kubernetes/common/common/templates/_pod.tpl
b/kubernetes/common/common/templates/_pod.tpl
index
de25485
..
b38a7f1
100644
(file)
--- a/
kubernetes/common/common/templates/_pod.tpl
+++ b/
kubernetes/common/common/templates/_pod.tpl
@@
-36,13
+36,13
@@
{{- $global := . }}
{{- range $index, $port := $ports }}
{{- if (include "common.needTLS" $global) }}
{{- $global := . }}
{{- range $index, $port := $ports }}
{{- if (include "common.needTLS" $global) }}
-- containerPort: {{
$port.
port }}
+- containerPort: {{
default $port.port $port.internal_
port }}
{{- else }}
{{- else }}
-- containerPort: {{ default
$port.port $port.plain_port
}}
+- containerPort: {{ default
(default $port.port $port.internal_port) (default $port.plain_port $port.internal_plain_port)
}}
{{- end }}
name: {{ $port.name }}
{{- if (and $port.plain_port (and (include "common.needTLS" $global) $both_tls_and_plain)) }}
{{- end }}
name: {{ $port.name }}
{{- if (and $port.plain_port (and (include "common.needTLS" $global) $both_tls_and_plain)) }}
-- containerPort: {{
$port.
plain_port }}
+- containerPort: {{
default $port.plain_port $port.internal_
plain_port }}
name: {{ $port.name }}-plain
{{- end }}
{{- end }}
name: {{ $port.name }}-plain
{{- end }}
{{- end }}
@@
-67,4
+67,3
@@
securityContext:
privileged: false
allowPrivilegeEscalation: false
{{- end }}
privileged: false
allowPrivilegeEscalation: false
{{- end }}
-