本系列文章:
mysql
第一章:九析帶你輕鬆完爆 helm3 安裝nginx
第二章:九析帶你輕鬆完爆 helm3 公共倉庫git
第三章:九析帶你輕鬆完爆 helm3 私有倉庫sql
第四章:九析帶你輕鬆完爆 helm3 chartapi
第五章:九析帶你輕鬆完爆 helm3 release服務器
第六章:九析帶你輕鬆完爆 helm3 gitlabapp
第七章:九析帶你輕鬆完爆 helm3 nginx-ingresselasticsearch
第八章:九析帶你輕鬆完爆 helm3 gitlab nfside
第九章:九析帶你輕鬆完爆 helm3 nexusgitlab
第十一章:九析帶你輕鬆完爆 helm3 kubernetes-dashboard
第十三章:九析帶你輕鬆完爆 helm3 prometheus
第十五章:九析帶你輕鬆完爆 grafana 關聯 prometheus
第十六章:九析帶你輕鬆完爆 helm3 efk - elasticsearch
第十七章:九析帶你輕鬆完爆 helm3 efk - kibana
第十八章:九析帶你輕鬆完爆 helm3 efk - fluentd
第二十章:九析帶你輕鬆完爆 helm3 mysql
第二十一章:九析帶你輕鬆完爆 helm3 zookeeper
目錄
1 前言
本文采用 helm3 v3.0.0; k8s v1.16.3。
2 添加倉庫
helm repo add incubator https://apphub.aliyuncs.com
3 下載 zk
helm 搜索 zk:
helm search repo zookeeper
下載並解壓:
helm fetch incubator/zookeeper
tar -zxvf zookeeper-5.3.1.tgz
4 建立命名空間
kubectl create ns zookeeper
5 安裝 zk
helm install -n zookeeper zookeeper zookeeper
6 安裝 nfs 服務器
如何安裝 nfs 服務器,請參考本人《輕鬆完爆 nfs 安裝》,不用擔憂,簡單到爆,讓你分分鐘輕鬆完爆。
mkdir -p /data/nfs/zookeeper/
chmod 777 -R zookeeper
echo "/data/nfs/zookeeper 10.110.0.0/16(rw,sync,no_root_squash)" >> /etc/exports
systemctl restart nfs
7 建立 pv
建立 pv-zookeeper-4g.yaml 文件:
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-zookeeper-4g
spec:
capacity:
storage: 4Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
nfs:
server: 10.110.101.106
path: /data/nfs/zookeeper/4g
建立 pv:
kubectl apply -f pv-zookeeper-4g.yaml
自此,輕鬆完爆 helm3 安裝 zookeeper。