From 528164e2227eb259b24f99f02a2af4b00c4c6f6e Mon Sep 17 00:00:00 2001 From: JayWood Date: Sun, 21 Jul 2024 00:26:41 -0400 Subject: [PATCH] add tmp back --- kube/tmp-pod.yml | 22 ++++++++++++++++++++++ kube/wordpress-pvc.yml | 2 +- kube/wordpress-pvc1.yml | 11 +++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 kube/tmp-pod.yml create mode 100644 kube/wordpress-pvc1.yml diff --git a/kube/tmp-pod.yml b/kube/tmp-pod.yml new file mode 100644 index 0000000..8e42e9d --- /dev/null +++ b/kube/tmp-pod.yml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: Pod +metadata: + name: data-migration +spec: + containers: + - name: alpine + image: alpine + command: ["/bin/sh"] + args: ["-c", "while true; do sleep 30; done;"] + volumeMounts: + - name: old-wp-content + mountPath: /mnt/old + - name: new-wp-content-uploads + mountPath: /mnt/new + volumes: + - name: old-wp-content + persistentVolumeClaim: + claimName: jaycodesit-wordpress-pvc # Your existing PVC + - name: new-wp-content-uploads + persistentVolumeClaim: + claimName: jaycodesit-wordpress-uploads-pvc # The new PVC diff --git a/kube/wordpress-pvc.yml b/kube/wordpress-pvc.yml index a87fa72..4dd2df7 100644 --- a/kube/wordpress-pvc.yml +++ b/kube/wordpress-pvc.yml @@ -1,7 +1,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: jaycodesit-wordpress-uploads-pvc + name: jaycodesit-wordpress-pvc spec: accessModes: - ReadWriteOnce diff --git a/kube/wordpress-pvc1.yml b/kube/wordpress-pvc1.yml new file mode 100644 index 0000000..a87fa72 --- /dev/null +++ b/kube/wordpress-pvc1.yml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: jaycodesit-wordpress-uploads-pvc +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + storageClassName: microk8s-hostpath