Repository for dip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
686 B

apiVersion: v1
kind: Service
metadata:
name: {{ include "dnsup.fullname" . }}
labels:
{{- include "dnsup.labels" . | nindent 4 }}
annotations:
{{- .Values.service.annotations | toYaml | nindent 4 }}
spec:
type: {{ .Values.service.type }}
{{- if and (eq .Values.service.type "LoadBalancer" ) .Values.service.LoadBalancerIP }}
loadBalancerIP: {{ .Values.service.LoadBalancerIP }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: 53
protocol: UDP
name: udp
- port: {{ .Values.service.port }}
targetPort: 53
protocol: TCP
name: tcp
selector:
{{- include "dnsup.selectorLabels" . | nindent 4 }}