owncloud
https://hub.kubeapps.com/charts/bitnami/owncloud
helm init owncloud
docker pull docker.io/bitnami/owncloud:10.8.0-debian-10-r20
docker tag docker.io/bitnami/owncloud:10.8.0-debian-10-r20 docker-hub.one-k.xyz/bitnami/owncloud:10.8.0-debian-10-r20
docker push docker-hub.one-k.xyz/bitnami/owncloud:10.8.0-debian-10-r20
# 创建 存储 卷
kubectl apply -f /free_cicdfs0/k8s_ymls/app-yml/owncloud/owncloud-pv.yml
kubectl replace --force -f /free_cicdfs0/k8s_ymls/app-yml/owncloud/owncloud-pv.yml
chown 1001:1001 -R /free_cicdfs0/k8s_data/owncloud
chmod 777 -R /free_cicdfs0/k8s_data/owncloud
kubectl create namespace owncloud
# --set owncloudHost='owncloud.one-k.xyz' \
helm install my-release -n owncloud \
--set image.registry='docker-hub.one-k.xyz' \
--set image.repository='bitnami/owncloud' \
--set image.tag='10.8.0-debian-10-r20' \
--set replicaCount='1' \
--set owncloudUsername='admin' \
--set owncloudPassword='brysjhhrhL356126155165352237656123165615' \
\
--set mariadb.enabled='false' \
--set externalDatabase.host='my-release-mariadb-galera.default.svc.cluster.local' \
--set externalDatabase.user='owncloud' \
--set externalDatabase.password='owncloud@free_cicd' \
--set externalDatabase.database='owncloud' \
\
--set persistence.storageClass='owncloud-storage' \
--set persistence.accessMode='ReadWriteMany' \
--set persistence.size='50Ti' \
\
--set service.type='LoadBalancer' \
--set service.loadBalancerIP='192.168.99.138' \
--set service.port='80' \
bitnami/owncloud
# upgrade
helm upgrade my-release -n owncloud --set replicaCount='1' --set owncloudPassword='brysjhhrhL356126155165352237656123165615' bitnami/owncloud
# 卸载 重新 部署, 注意 持久存储 以及 mysql 对应的 数据库 都需要删除
mysql> drop database owncloud;
Query OK, 49 rows affected (0.15 sec)
mysql> create database owncloud;
Query OK, 1 row affected (0.01 sec)
helm uninstall my-release -n owncloud
rm -rf /free_cicdfs0/k8s_data/owncloud/pv-n/*
kubectl replace --force -f /free_cicdfs0/k8s_ymls/app-yml/owncloud/owncloud-pv.yml
help
NAME: my-release
LAST DEPLOYED: Thu Sep 2 16:07:06 2021
NAMESPACE: owncloud
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Get the ownCloud URL by running:
echo "ownCloud URL: http://owncloud.one-k.xyz:8080/"
2. Get your ownCloud login credentials by running:
echo Username : admin
echo Password : $(kubectl get secret --namespace owncloud my-release-owncloud -o jsonpath="{.data.owncloud-password}" | base64 --decode)
debug
kubectl get pod -n owncloud
kubectl describe pod my-release-owncloud-6f777b5f4b-cxxsr -n owncloud
config
1 => '192.168.99.138',
2 => 'owncloud.one-k.xyz',
3 => '119.36.243.58:50000',
欢迎大家一起交流呀
qq群:3638803451
vx:wxid_sgdelhiwombj12