第二十一章 九析带你轻松完爆 helm3 zookeeper

本系列文章:


第一章:九析带你轻松完爆 helm3 安装

第二章:九析带你轻松完爆 helm3 公共仓库

第三章:九析带你轻松完爆 helm3 私有仓库

第四章:九析带你轻松完爆 helm3 chart

第五章:九析带你轻松完爆 helm3 release

第六章:九析带你轻松完爆 helm3 gitlab

第七章:九析带你轻松完爆 helm3 nginx-ingress

第八章:九析带你轻松完爆 helm3 gitlab nfs

第九章:九析带你轻松完爆 helm3 nexus

第十章:九析带你轻松完爆 helm3 heapster

第十一章:九析带你轻松完爆 helm3 kubernetes-dashboard

第十二章:九析带你轻松完爆 helm3 harbor

第十三章:九析带你轻松完爆 helm3 prometheus

第十四章:九析带你轻松完爆 helm3 grafana

第十五章:九析带你轻松完爆 grafana 关联 prometheus

第十六章:九析带你轻松完爆 helm3 efk - elasticsearch

第十七章:九析带你轻松完爆 helm3 efk - kibana

第十八章:九析带你轻松完爆 helm3 efk - fluentd

第十九章:九析带你轻松完爆 helm3 istio 安装

第二十章:九析带你轻松完爆 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

1.pngspacer.gif


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

clipboard2.png

         自此,轻松完爆 helm3 安装 zookeeper。

猜你喜欢

转载自blog.51cto.com/14625168/2467161
今日推荐