clusterAuditor's values are incorrect in configmap leads to deployment error
https://repo1.dso.mil/platform-one/big-bang/customers/template/-/blob/main/dev/configmap.yaml#L65
^-- this sets clusterAuditor's request at 500MB
ClusterAuditor's default limit is 300MB
When you try to deploy as the config as is, the result is that the majority of stuff deploys 95%, but you'll see the following error.
k get hr -A
NAMESPACE NAME READY STATUS AGE
bigbang cluster-auditor False Helm install failed: Deployment.apps "opa-exporter" is invalid: spec.template.spec.containers[0].resources.requests: Invalid value: "512Mi": must be less than or equal to memory limit 11h
# The other entries show
# Release reconciliation succeeded
This error makes perfect since since in kubernetes resource request must be less than limit / limit must be great than request.
Possible Solutions:
Update the dev & prod values according to the following options
option 1: comment out clusterAuditor's overrides and accept the upstream defaults
option 2: update the dev/configmap.yaml & prod configmap.yaml's clusterAuditor section to look more like this
clusterAuditor:
values:
resources:
requests:
cpu: 100m
memory: .5Gi
limits:
cpu: 300m
memory: .5Gi
(I'd recommend option 2)
Side note: I was working with a customer who ran into this, then I ran into it too which made me realize the template repo was the root cause.