-
Notifications
You must be signed in to change notification settings - Fork 79
/
values.yaml
222 lines (199 loc) · 6.22 KB
/
values.yaml
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
controller:
replicas: 1 # Additional replicas will cause sharding of managed clusters across number of replicas.
metrics:
enabled: true
service:
annotations:
prometheus.io/scrape: true
env:
- name: ARGOCD_K8S_CLIENT_QPS #required for Crossplane too many CRDs https://github.com/argoproj/argo-cd/pull/448
value: '300'
repoServer:
autoscaling:
enabled: true
minReplicas: 1
resources: # Adjust based on your specific use case (required for HPA)
requests:
cpu: '100m'
memory: '256Mi'
limits:
cpu: '200m'
memory: '512Mi'
metrics:
enabled: true
service:
annotations:
prometheus.io/scrape: true
applicationSet:
replicaCount: 1 # The controller doesn't scale horizontally, is active-standby replicas
metrics:
enabled: true
service:
annotations:
prometheus.io/scrape: true
server:
autoscaling:
enabled: true
minReplicas: 1
resources: # Adjust based on your specific use case (required for HPA)
requests:
cpu: '100m'
memory: '256Mi'
limits:
cpu: '200m'
memory: '512Mi'
metrics:
enabled: true
service:
annotations:
prometheus.io/scrape: true
service:
type: LoadBalancer
annotations:
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: ip
service.beta.kubernetes.io/aws-load-balancer-scheme: internet-facing
configs:
repositories:
# Required when using helm repository with oci formal like karpenter and aws-gateway-api-controller
aws-public-ecr:
name: aws-public-ecr
type: helm
url: public.ecr.aws
enableOCI: 'true'
cm:
application.resourceTrackingMethod: 'annotation' #use annotation for tracking required for Crossplane
resource.exclusions: |
- kinds:
- ProviderConfigUsage
apiGroups:
- "*"
resource.customizations: |
"awsblueprints.io/*":
health.lua: |
health_status = {
status = "Progressing",
message = "Provisioning ..."
}
if obj.status == nil or obj.status.conditions == nil then
return health_status
end
for i, condition in ipairs(obj.status.conditions) do
if condition.type == "Ready" then
if condition.status == "True" then
health_status.status = "Healthy"
health_status.message = "Resource is up-to-date."
return health_status
end
end
if condition.type == "LastAsyncOperation" then
if condition.status == "False" then
health_status.status = "Degraded"
health_status.message = condition.message
return health_status
end
end
if condition.type == "Synced" then
if condition.status == "False" then
health_status.status = "Degraded"
health_status.message = condition.message
return health_status
end
end
end
return health_status
"*.aws.upbound.io/*":
health.lua: |
health_status = {
status = "Progressing",
message = "Provisioning ..."
}
if obj.status == nil or obj.status.conditions == nil then
return health_status
end
for i, condition in ipairs(obj.status.conditions) do
if condition.type == "Ready" then
if condition.status == "True" then
health_status.status = "Healthy"
health_status.message = "Resource is up-to-date."
return health_status
end
end
if condition.type == "LastAsyncOperation" then
if condition.status == "False" then
health_status.status = "Degraded"
health_status.message = condition.message
return health_status
end
end
if condition.type == "Synced" then
if condition.status == "False" then
health_status.status = "Degraded"
health_status.message = condition.message
return health_status
end
end
end
return health_status
"*.aws.crossplane.io/*":
health.lua: |
health_status = {
status = "Progressing",
message = "Provisioning ..."
}
if obj.status == nil or obj.status.conditions == nil then
return health_status
end
for i, condition in ipairs(obj.status.conditions) do
if condition.type == "Ready" then
if condition.status == "True" then
health_status.status = "Healthy"
health_status.message = "Resource is up-to-date."
return health_status
end
end
if condition.type == "LastAsyncOperation" then
if condition.status == "False" then
health_status.status = "Degraded"
health_status.message = condition.message
return health_status
end
end
if condition.type == "Synced" then
if condition.status == "False" then
health_status.status = "Degraded"
health_status.message = condition.message
return health_status
end
end
end
return health_status
# -- Array of extra K8s manifests to deploy
## Note: Supports use of custom Helm templates
## It gets handle in this form inside the argo-cd chart
# {{ range .Values.extraObjects }}
# ---
# {{ if typeIs "string" . }}
# {{- tpl . $ }}
# {{- else }}
# {{- tpl (toYaml .) $ }}
# {{- end }}
# {{ end }}
extraObjects:
- |
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: default
namespace: {{ $.Release.Namespace | quote }}
annotations:
source: gitops-brige
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
sourceRepos:
- '*'
destinations:
- namespace: '*'
name: '*'
server: '*'