Skip to content

Fail to write to /var/post_install/kustomization.yaml #1154

Closed Answered by Dullaz
otavio asked this question in Q&A
Discussion options

You must be logged in to vote

Just ran into this issue

TL;DR

I don't know what causes this, but to reproduce you can try adding additional control planes or renaming the one control plane you do have.

Fix is to add "mkdir -p /var/post_install /var/user_kustomize", to line 177 in .terraform/modules/kube-hetzner/control_planes.tf

The investigation

ssh'ed into the control plane and ran script that failed manually

Error output (that is hidden normally because secrets):

curl https://raw.githubusercontent.com/hetznercloud/csi-driver/v2.6.0/deploy/kubernetes/hcloud-csi.yml -o /var/post_install/hcloud-csi.yml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload…

Replies: 10 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mysticaltech
Comment options

Comment options

You must be logged in to vote
5 replies
@mysticaltech
Comment options

@mysticaltech
Comment options

@mysticaltech
Comment options

@Dullaz
Comment options

@mysticaltech
Comment options

Answer selected by mysticaltech
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1151 on January 05, 2024 22:32.