Skip to content

Commit

Permalink
feat: add storage class
Browse files Browse the repository at this point in the history
  • Loading branch information
reinthal committed Dec 8, 2024
1 parent e5c4db8 commit cae1d20
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
2 changes: 2 additions & 0 deletions infrastructure/supporting-infra/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ resources:

# Truenas CSP
- truenas-csp.yaml
- truenas-csp-storage-class.yaml
- truenas-csp-secret-sealed.yaml
19 changes: 19 additions & 0 deletions infrastructure/supporting-infra/truenas-csp-secret-sealed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: truenas-secret
namespace: truenas-csp
spec:
encryptedData:
backend: AgA+OELUNzB9MwN8dNUPkKexBgIp8zvBRgq/+pgwuaBkpfq0S/Yl/f1khWfFb9pY1ORptDaKTeCSPxxwUk3KT/4BfzQK/3h67elBMUsBbaRCM6BzlLCb+L58x2vxajhgQkBO4yB8CX7kPvu5l1+QMxtZ2dw9k1HHZ7cjbr75GYxXdh1uR9DYVMYLDfhRbd0wMLLeydDVb3IzcBKXLWGivMaGr4lvA0jIkCOGuHClfUXXZdmav9FhSR45UzojqXLGBlWxKTlxanJtfy8Z7RvX/jR0cPtOvjWWQ0u2kAkcFSCzunQcuvtqG7O2O9v8JdZ1xUya1kgX9UZb0GLZXEw6K1DdS14dnU6N0T0NZDLUDpiLuTh68IashNrk274hhSa8KoLmZ0YutHU4y+OfhGFx+gW58x6ww1BWekNCGWH3gJ01TQWW3jC1daNnBV9ks5ROWTbsGMdHiL+kfaj1zpW/UaBRsIXpmnv8d7yannEFKcgdkDHJdMc2+dyGOZWgp6t8EvHsI9yRbVwzF5Imt3nbFQ3KuikmlswQSHuKPjzTvmk+Xb6yXpbMqgiBuh425lYW1q/N/TVM32NU99ibnvn+zdm76/M403adLTzBUmgGvsTSTOL+KDuvnsQYwVORT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nKDyRZRSoqcGNw9hgKw1HC/l12RKmG/CFHJKvBkk7qPLoyHv7+OfFrLT1uRxY9H9ScPScXLYMVbKyxR7GR6Lt5I03Lxptk1UgQgbeT6BZx1L1eIAHrLlhCVPTw888d8lBucpuyTyhdQlnu00PCqSuKCPeZ+iTXT+yIfvB9U4XP/F6wF/SjKL36ccc
username: AgB4iYIPRD1/Robf5zl0SoFGjLJ+iQslOaKk6iARgAQEWmRuBwkBqzDS0ngCNx1vB/nRs1tJqzkaNLURJT6fzGzbk/cHDcHk64CJgQSAKe9r1xBJqDMPU/L0GBhLPMOZmkWaZZaYFbtXm2w46wxwpJ6t3rWIpXy8qA/3s7zzFUwRUi6za7Ql0S8Ik2+hyPL7XbRM0A+Ik/utKFXRq1hE/x6f8m2wKnHYH7aUJZ6zecNfavWMOTWjKSQJbcA34J2hnMY81oP1AmP9gss9CRO/goK7SmpJ0utOg1VCCA4alBhnEVedqTD4Fo9UaFutJ8seCQfRCT8YeVEa81Dx4Y1toLHDC0iq98Ay/HIBZVf3mu+OZe5eCI+Nh6xYKKSOsvPkAMoWcqZV3TLB95OgPKFp35S1g5F2g4N7VUim7VsvGRmYAt8d0yt4N4/K5t2nl/qz1pVNVtUBaqg+w4a44xXYI93mCsxFuCjk4It6slXAITYWrZy/68ZWdvHS/2C6Frp34ZYwqrVdE8OJbnyH7DiiBJDbP2+W8RTvKCH3Wp+WrhTxJyKPkEV+No3sWwklza+Y3atXuANHFeABFIZ3gI0FpYSJ06/LFyeOXWCuWytPA7T3IlYgx2OYWatw5fZc75+NCuT6fMTML6DDsMMACilNHSpeFosNW8owjwWXYAOiHnjSbXA2T+yYy6zhtCKXdTTWJXeQzwZryFYeUkTb4T1CtktVa5Umh8Ytv6VyOITu/jKMOIs3YZopFeoLPKI8m7xWtFU=
template:
metadata:
creationTimestamp: null
name: truenas-secret
namespace: truenas-csp
24 changes: 24 additions & 0 deletions infrastructure/supporting-infra/truenas-csp-storage-class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
storageclass.kubernetes.io/is-default-class: "false"
name: truenas-storageclass
provisioner: csi.hpe.com
parameters:
csi.storage.k8s.io/controller-expand-secret-name: truenas-secret
csi.storage.k8s.io/controller-expand-secret-namespace: truenas-csp
csi.storage.k8s.io/controller-publish-secret-name: truenas-secret
csi.storage.k8s.io/controller-publish-secret-namespace: truenas-csp
csi.storage.k8s.io/node-publish-secret-name: truenas-secret
csi.storage.k8s.io/node-publish-secret-namespace: truenas-csp
csi.storage.k8s.io/node-stage-secret-name: truenas-secret
csi.storage.k8s.io/node-stage-secret-namespace: truenas-csp
csi.storage.k8s.io/provisioner-secret-name: truenas-secret
csi.storage.k8s.io/provisioner-secret-namespace: truenas-csp
csi.storage.k8s.io/fstype: xfs
allowOverrides: sparse,compression,deduplication,volblocksize,sync,description
root: cactuar/kubernetes
reclaimPolicy: Delete
allowVolumeExpansion: true
2 changes: 0 additions & 2 deletions infrastructure/supporting-infra/truenas-csp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ spec:
interval: 360h0m0s
releaseName: truenas-csp
targetNamespace: truenas-csp

values: []

0 comments on commit cae1d20

Please sign in to comment.