KubeZero/deploy/templates/values.yaml

98 lines
3.1 KiB
YAML
Raw Normal View History

2020-06-30 13:56:20 +00:00
kubezero:
{{- if .Values.global }}
2020-07-03 14:38:45 +00:00
global:
{{- toYaml .Values.global | nindent 4 }}
{{- end }}
2020-06-30 13:56:20 +00:00
calico:
enabled: {{ .Values.calico.enabled }}
2020-07-07 17:42:24 +00:00
type: {{ default "kustomize" .Values.calico.type }}
2020-07-07 12:50:08 +00:00
values:
2020-07-07 17:42:24 +00:00
migration: {{ default false .Values.calico.migration }}
prometheus: false
# prometheus: {{ .Values.prometheus.enabled }}
2020-07-23 14:52:11 +00:00
network: {{ default "vxlan" .Values.calico.network }}
mtu: {{ default "8941" .Values.calico.mtu }}
2020-06-30 13:56:20 +00:00
cert-manager:
enabled: {{ index .Values "cert-manager" "enabled" }}
2020-07-21 17:30:21 +00:00
{{- if not .Values.bootstrap }}
2020-07-23 14:52:11 +00:00
values:
{{- if eq .Values.platform "aws" }}
2020-06-30 13:56:20 +00:00
cert-manager:
podAnnotations:
iam.amazonaws.com/role: "{{ index .Values "cert-manager" "IamArn" }}"
{{- end }}
clusterIssuer:
name: letsencrypt-dns-prod
server: https://acme-v02.api.letsencrypt.org/directory
email: {{ index .Values "cert-manager" "email" }}
solvers:
- selector:
dnsZones:
{{- with index .Values "cert-manager" "dnsZones" }}
{{- . | toYaml | nindent 14 }}
{{- end }}
2020-06-30 13:56:20 +00:00
dns01:
2020-07-23 14:52:11 +00:00
{{- if eq .Values.platform "aws" }}
2020-06-30 13:56:20 +00:00
route53:
region: {{ .Values.region }}
2020-07-23 14:52:11 +00:00
{{- else }}
{{- with index .Values "cert-manager" "solvers" }}
{{- . | toYaml | nindent 14 }}
{{- end }}
2020-06-30 13:56:20 +00:00
{{- end }}
2020-07-21 17:30:21 +00:00
# AWS only components
2020-07-23 14:52:11 +00:00
{{- if eq .Values.platform "aws" }}
2020-06-30 13:56:20 +00:00
aws-ebs-csi-driver:
enabled: {{ index .Values "aws-ebs-csi-driver" "enabled" }}
values:
aws-ebs-csi-driver:
replicaCount: {{ ternary 2 1 .Values.HighAvailableControlplane }}
podAnnotations:
iam.amazonaws.com/role: "{{ index .Values "aws-ebs-csi-driver" "IamArn" }}"
extraVolumeTags:
Name: {{ .Values.ClusterName }}
kiam:
enabled: {{ .Values.kiam.enabled }}
values:
kiam:
server:
assumeRoleArn: "{{ .Values.kiam.IamArn }}"
deployment:
replicas: {{ ternary 2 1 .Values.HighAvailableControlplane }}
prometheus:
servicemonitor:
enabled: {{ .Values.prometheus.enabled }}
{{- end }}
istio:
2020-07-22 18:20:43 +00:00
enabled: {{ .Values.istio.enabled }}
values:
2020-07-22 19:25:18 +00:00
istiod:
replicaCount: {{ ternary 2 1 .Values.HighAvailableControlplane }}
ingress:
2020-07-23 15:03:10 +00:00
private: {{ .Values.istio.ingress.private }}
type: {{ .Values.istio.ingress.type }}
replicaCount: {{ default 2 .Values.istio.ingress.replicaCount }}
dnsNames:
{{- with .Values.istio.ingress.dnsNames }}
{{- . | toYaml | nindent 8 }}
{{- end }}
2020-06-30 13:56:20 +00:00
{{- end }}
argo-cd:
{{- with index .Values "argo-cd" "server" }}
server:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with index .Values "argo-cd" "configs" }}
configs:
{{- toYaml . | nindent 4 }}
{{- end }}
2020-07-22 19:11:34 +00:00
{{- if and ( not .Values.bootstrap ) .Values.istio.enabled }}
2020-06-30 13:56:20 +00:00
istio:
2020-07-22 18:20:43 +00:00
enabled: {{ index .Values "argo-cd" "istio" "enabled" }}
2020-06-30 13:56:20 +00:00
gateway: private-ingressgateway.istio-system.svc.cluster.local
{{- end }}