Skip to content

Commit

Permalink
reduce Hetzner API calls (#56)
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal authored Aug 22, 2022
1 parent 79b4d58 commit cb2442a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/chart/templates/autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ spec:
topologyKey: kubernetes.io/hostname
containers:
- name: cluster-autoscaler
image: k8s.gcr.io/autoscaling/cluster-autoscaler:v1.23.1
image: paskalmaksim/cluster-autoscaler-amd64:fc3aefc3d
imagePullPolicy: IfNotPresent
resources:
requests:
Expand Down
4 changes: 3 additions & 1 deletion scripts/chart/templates/ccm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ spec:
labels:
app: hcloud-cloud-controller-manager
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '8233'
scheduler.alpha.kubernetes.io/critical-pod: ''
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
spec:
Expand Down Expand Up @@ -70,7 +72,7 @@ spec:
topologyKey: kubernetes.io/hostname
hostNetwork: true
containers:
- image: paskalmaksim/hcloud-cloud-controller-manager:6982aae2
- image: paskalmaksim/hcloud-cloud-controller-manager:15b5eabb
imagePullPolicy: IfNotPresent
name: hcloud-cloud-controller-manager
command:
Expand Down
4 changes: 4 additions & 0 deletions scripts/chart/templates/hcloud-csi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ spec:
labels:
app: hcloud-csi-controller
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9189'
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
spec:
serviceAccount: hcloud-csi
Expand Down Expand Up @@ -217,6 +219,8 @@ spec:
labels:
app: hcloud-csi
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '9189'
checksum/config: {{ include (print $.Template.BasePath "/config.yaml") . | sha256sum }}
spec:
tolerations:
Expand Down
2 changes: 2 additions & 0 deletions scripts/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ deployments:
memory: 100Mi
ccmconfig:
env:
- name: HCLOUD_NETWORK_ROUTES_ENABLED
value: "false"
- name: HCLOUD_NETWORK
value: "{{ .Values.clusterName }}"
- name: HCLOUD_LOAD_BALANCERS_USE_PRIVATE_IP
Expand Down

0 comments on commit cb2442a

Please sign in to comment.