mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 14:02:56 +09:00
- Add `externalAllowICMP` value (default true) propagated as `networking.cozystack.io/allowICMP` annotation on the rendered Service when `externalMethod: PortList`. The cozy-proxy companion (released as part of cozystack/cozy-proxy#11 + #12) drops ICMP by default in port-filter mode, which breaks ping and PMTU discovery; defaulting the chart to "true" preserves user expectations while still allowing operators to opt out by setting `externalAllowICMP: false`. - Remove the v1.3.1.md changelog entry. Project convention is to add changelogs in a dedicated "docs: add changelog for vX.Y.Z" commit at release time, not as part of feature/fix PRs. Signed-off-by: mattia-eleuteri <mattia@hidora.io>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "virtual-machine.fullname" . }}
|
|
labels:
|
|
apps.cozystack.io/user-service: "true"
|
|
{{- include "virtual-machine.labels" . | nindent 4 }}
|
|
{{- if .Values.external }}
|
|
service.kubernetes.io/service-proxy-name: "cozy-proxy"
|
|
annotations:
|
|
networking.cozystack.io/wholeIP: {{ ternary "true" "false" (eq .Values.externalMethod "WholeIP") | quote }}
|
|
{{- if eq .Values.externalMethod "PortList" }}
|
|
networking.cozystack.io/allowICMP: {{ ternary "true" "false" (ne .Values.externalAllowICMP false) | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ ternary "LoadBalancer" "ClusterIP" .Values.external }}
|
|
{{- if .Values.external }}
|
|
externalTrafficPolicy: Local
|
|
{{- if ((include "cozy-lib.network.disableLoadBalancerNodePorts" $) | fromYaml) }}
|
|
allocateLoadBalancerNodePorts: false
|
|
{{- end }}
|
|
{{- else }}
|
|
clusterIP: None
|
|
{{- end }}
|
|
selector:
|
|
{{- include "virtual-machine.selectorLabels" . | nindent 4 }}
|
|
ports:
|
|
{{- if .Values.external }}
|
|
{{- if and (eq .Values.externalMethod "WholeIP") (not .Values.externalPorts) }}
|
|
- port: 65535
|
|
{{- else }}
|
|
{{- range .Values.externalPorts }}
|
|
- name: port-{{ . }}
|
|
port: {{ . }}
|
|
targetPort: {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- else }}
|
|
- port: 65535
|
|
{{- end }}
|