mirror of
https://github.com/wahyd4/home-argocd.git
synced 2026-08-08 21:05:09 +10:00
Apply server side apply for prometheus
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user