KubeZero/deploy/templates/values.yaml

224 lines
7.2 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 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 }}
prometheus: {{ and .Values.metrics.enabled .Values.metrics.ready }}
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
localCA:
2020-09-14 15:06:53 +00:00
enabled: {{ index .Values "cert-manager" "ready" }}
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-09-14 15:06:53 +00:00
{{- if and .Values.kiam.enabled .Values.kiam.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:
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 }}
{{- end }}
2020-06-30 13:56:20 +00:00
2020-07-29 13:46:55 +00:00
{{- if eq .Values.platform "aws" }}
2020-06-30 13:56:20 +00:00
kiam:
enabled: {{ .Values.kiam.enabled }}
values:
kiam:
2020-09-14 15:06:53 +00:00
enabled: {{ not .Values.kiam.certsOnly }}
2020-06-30 13:56:20 +00:00
server:
assumeRoleArn: "{{ .Values.kiam.IamArn }}"
deployment:
replicas: {{ ternary 2 1 .Values.HighAvailableControlplane }}
prometheus:
servicemonitor:
enabled: {{ and .Values.metrics.enabled .Values.metrics.ready }}
agent:
prometheus:
servicemonitor:
enabled: {{ and .Values.metrics.enabled .Values.metrics.ready }}
2020-09-14 15:06:53 +00:00
{{- if and .Values.kiam.enabled .Values.kiam.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" }}
2020-10-09 16:34:28 +00:00
{{- with index .Values "aws-efs-csi-driver" "PersistentVolumes" }}
PersistentVolumes:
{{- toYaml . | nindent 8 }}
{{- end }}
2020-07-29 13:46:55 +00:00
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 }}
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 }}
2020-09-14 14:24:40 +00:00
{{- if index .Values "cert-manager" "ready" }}
2020-07-29 13:46:55 +00:00
{{- if .Values.istio.ingress }}
ingress:
2020-07-29 13:46:55 +00:00
{{- toYaml .Values.istio.ingress | nindent 8 }}
{{- end }}
{{- end }}
2020-07-30 17:26:11 +00:00
metrics:
2020-09-14 15:06:53 +00:00
enabled: {{ .Values.metrics.enabled }}
2020-08-03 15:34:57 +00:00
values:
2020-09-14 14:24:40 +00:00
{{- if and .Values.metrics.istio.grafana.enabled .Values.istio.ready }}
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 }}
2020-09-14 14:24:40 +00:00
{{- if and .Values.metrics.istio.prometheus.enabled .Values.istio.ready }}
2020-08-03 16:44:58 +00:00
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 }}
{{- if index .Values "metrics" "prometheus-operator" }}
prometheus-operator:
{{- with index .Values "metrics" "prometheus-operator" }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
2020-06-30 13:56:20 +00:00
logging:
enabled: {{ .Values.logging.enabled }}
values:
{{- if .Values.logging.elastic_password }}
2020-08-15 13:25:07 +00:00
elastic_password: {{ .Values.logging.elastic_password }}
{{- end }}
2020-08-15 13:25:07 +00:00
{{- if .Values.logging.version }}
version: {{ .Values.logging.version }}
{{- end }}
2020-08-15 13:25:07 +00:00
{{- if .Values.logging.fullnameOverride }}
fullnameOverride: {{ .Values.logging.fullnameOverride }}
{{- end }}
2020-08-18 10:34:34 +00:00
{{- if .Values.logging.es }}
2020-08-15 13:25:07 +00:00
es:
{{- if .Values.logging.es.nodeSets }}
nodeSets:
{{- with .Values.logging.es.nodeSets }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
prometheus: {{ and .Values.metrics.enabled .Values.metrics.ready }}
{{- if .Values.logging.es.s3Snapshot }}
s3Snapshot:
{{- with .Values.logging.es.s3Snapshot }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
2020-08-18 10:34:34 +00:00
{{- end }}
2020-08-15 13:25:07 +00:00
{{- if .Values.logging.kibana }}
kibana:
{{- with .Values.logging.kibana }}
{{- toYaml . | nindent 8 }}
{{- end }}
2020-08-14 22:02:30 +00:00
{{- end }}
2020-08-18 10:34:34 +00:00
fluentd:
enabled: {{ .Values.logging.fluentd.enabled }}
metrics:
enabled: {{ and .Values.metrics.enabled .Values.metrics.ready }}
2020-08-18 10:34:34 +00:00
url: {{ .Values.logging.fluentd.url }}
{{- if .Values.logging.fluentd.output }}
output:
host: {{ .Values.logging.fluentd.output.host }}
{{- end }}
{{- if .Values.logging.fluentd.extraEnvVars }}
extraEnvVars:
{{- toYaml .Values.logging.fluentd.extraEnvVars | nindent 10 }}
{{- end }}
2020-09-14 15:06:53 +00:00
{{- if and .Values.logging.fluentd.istio .Values.istio.enabled .Values.istio.ready }}
2020-08-18 10:34:34 +00:00
istio:
{{- with .Values.logging.fluentd.istio }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
fluent-bit:
enabled: {{ index .Values.logging "fluent-bit" "enabled" }}
metrics:
enabled: {{ and .Values.metrics.enabled .Values.metrics.ready }}
{{- if index .Values.logging "fluent-bit" "config" }}
config:
{{- with index .Values.logging "fluent-bit" "config" }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- end }}
2020-08-18 10:34:34 +00:00
2020-06-30 13:56:20 +00:00
argo-cd:
2020-08-16 14:49:57 +00:00
controller:
2020-08-16 18:25:07 +00:00
metrics:
enabled: {{ and .Values.metrics.enabled .Values.metrics.ready }}
2020-08-16 14:49:57 +00:00
repoServer:
2020-08-16 18:25:07 +00:00
metrics:
enabled: {{ and .Values.metrics.enabled .Values.metrics.ready }}
2020-06-30 13:56:20 +00:00
server:
2020-08-16 18:25:07 +00:00
metrics:
enabled: {{ and .Values.metrics.enabled .Values.metrics.ready }}
2020-08-16 14:49:57 +00:00
{{- with index .Values "argo-cd" "server" }}
2020-06-30 13:56:20 +00:00
{{- toYaml . | nindent 4 }}
2020-08-16 14:49:57 +00:00
{{- end }}
2020-06-30 13:56:20 +00:00
{{- with index .Values "argo-cd" "configs" }}
configs:
{{- toYaml . | nindent 4 }}
{{- end }}
2020-09-14 15:06:53 +00:00
{{- if and ( index .Values "argo-cd" "istio" "enabled" ) .Values.istio.enabled .Values.istio.ready }}
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 }}