Compare commits
2 commits
5bd824dee5
...
e568b5aa82
Author | SHA1 | Date | |
---|---|---|---|
e568b5aa82 | |||
80476532d7 |
2 changed files with 2 additions and 7 deletions
|
@ -18,7 +18,7 @@ fun Prov.provisionHetznerCSIForK8s(hetznerApiToken: Secret, encryptionPassphrase
|
|||
values = mapOf(
|
||||
"HETZNER_API_TOKEN" to hetznerApiToken.plain()
|
||||
))
|
||||
applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-api-token-secret.yaml"))
|
||||
cmd("kubectl apply -f hcloud-api-token-secret.yaml", k3sManualManifestsDir)
|
||||
applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-csi.yaml"))
|
||||
|
||||
// Encryption
|
||||
|
@ -30,7 +30,7 @@ fun Prov.provisionHetznerCSIForK8s(hetznerApiToken: Secret, encryptionPassphrase
|
|||
values = mapOf(
|
||||
"HETZNER_ENCRYPTION_PASSPHRASE" to encryptionPassphrase.plain()
|
||||
))
|
||||
applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-encryption-secret.yaml"))
|
||||
cmd("kubectl apply -f hcloud-encryption-secret.yaml", k3sManualManifestsDir)
|
||||
applyHetznerCSIFileFromResource(File(k3sManualManifestsDir, "hcloud-encrypted-storage-class.yaml"))
|
||||
}
|
||||
|
||||
|
|
|
@ -37,8 +37,6 @@ private val k3sEchoWithTls = File(k3sManualManifestsDir, "echo-tls.yaml")
|
|||
private val k3sEchoNoTls = File(k3sManualManifestsDir, "echo-no-tls.yaml")
|
||||
private val selfSignedCertificate = File(k3sManualManifestsDir, "selfsigned-certificate.yaml")
|
||||
|
||||
private val hetznerCSIDriver = File(k3sManualManifestsDir, "hcloud-csi.yaml")
|
||||
|
||||
private val localPathProvisionerConfig = File(k3sManualManifestsDir, "local-path-provisioner-config.yaml")
|
||||
|
||||
// ----------------------------------- public functions --------------------------------
|
||||
|
@ -125,9 +123,6 @@ fun Prov.installK3s(k3sConfig: K3sConfig): ProvResult {
|
|||
applyK3sFileFromResource(k3sMiddleWareHttpsRedirect)
|
||||
}
|
||||
|
||||
// hetzner csi-driver
|
||||
applyK3sFileFromResource(hetznerCSIDriver)
|
||||
|
||||
// other
|
||||
applyK3sFileFromResource(localPathProvisionerConfig)
|
||||
|
||||
|
|
Loading…
Reference in a new issue