https://helm.sh/ko/docs/intro/install/
$ curl -fsSL -o get_helm.sh <https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3>
$ chmod 700 get_helm.sh
$ ./get_helm.sh
helm 설치
https://artifacthub.io/packages/helm/elastic/elasticsearch
$ helm repo add elastic <https://helm.elastic.co>
$ helm repo update
helm으로 elasticsearch repo를 추가하고, 업데이트한다.
해당 레포지는 deploy, pod, service, secret, ca.cert 등 elasticsearch에 필요한 object를 만들어주지만 pv는 따로 만들어서 연결해 주어야 한다.
간편한 연결을 위해 nfs로 공유 디렉터리를 만들고 pv를 연결한다.
#!/bin/bash
sudo apt update
sudo apt install nfs-kernel-server -y
sudo mkdir -p /home/student/data
sudo chmod 777 /home/student/data
echo "/home/student/data *(rw,no_root_squash,async)" | sudo tee -a /etc/exports
sudo systemctl restart nfs-server
sudo systemctl enable nfs-server
sudo exportfs -a