mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 18:41:10 +00:00
Signed-off-by: Andrei Kvapil <kvapss@gmail.com> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated deployment configurations with the latest application versions (0.8.1 and 0.5.1) to ensure improved stability and compatibility. - **Bug Fixes** - Enhanced service connectivity by refining the criteria used for routing requests to the correct application endpoints. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
30 lines
773 B
YAML
30 lines
773 B
YAML
{{- if .Values.external }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "virtual-machine.fullname" . }}
|
|
labels:
|
|
{{- include "virtual-machine.labels" . | nindent 4 }}
|
|
{{- if eq .Values.externalMethod "WholeIP" }}
|
|
annotations:
|
|
networking.cozystack.io/wholeIP: "true"
|
|
{{- end }}
|
|
spec:
|
|
type: {{ ternary "LoadBalancer" "ClusterIP" .Values.external }}
|
|
externalTrafficPolicy: Local
|
|
allocateLoadBalancerNodePorts: false
|
|
selector:
|
|
{{- include "virtual-machine.selectorLabels" . | nindent 4 }}
|
|
ports:
|
|
{{- if eq .Values.externalMethod "WholeIP" }}
|
|
- port: 65535
|
|
{{- else }}
|
|
{{- range .Values.externalPorts }}
|
|
- name: port-{{ . }}
|
|
port: {{ . }}
|
|
targetPort: {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|