k8s电商环境搭建

mkdir -p /web/{html,data}
yum -y install nfs-utils rpcbind #安装 nfs
[root@client_15_k8s_clould ~]# cat /etc/exports
/web/html *(rw,no_root_squash)
/web/data *(rw,no_root_squash)
/ifs/kubernetes/jenkins *(rw,no_root_squash)
systemctl enable nfs   &&  systemctl restart  nfs
[root@client_15_k8s_clould h5]# showmount -e
Export list for client_15_k8s_clould:
/ifs/kubernetes/jenkins *
/web/data               *
/web/html               *
 tar xf lnmp-v9.tar.gz
 cd lnmp
unzip ecshop.zip
 mv ecshop/* /web/html/

 创建mysql  和 web  pv

[root@client_15_k8s_clould lnmp]# cat pv.yaml 
apiVersion: v1
kind: PersistentVolume
m

你可能感兴趣的:(k8s篇,kubernetes)