大橙子网站建设,新征程启航
为企业提供网站建设、域名注册、服务器等服务
git clone https://github.com/minio/minio.git
cd minio/docs/orchestration/kubernetes/
cat << EOF > minio-standalone-pv.yaml
kind: PersistentVolume
apiVersion: v1
metadata:
name: minio-data
labels:
app: minio-data
spec:
capacity:
storage: "10Gi"
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
hostPath:
path: "/data/k8s/minio"
EOF
echo << EOF >> minio-standalone-pvc.yaml
selector:
matchLabels:
app: minio-data
EOF
kubectl create namespace minio
kubectl apply -f minio-standalone-pv.yaml
kubectl apply -n minio -f minio-standalone-pvc.yaml
kubectl apply -n minio -f minio-standalone-deployment.yaml
kubectl apply -n minio -f minio-standalone-service.yaml
cat /data/k8s/minio/.minio.sys/config/config.json |grep Key
"accessKey": "minio",
"secretKey": "minio123",
"routingKey": "",