应用部署wrod
tar -zxf wordpress-13.0.23.tgz
cd wordpress
vi values.yaml
service:
## @param service.type WordPress service type
##
type: NodePort
readinessProbe:
enabled: false
readinessProbe:
enabled: false
查看persistence:配置
mariadb:
persistence:
enabled: false
docker load -i bitnami_wordpress-5.9.2-debian-10-r0.tar
docker load -i bitnami_mariadb-10.5.15-debian-10-r11.tar
mkdir /wp
chmod 777 /wp
vi pv.yaml
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-wp
labels:
name: pv-wp
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
hostPath:
path: /wp
kubectl apply -f pv.yaml
helm install wordpress .
- 点赞
- 收藏
- 关注作者
评论(0)