2020-06-30 13:56:20 +00:00
|
|
|
kubezero:
|
2020-06-30 15:10:45 +00:00
|
|
|
{{- if .Values.global }}
|
2020-07-03 14:38:45 +00:00
|
|
|
global:
|
2020-06-30 15:10:45 +00:00
|
|
|
{{- toYaml .Values.global | nindent 4 }}
|
|
|
|
{{- end }}
|
2020-06-30 13:56:20 +00:00
|
|
|
calico:
|
|
|
|
enabled: {{ .Values.calico.enabled }}
|
2020-07-07 12:50:08 +00:00
|
|
|
values:
|
2020-07-23 14:52:11 +00:00
|
|
|
network: {{ default "vxlan" .Values.calico.network }}
|
|
|
|
mtu: {{ default "8941" .Values.calico.mtu }}
|
2020-08-14 14:52:10 +00:00
|
|
|
prometheus: {{ .Values.metrics.enabled }}
|
2020-06-30 13:56:20 +00:00
|
|
|
cert-manager:
|
|
|
|
enabled: {{ index .Values "cert-manager" "enabled" }}
|
2020-07-23 14:52:11 +00:00
|
|
|
values:
|
2020-08-04 13:45:42 +00:00
|
|
|
# Disable all until webhook is in place
|
|
|
|
{{- if index .Values "cert-manager" "not_ready" }}
|
|
|
|
localCA:
|
|
|
|
enabled: false
|
|
|
|
{{- end }}
|
2020-07-23 14:52:11 +00:00
|
|
|
{{- 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 }}
|
2020-08-03 12:06:07 +00:00
|
|
|
|
|
|
|
{{- if not .Values.kiam.not_ready }}
|
2020-06-30 13:56:20 +00:00
|
|
|
clusterIssuer:
|
|
|
|
name: letsencrypt-dns-prod
|
|
|
|
server: https://acme-v02.api.letsencrypt.org/directory
|
|
|
|
email: {{ index .Values "cert-manager" "email" }}
|
|
|
|
solvers:
|
|
|
|
- selector:
|
2020-06-30 15:10:45 +00:00
|
|
|
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-08-03 12:06:07 +00:00
|
|
|
{{- end }}
|
2020-06-30 13:56:20 +00:00
|
|
|
|
2020-07-29 13:46:55 +00:00
|
|
|
|
2020-08-03 12:06:07 +00:00
|
|
|
{{- if eq .Values.platform "aws" }}
|
|
|
|
{{- if not ( index .Values "cert-manager" "not_ready" ) }}
|
2020-06-30 13:56:20 +00:00
|
|
|
kiam:
|
|
|
|
enabled: {{ .Values.kiam.enabled }}
|
|
|
|
values:
|
|
|
|
kiam:
|
|
|
|
server:
|
|
|
|
assumeRoleArn: "{{ .Values.kiam.IamArn }}"
|
|
|
|
deployment:
|
|
|
|
replicas: {{ ternary 2 1 .Values.HighAvailableControlplane }}
|
|
|
|
prometheus:
|
|
|
|
servicemonitor:
|
2020-08-14 14:52:10 +00:00
|
|
|
enabled: {{ .Values.metrics.enabled }}
|
2020-08-14 21:31:34 +00:00
|
|
|
agent:
|
|
|
|
prometheus:
|
|
|
|
servicemonitor:
|
|
|
|
enabled: {{ .Values.metrics.enabled }}
|
2020-08-03 12:06:07 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if not .Values.kiam.not_ready }}
|
|
|
|
# AWS only components
|
|
|
|
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 }}
|
|
|
|
{{- end }}
|
2020-07-29 13:46:55 +00:00
|
|
|
|
|
|
|
aws-efs-csi-driver:
|
|
|
|
enabled: {{ index .Values "aws-efs-csi-driver" "enabled" }}
|
|
|
|
values:
|
|
|
|
aws-efs-csi-driver:
|
|
|
|
nodeSelector:
|
|
|
|
node.kubernetes.io/csi.efs.fs: {{ index .Values "aws-efs-csi-driver" "EfsId" }}
|
|
|
|
PersistentVolume:
|
|
|
|
create: true
|
|
|
|
EfsId: {{ index .Values "aws-efs-csi-driver" "EfsId" }}
|
|
|
|
Name: {{ default "kubezero-efs-pv" ( index .Values "aws-efs-csi-driver" "PVName" ) }}
|
2020-06-30 13:56:20 +00:00
|
|
|
{{- end }}
|
2020-07-15 14:21:49 +00:00
|
|
|
|
|
|
|
istio:
|
2020-07-22 18:20:43 +00:00
|
|
|
enabled: {{ .Values.istio.enabled }}
|
2020-07-22 15:01:36 +00:00
|
|
|
values:
|
2020-07-22 19:25:18 +00:00
|
|
|
istiod:
|
|
|
|
replicaCount: {{ ternary 2 1 .Values.HighAvailableControlplane }}
|
2020-08-05 14:42:15 +00:00
|
|
|
{{- if not ( index .Values "cert-manager" "not_ready" ) }}
|
2020-07-29 13:46:55 +00:00
|
|
|
{{- if .Values.istio.ingress }}
|
2020-07-22 15:01:36 +00:00
|
|
|
ingress:
|
2020-07-29 13:46:55 +00:00
|
|
|
{{- toYaml .Values.istio.ingress | nindent 8 }}
|
|
|
|
{{- end }}
|
2020-08-05 14:42:15 +00:00
|
|
|
{{- end }}
|
2020-07-15 14:21:49 +00:00
|
|
|
|
2020-07-30 17:26:11 +00:00
|
|
|
metrics:
|
|
|
|
enabled: {{ .Values.metrics.enabled }}
|
2020-08-03 15:34:57 +00:00
|
|
|
values:
|
2020-08-03 16:44:58 +00:00
|
|
|
{{- if and .Values.metrics.istio.grafana.enabled .Values.istio.enabled }}
|
2020-08-03 15:34:57 +00:00
|
|
|
grafana:
|
|
|
|
istio:
|
2020-08-03 16:44:58 +00:00
|
|
|
{{- with .Values.metrics.istio.grafana }}
|
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if and .Values.metrics.istio.prometheus.enabled .Values.istio.enabled }}
|
|
|
|
prometheus:
|
|
|
|
istio:
|
|
|
|
{{- with .Values.metrics.istio.prometheus }}
|
2020-08-03 15:34:57 +00:00
|
|
|
{{- toYaml . | nindent 10 }}
|
|
|
|
{{- end }}
|
2020-08-03 15:24:32 +00:00
|
|
|
{{- end }}
|
2020-08-06 11:34:32 +00:00
|
|
|
{{- if index .Values "metrics" "prometheus-operator" }}
|
2020-08-06 10:52:16 +00:00
|
|
|
prometheus-operator:
|
2020-08-06 11:34:32 +00:00
|
|
|
{{- with index .Values "metrics" "prometheus-operator" }}
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
2020-08-06 10:52:16 +00:00
|
|
|
{{- end }}
|
2020-06-30 13:56:20 +00:00
|
|
|
|
2020-08-14 14:52:10 +00:00
|
|
|
logging:
|
|
|
|
enabled: {{ .Values.logging.enabled }}
|
|
|
|
values:
|
|
|
|
|
2020-06-30 13:56:20 +00:00
|
|
|
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-08-03 15:24:32 +00:00
|
|
|
{{- if and ( index .Values "argo-cd" "istio" "enabled" ) .Values.istio.enabled }}
|
2020-06-30 13:56:20 +00:00
|
|
|
istio:
|
2020-07-24 11:34:21 +00:00
|
|
|
{{- with index .Values "argo-cd" "istio" }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2020-06-30 13:56:20 +00:00
|
|
|
{{- end }}
|