mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-22 03:41:26 +00:00
Revert removing Virtual Machine, removed by https://github.com/aenix-io/cozystack/pull/403 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new package: `virtual-machine` with multiple version entries. - Added comprehensive documentation and configuration for the `virtual-machine` application. - New Helm chart and templates for Kubernetes resources, enhancing deployment options. - **Bug Fixes** - Updated version entries for existing packages, ensuring accuracy in versioning. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
22 lines
546 B
YAML
22 lines
546 B
YAML
{{- if .Values.external }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "virtual-machine.fullname" . }}
|
|
labels:
|
|
{{- include "virtual-machine.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ ternary "LoadBalancer" "ClusterIP" .Values.external }}
|
|
externalTrafficPolicy: Local
|
|
allocateLoadBalancerNodePorts: false
|
|
selector:
|
|
{{- include "virtual-machine.labels" . | nindent 4 }}
|
|
ports:
|
|
{{- range .Values.externalPorts }}
|
|
- name: port-{{ . }}
|
|
port: {{ . }}
|
|
targetPort: {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|