3월, 2020의 게시물 표시

elasticsearch on docker vm.max_map_count [65530] is too low

#show error [2020-03-27T00:51:26,356][INFO ][o.e.d.DiscoveryModule    ] [master-node1] using discovery type [zen] and host providers [settings] [2020-03-27T00:51:34,430][INFO ][o.e.n.Node               ] [master-node1] initialized [2020-03-27T00:51:34,430][INFO ][o.e.n.Node               ] [master-node1] starting ... [2020-03-27T00:51:36,061][INFO ][o.e.t.TransportService   ] [master-node1] publish_address {172.20.0.2:9300}, bound_addresses {[::]:9300} [2020-03-27T00:51:36,238][INFO ][o.e.b.BootstrapChecks    ] [master-node1] bound or publishing to a non-loopback address, enforcing bootstrap checks ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] #fix error [root@localhost ~]# sysctl -w vm.max_map_count=262144 vm.max_map_count = 262144

install ELK on docker

install ELK on docker #install docker [root@minimacent ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 #install docker [root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror, langpacks adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo #install docker [root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror, langpacks #install docker [root@minimacent ~]# yum install docker-ce docker-ce-cli containerd.io Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com #install docker [root@minimacent ~]# yum i

ELK beat " No directory ..." Error occurred

ELK beat " No directory ..." Error occurred #error message [root@minimacent bin]# ./metricbeat setup -c /etc/metricbeat/metricbeat.yml Overwriting ILM policy is disabled. Set `setup.ilm.overwrite:true` for enabling. Index setup finished. Loading dashboards (Kibana must be running and reachable) Skipping loading dashboards, No directory /usr/share/metricbeat/bin/kibana/7 #fixed error [root@minimacent bin]# ./metricbeat -c /etc/metricbeat/metricbeat.yml -path.home /usr/share/metricbeat -path.config /etc/metricbeat -path.data /var/lib/metricbeat setup --dashboards Loading dashboards (Kibana must be running and reachable) Loaded dashboards [root@minimacent bin]#

kubernetes test

이미지
install kubernetes #install docker [root@minimacent ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 [root@minimacent ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror, langpacks adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo [root@minimacent ~]# yum install docker-ce Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: data.aonenetworks.kr * extras: data.aonenetworks.kr * updates: data.aonenetworks.kr Resolving Dependencies --> Running transaction check ---> Package docker-ce.x86_64 3:19.03.8-3.el7 will be installed --> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-19.03.8-3.el7.x86_64 --> Processing Dependency: containerd.io >= 1.2.