From 8723280f2886e3e5dafee6efdcf060fcfa868e93 Mon Sep 17 00:00:00 2001 From: Jason Gilfoil Date: Sun, 25 Feb 2024 04:17:46 +0000 Subject: [PATCH] remove rook-ceph removing temporarily to recover the cluster state. --- kubernetes/apps/rook-ceph/kustomization.yaml | 2 +- kubernetes/apps/rook-ceph/namespace.yaml | 4 +- tests/deployments/test-openebs.yaml | 39 ++++++++++++++++++++ 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 tests/deployments/test-openebs.yaml diff --git a/kubernetes/apps/rook-ceph/kustomization.yaml b/kubernetes/apps/rook-ceph/kustomization.yaml index 14fac376..78f33ce2 100644 --- a/kubernetes/apps/rook-ceph/kustomization.yaml +++ b/kubernetes/apps/rook-ceph/kustomization.yaml @@ -6,4 +6,4 @@ resources: # Pre Flux-Kustomizations - ./namespace.yaml # Flux-Kustomizations - - ./ks.yaml + # - ./ks.yaml diff --git a/kubernetes/apps/rook-ceph/namespace.yaml b/kubernetes/apps/rook-ceph/namespace.yaml index 4f4d74a8..3721244e 100644 --- a/kubernetes/apps/rook-ceph/namespace.yaml +++ b/kubernetes/apps/rook-ceph/namespace.yaml @@ -3,5 +3,5 @@ apiVersion: v1 kind: Namespace metadata: name: rook-ceph - labels: - kustomize.toolkit.fluxcd.io/prune: disabled + # labels: + # kustomize.toolkit.fluxcd.io/prune: disabled diff --git a/tests/deployments/test-openebs.yaml b/tests/deployments/test-openebs.yaml new file mode 100644 index 00000000..dc1b2193 --- /dev/null +++ b/tests/deployments/test-openebs.yaml @@ -0,0 +1,39 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: test-pvc +spec: + accessModes: + - ReadWriteOnce + storageClassName: openebs-hostpath + resources: + requests: + storage: 100Mi + +--- + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: busybox-deployment +spec: + selector: + matchLabels: + app: busybox + replicas: 1 + template: + metadata: + labels: + app: busybox + spec: + containers: + - name: busybox + image: busybox + command: ['sh', '-c', 'echo The app is running! && sleep 3600'] + volumeMounts: + - mountPath: "/mnt/storage" + name: storage + volumes: + - name: storage + persistentVolumeClaim: + claimName: test-pvc