apiVersion: v1
kind: Service
metadata:
  annotations:
    kompose.cmd: kompose convert -c -f latest.yml --namespace "{{ .Values.NAMESPACE }}"
    kompose.version: 1.34.0 (cbf2835db)
  labels:
    io.kompose.service: nextcloud-aio-apache
  name: nextcloud-aio-apache
  namespace: "{{ .Values.NAMESPACE }}"
spec:
  ipFamilyPolicy: PreferDualStack
  type: LoadBalancer
  externalTrafficPolicy: Local
  ports:
    - name: "{{ .Values.APACHE_PORT }}"
      port: {{ .Values.APACHE_PORT }}
      targetPort: {{ .Values.APACHE_PORT }}
    - name: {{ .Values.APACHE_PORT }}-udp
      port: {{ .Values.APACHE_PORT }}
      protocol: UDP
      targetPort: {{ .Values.APACHE_PORT }}
  selector:
    io.kompose.service: nextcloud-aio-apache
