在kubernetes中搭建LNMP环境,并安装Discuz

https://coding.net/u/aminglinux/p/k8s_discuz/git/tree/master

按照文档操做注意的几点
1.node 须要yum -y install nfs-utilsphp

2.showmount -e nfsipnode

3.镜像地址要改为本身harbor的地址mysql

4.最后安装的界面上,有个localhost地址要改为172.254.60.132
[root@master nginx_php]# kubectl get svc dz-mysql -o wide
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
dz-mysql ClusterIP 172.254.60.132 <none> 3306/TCP 15m app=discuz,tier=mysql
[root@master nginx_php]# mysql -uroot -h172.254.60.132 -p 3306linux

5.做者让外部访问是经过nginx作的,相似nodeportnginx

6.pod如何中止或者说挂载的数据如何备份?git

相关文章
相关标签/搜索