-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhelmrelease.yaml
103 lines (91 loc) · 2.24 KB
/
helmrelease.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
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cluster-autoscaler-gcp
namespace: kube-system
spec:
interval: 60h
maxHistory: 2
driftDetection:
mode: enabled
chart:
spec:
chart: cluster-autoscaler
version: 9.46.0
sourceRef:
kind: HelmRepository
name: autoscaler
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
valuesFrom:
- kind: ConfigMap
name: cluster-autoscaler-gcp-helm-values
values:
fullnameOverride: cluster-autoscaler-gcp
priorityClassName: system-cluster-critical
image:
repository: ghcr.io/sergelogvinov/cluster-autoscaler
tag: "1.31"
cloudProvider: gce
cloudConfigPath: /etc/gce/gce.conf
extraArgs:
cloud-config: /etc/gce/gce.conf
regional: true
logtostderr: true
stderrthreshold: info
scan-interval: 15s
scale-down-delay-after-add: 5m
v: 4
extraEnv:
GOOGLE_APPLICATION_CREDENTIALS: /etc/cloud-sa/cloud-sa.json
extraVolumeSecrets:
google-cloud-key:
name: cloud-sa-autoscaler
mountPath: /etc/cloud-sa
items:
- key: cloud-sa.json
path: cloud-sa.json
extraVolumeMounts:
- mountPath: /etc/gce
name: config
readOnly: true
extraVolumes:
- configMap:
defaultMode: 420
name: gcp-cloud-autoscaler
name: config
containerSecurityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
capabilities:
drop: ["ALL"]
resources:
limits:
cpu: 100m
memory: 300Mi
requests:
cpu: 100m
memory: 300Mi
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: node.cloudprovider.kubernetes.io/platform
operator: In
values:
- gcp
weight: 100
nodeSelector:
node-role.kubernetes.io/control-plane: ""
tolerations:
- key: node-role.kubernetes.io/control-plane
effect: NoSchedule