From c0eb98d2cc363b3eb1b525b39fc0d101c45a9fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Krop=C3=A1=C4=8Dek?= Date: Tue, 11 Feb 2025 17:49:10 +0100 Subject: [PATCH] settings finished --- .../base/.envs/.proxmox-csi-secret.template | 1 + .../proxmox-csi-plugin.values.yaml.gotmpl | 33 +++++-------------- 2 files changed, 9 insertions(+), 25 deletions(-) create mode 100644 stages/base/.envs/.proxmox-csi-secret.template diff --git a/stages/base/.envs/.proxmox-csi-secret.template b/stages/base/.envs/.proxmox-csi-secret.template new file mode 100644 index 0000000..d219c9b --- /dev/null +++ b/stages/base/.envs/.proxmox-csi-secret.template @@ -0,0 +1 @@ +{{ pw "bf0cc098-bbf1-4254-9133-40024505c093" }} \ No newline at end of file diff --git a/stages/base/values/proxmox-csi-plugin.values.yaml.gotmpl b/stages/base/values/proxmox-csi-plugin.values.yaml.gotmpl index fa857b5..b27e6b8 100644 --- a/stages/base/values/proxmox-csi-plugin.values.yaml.gotmpl +++ b/stages/base/values/proxmox-csi-plugin.values.yaml.gotmpl @@ -1,35 +1,18 @@ +createNamespace: true + config: clusters: - url: https://192.168.1.151:8006/api2/json insecure: true token_id: "kubernetes-csi@pve!csi" - token_secret: "key" - region: cluster-1 + token_secret: {{ readFile "../.envs/.proxmox-csi-secret" }} + region: kc-node0 -# Deploy Node CSI driver only on proxmox nodes -node: - nodeSelector: - # It will work only with Talos CCM, remove it overwise - node.cloudprovider.kubernetes.io/platform: nocloud - tolerations: - - operator: Exists - -# Deploy CSI controller only on control-plane nodes -nodeSelector: - node-role.kubernetes.io/control-plane: "" -tolerations: - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - -# Define storage classes -# See https://pve.proxmox.com/wiki/Storage storageClass: - - name: proxmox-data-xfs - storage: data - reclaimPolicy: Delete - fstype: xfs - name: proxmox-data - storage: data + storage: hdd-data1 reclaimPolicy: Delete fstype: ext4 - cache: writethrough \ No newline at end of file + cache: writethrough + annotations: + storageclass.kubernetes.io/is-default-class: "true" \ No newline at end of file