Adding kubernetes imposed limit for port names
PS adds a limit of 15 for the length of name used for service's port. Change-Id: Idb494f2ae501b25a4ba30e3fef755d2ff9d96a19
This commit is contained in:
parent
2d2614b43a
commit
d7fe0c3636
@ -142,7 +142,7 @@ spec:
|
||||
{{- include "common_env_vars" $env | indent 12 }}
|
||||
ports:
|
||||
- containerPort: {{ $port }}
|
||||
name: {{ $portName }}
|
||||
name: {{ $portName | trunc 15 | quote }}
|
||||
- name: main
|
||||
image: "{{ $imageFull }}"
|
||||
lifecycle:
|
||||
|
@ -114,7 +114,7 @@ spec:
|
||||
{{- include "common_env_vars" $env | indent 12 }}
|
||||
ports:
|
||||
- containerPort: {{ $port }}
|
||||
name: {{ $resourceName | quote }}
|
||||
name: {{ $resourceName | trunc 15 | quote }}
|
||||
volumes:
|
||||
{{- include "common_volumes" $env | indent 8 }}
|
||||
{{- if $persistent }}
|
||||
|
@ -48,7 +48,7 @@ spec:
|
||||
key: password
|
||||
ports:
|
||||
- containerPort: {{ $port }}
|
||||
name: {{ $elementName }}
|
||||
name: {{ $elementName | trunc 15 | quote }}
|
||||
{{- include "common_containers" . | indent 8 }}
|
||||
volumes:
|
||||
{{- include "common_volumes" . | indent 8 }}
|
||||
|
@ -49,7 +49,7 @@ spec:
|
||||
value: COPY_ONCE
|
||||
ports:
|
||||
- containerPort: {{ $port }}
|
||||
name: {{ $elementName }}
|
||||
name: {{ $elementName | trunc 15 | quote }}
|
||||
{{- include "common_containers" $env | indent 8 }}
|
||||
volumes:
|
||||
{{- include "common_volumes" $env | indent 8 }}
|
||||
|
@ -65,9 +65,9 @@ spec:
|
||||
{{- include "common_env_vars" $env | indent 12 }}
|
||||
ports:
|
||||
- containerPort: {{ $port }}
|
||||
name: {{ $elementName }}
|
||||
name: {{ $elementName | trunc 15 | quote }}
|
||||
- containerPort: {{ $mgmt_port }}
|
||||
name: {{ $elementName }}-mgmt
|
||||
name: "{{ $elementName | trunc 10 }}-mgmt"
|
||||
{{- include "common_containers" $env | indent 8 }}
|
||||
volumes:
|
||||
{{- include "common_volumes" $env | indent 8 }}
|
||||
|
Loading…
Reference in New Issue
Block a user