在k8s中部署zabbix-server
背景:最近迷恋上helm,但是对helm特别陌生,写这篇文章的时候主要是想学习一下helm的使用方式,因此,我在这里使用helm部署了一个zabbix-server和postgresql数据库
整体思路:
使用helm部署zabbix-server
使用helm部署postgresql
部署zabbix-agent
步骤一: 先决条件准备
Kubernetes集群1.10+
helm3.0+
基础架构中的PV供应商支持
安装nfs(当然也可以是其他持久化存储 如ceph 这里使用nfs)
nfs服务端192.168.100.158操作
1.安关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
2.安装配置nfs
yum -y install nfs-utils rpcbind \
创建共享目录分配权限
mkdir -p /data/k8s/
vi /etc/exports
/data/k8s *(rw,sync,no_root_squash)
先启动rpcbind
systemctl start rpcbind
systemctl enable rpcbind
systemctl status rpcbind
再启动nfs
systemctl start nfs
systemctl enable nfs
systemctl status nfs
通过命令确认
rpcinfo -p|grep nfs