KubeZero/charts/kubeadm/templates/resources/80-apiserver-dns-service.yaml

17 lines
424 B
YAML
Raw Normal View History

{{- if index .Values "addons" "external-dns" "enabled" }}
apiVersion: v1
kind: Service
metadata:
annotations:
external-dns.alpha.kubernetes.io/hostname: {{ regexSplit ":" .Values.api.endpoint -1 | first }}
external-dns.alpha.kubernetes.io/ttl: "60"
name: kubezero-api
namespace: kube-system
spec:
type: ClusterIP
clusterIP: None
selector:
component: kube-apiserver
tier: control-plane
{{- end }}