Apply server side apply for prometheus

This commit is contained in:
2023-01-16 08:25:37 +11:00
parent 85f80d8eac
commit e222c9947a
+10 -3
View File
@@ -56,6 +56,8 @@ spec:
name: prometheus
retention: 1y
retentionSize: "100GiB"
kubelet:
enabled: true
alertmanager:
enabled: true
ingress:
@@ -64,6 +66,11 @@ spec:
server: https://192.168.1.2:6443
namespace: default
syncPolicy:
automated:
prune: true
selfHeal: true
# https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#server-side-apply
# TO FIX ERROR
# Failed sync attempt to 8.3.2: one or more objects failed to apply, reason: CustomResourceDefinition.apiextensions.k8s.io "prometheuses.monitoring.coreos.com" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
syncOptions:
- ServerSideApply=true
automated:
prune: true
selfHeal: true