17 lines
424 B
YAML
17 lines
424 B
YAML
|
{{- 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 }}
|