uptimeKuma/99-restore-pod.yaml
Guillaume B.B. Van Hemmen 4563ee027e #0000 - Set up Kubernetes resources for Uptime Kuma deployment
Added YAML manifests to create the namespace, PersistentVolumeClaim, Deployment, Service, and Ingress for the Uptime Kuma application. Included configurations for TLS support, liveness probe, and a restore pod template for data management. These resources aim to facilitate scalable and secure application deployment.
2025-01-20 18:44:35 +01:00

23 lines
956 B
YAML

#apiVersion: v1
#kind: Pod
#metadata:
# namespace: uptime-kuma
# name: data-transfer-pod
#spec:
# containers:
# - name: transfer
# image: busybox
# command: ["sleep", "3600"]
# volumeMounts:
# - mountPath: /data
# name: data-volume
# volumes:
# - name: data-volume
# persistentVolumeClaim:
# claimName: app-data
#
##How to use
## create docker archive
## VOLUME=NAME; sudo docker run --rm -v $VOLUME:/data -v $(pwd):/backup busybox tar czf /backup/$VOLUME.tar.gz -C /data .
##copy, deflate, delete archive and list data
## VOLUME=NAME; NAMESPACE=NAME; kubectl -n $NAMESPACE exec data-transfer-pod -- rm -rf /data/*; kubectl -n $NAMESPACE cp $VOLUME.tar.gz data-transfer-pod:/data/; kubectl -n $NAMESPACE exec data-transfer-pod -- tar xzf /data/$VOLUME.tar.gz -C /data; kubectl -n $NAMESPACE exec data-transfer-pod -- rm /data/$VOLUME.tar.gz; kubectl -n $NAMESPACE exec data-transfer-pod -- ls -l /data