mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
Add a stable Kubernetes app-demo entry point, registry image overrides, a quickstart guide, and copyable basic app PVC examples. Validated on M02 k3s with writer pod -> same PVC -> reader pod checksum verification.
27 lines
598 B
YAML
27 lines
598 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: sw-block-example-reader
|
|
namespace: default
|
|
spec:
|
|
restartPolicy: Never
|
|
containers:
|
|
- name: app
|
|
image: busybox:1.36
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
set -eu
|
|
echo "[reader] reading existing data from PVC mounted at /data"
|
|
test -s /data/demo.bin
|
|
test -s /data/demo.sha256
|
|
sha256sum -c /data/demo.sha256
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: sw-block-example-pvc
|