-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathvalues.yaml.tpl
More file actions
186 lines (172 loc) · 4.8 KB
/
Copy pathvalues.yaml.tpl
File metadata and controls
186 lines (172 loc) · 4.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{{ $isGcp := or (eq .Provider "google") (eq .Provider "gcp") }}
{{ $pluraldns := .Network.PluralDns }}
{{ $providerArgs := dict "provider" .Provider "cluster" .Cluster }}
{{ if eq .Provider "google" }}
{{ $_ := set $providerArgs "provider" "gcp" }}
{{ end }}
{{ $certManager := chartInstalled "cert-manager" "cert-manager" }}
external-dns:
{{ if $pluraldns }}
provider: plural
extraArgs:
plural-cluster: {{ $providerArgs.cluster }}
plural-provider: {{ $providerArgs.provider }}
{{ else if $isGcp }}
provider: google
{{ else }}
provider: {{ .Provider }}
{{ end }}
txtOwnerId: {{ default .Cluster .Values.txt_owner }}
{{ if eq .Provider "azure" }}
podLabels:
aadpodidbinding: externaldns
{{ end }}
rbac:
create: true
serviceAccount:
{{ if $isGcp }}
create: false
{{ end }}
name: {{ default "external-dns" .Values.externaldns_service_account }}
{{- if eq .Provider "aws" }}
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::{{ .Project }}:role/{{ .Cluster }}-externaldns"
{{- end }}
domainFilters:
- {{ .Network.Subdomain }}
{{- if $isGcp }}
google:
project: {{ .Project }}
{{- end }}
{{- if eq .Provider "aws" }}
aws:
region: {{ .Region }}
{{- end }}
{{ if and (not $pluraldns) (eq .Provider "azure")}}
azure:
useManagedIdentityExtension: true
resourceGroup: {{ .Project }}
tenantId: {{ .Context.TenantId }}
subscriptionId: {{ .Context.SubscriptionId }}
{{ end }}
sources:
- service
- ingress
{{ if .Configuration.istio }}
- istio-gateway
- istio-virtualservice
{{ end }}
{{ if and (not $pluraldns) (eq .Provider "azure") }}
externalDnsIdentityId: {{ importValue "Terraform" "externaldns_msi_id" }}
externalDnsIdentityClientId: {{ importValue "Terraform" "externaldns_msi_client_id" }}
{{ end }}
pluralToken: {{ .Config.Token }}
{{ if .Acme }}
acme:
kid: {{ .Acme.KeyId }}
secret: {{ .Acme.Secret }}
{{ end }}
{{ if $pluraldns }}
{{ $eab := eabCredential $providerArgs.cluster $providerArgs.provider }}
acmeServer: https://acme.zerossl.com/v2/DV90
acmeEAB:
kid: {{ $eab.KeyId }}
secret: {{ $eab.HmacKey }}
{{ end }}
regcreds:
auths:
dkr.plural.sh:
username: {{ .Config.Email }}
password: {{ .Config.Token }}
auth: {{ list .Config.Email .Config.Token | join ":" | b64enc | quote }}
provider: {{ .Provider }}
ownerEmail: {{ .Config.Email }}
{{ if eq .Provider "aws" }}
{{- if not .Values.disable_cluster_autoscaler }}
cluster-autoscaler:
enabled: true
awsRegion: {{ .Region }}
rbac:
create: true
serviceAccount:
# This value should match local.k8s_service_account_name in locals.tf
name: cluster-autoscaler
annotations:
# This value should match the ARN of the role created by module.iam_assumable_role_admin in irsa.tf
eks.amazonaws.com/role-arn: "arn:aws:iam::{{ .Project }}:role/{{ .Cluster }}-cluster-autoscaler"
autoDiscovery:
clusterName: {{ .Cluster }}
enabled: true
{{- end }}
{{ end }}
{{ if eq .Provider "aws"}}
{{- if not .Values.disable_calico}}
tigera-operator:
enabled: true
installation:
kubernetesProvider: EKS
{{- end }}
{{- if not .Values.disable_aws_lb_controller }}
aws-load-balancer-controller:
enabled: true
clusterName: {{ .Cluster }}
serviceAccount:
create: true
name: alb-operator
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::{{ .Project }}:role/{{ .Cluster }}-alb"
{{- end }}
{{- if not .Values.disable_ebs_csi_driver}}
aws-ebs-csi-driver:
enabled: true
controller:
serviceAccount:
name: ebs-csi-controller
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::{{ .Project }}:role/{{ .Cluster }}-ebs-csi"
{{- end}}
{{- if not .Values.disable_metrics_server}}
metrics-server:
enabled: true
{{- end}}
{{- if not .Values.disable_snapshot_controller}}
snapshot-validation-webhook:
enabled: true
snapshot-controller:
enabled: true
{{- end}}
{{ end }}
dnsSolver:
{{- if $pluraldns }}
webhook:
groupName: acme.plural.sh
solverName: plural-solver
config:
cluster: {{ $providerArgs.cluster }}
provider: {{ $providerArgs.provider }}
{{- else if eq .Provider "aws" }}
route53:
region: {{ .Region }}
{{- else if $isGcp }}
cloudDNS:
project: {{ .Project }}
{{- else if eq .Provider "azure" }}
azureDNS:
subscriptionID: {{ .Context.SubscriptionId }}
resourceGroupName: {{ .Project }}
hostedZoneName: {{ .Network.Subdomain }}
# Azure Cloud Environment, default to AzurePublicCloud
environment: AzurePublicCloud
{{- end }}
cert-manager:
{{- if $certManager }}
enabled: false
{{- end }}
serviceAccount:
{{- if $isGcp }}
create: false
{{- end }}
{{- if eq .Provider "aws" }}
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::{{ .Project }}:role/{{ .Cluster }}-certmanager"
{{- end }}