Skip to content

Commit

Permalink
add tmp back
Browse files Browse the repository at this point in the history
  • Loading branch information
JayWood committed Jul 21, 2024
1 parent 86f78d6 commit 528164e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
22 changes: 22 additions & 0 deletions kube/tmp-pod.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion kube/wordpress-pvc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jaycodesit-wordpress-uploads-pvc
name: jaycodesit-wordpress-pvc
spec:
accessModes:
- ReadWriteOnce
Expand Down
11 changes: 11 additions & 0 deletions kube/wordpress-pvc1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jaycodesit-wordpress-uploads-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: microk8s-hostpath

0 comments on commit 528164e

Please sign in to comment.