From 48b6067bf8dcc2469fcdc5d5b21bbb887932f495 Mon Sep 17 00:00:00 2001 From: Daniel Sy Date: Tue, 6 May 2025 16:31:38 +0200 Subject: [PATCH] feat: :card_file_box: Add storageclass for otc --- template/stacks/otc/storageclass.yaml | 23 +++++++++++++++++++ .../stacks/otc/storageclass/storageclass.yaml | 18 +++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 template/stacks/otc/storageclass.yaml create mode 100644 template/stacks/otc/storageclass/storageclass.yaml diff --git a/template/stacks/otc/storageclass.yaml b/template/stacks/otc/storageclass.yaml new file mode 100644 index 0000000..1a5b758 --- /dev/null +++ b/template/stacks/otc/storageclass.yaml @@ -0,0 +1,23 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: storageclass + namespace: argocd + labels: + example: otc + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: default + server: "https://kubernetes.default.svc" + source: + repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}} + targetRevision: HEAD + path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/otc/storageclass" + project: default + syncPolicy: + automated: + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/template/stacks/otc/storageclass/storageclass.yaml b/template/stacks/otc/storageclass/storageclass.yaml new file mode 100644 index 0000000..038bf24 --- /dev/null +++ b/template/stacks/otc/storageclass/storageclass.yaml @@ -0,0 +1,18 @@ +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + annotations: + storageclass.beta.kubernetes.io/is-default-class: "true" + labels: + kubernetes.io/cluster-service: "true" + name: default +parameters: + kubernetes.io/description: "" + kubernetes.io/hw:passthrough: "true" + kubernetes.io/storagetype: BS + kubernetes.io/volumetype: SATA + kubernetes.io/zone: eu-de-02 +provisioner: flexvolume-huawei.com/fuxivol +reclaimPolicy: Delete +volumeBindingMode: Immediate +allowVolumeExpansion: true \ No newline at end of file