cat >zentao.yaml<
kubectl create ns work
kubectl apply -f zentao.yaml
#查看
[root@k8s-master1 ~]# kubectl get pods -n work
NAME READY STATUS RESTARTS AGE
zentao-584777bdf7-v8gjc 1/1 Running 0 13m
[root@k8s-master1 ~]# kubectl get pvc -n work
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
zentao-mysql-pvc Bound pvc-8537a52f-5e37-4a2f-acb0-770e5c1734d1 1Gi RWX managed-nfs-storage 13m
zentao-pvc Bound pvc-e079d51d-f681-4640-a2bb-44da2bd6b577 1Gi RWX managed-nfs-storage 13m
[root@k8s-master1 ~]# kubectl get pvc -n work |grep zentao
zentao-mysql-pvc Bound pvc-8537a52f-5e37-4a2f-acb0-770e5c1734d1 1Gi RWX managed-nfs-storage 13m
zentao-pvc Bound pvc-e079d51d-f681-4640-a2bb-44da2bd6b577 1Gi RWX managed-nfs-storage 13m
访问:http://192.168.4.115:30007/