-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
k8up_argocd_appset.yaml
75 lines (72 loc) · 2.47 KB
/
k8up_argocd_appset.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
---
# k8up is for backups of persistent volume claims
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: k8up-helm-app-set
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
goTemplate: true
# generator allows us to source specific values from an external k8s secret
generators:
- plugin:
configMapRef:
name: secret-var-plugin-generator
input:
parameters:
secret_vars:
- global_time_zone
template:
metadata:
name: k8up-helm-release
spec:
project: k8up
destination:
server: "https://kubernetes.default.svc"
namespace: k8up
syncPolicy:
syncOptions:
- ApplyOutOfSyncOnly=true
automated:
prune: true
selfHeal: true
source:
# official k8up helm repo
repoURL: 'https://k8up-io.github.io/k8up'
chart: k8up
targetRevision: 4.8.3
helm:
valuesObject:
k8up:
# -- Specifies the timezone K8up is using for scheduling.
# Empty value defaults to the timezone in which Kubernetes is deployed.
# Accepts `tz database` compatible entries, e.g. `Europe/Zurich`
timezone: '{{ .global_time_zone }}'
skipWithoutAnnotation: true
metrics:
service:
port: 8080
type: ClusterIP
# -- Service node port of the metrics endpoint, requires `metrics.service.type=NodePort`
nodePort: 0
serviceMonitor:
# -- Whether to enable ServiceMonitor manifests for
# [Prometheus Operator][prometheus-operator]
enabled: true
# -- Scrape interval to collect metrics
scrapeInterval: 15s
# -- If the object should be installed in a different namespace than operator
namespace: ""
# -- Add labels to the ServiceMonitor object
additionalLabels: {}
resources:
limits:
# -- Memory limit of K8up operator. See [supported units][resource-units].
memory: 256Mi
requests:
# -- CPU request of K8up operator. See [supported units][resource-units].
cpu: 20m
# -- Memory request of K8up operator. See [supported units][resource-units].
memory: 128Mi