Skip to content

Commit

Permalink
reduce hetzner api calls
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal committed Aug 8, 2022
1 parent 79b4d58 commit a5847e0
Show file tree
Hide file tree
Showing 3 changed files with 6 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
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 a5847e0

Please sign in to comment.