multi-cluster-devops

Lab 3. deploy workloads with rancher apps


1) 클러스터 Apps을 이용한 서비스 설치

# local-path storage 설치
$ kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.24/deploy/local-path-storage.yaml
$ kubectl patch storageclass local-path -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'

# rhel selinux를 사용하는 경우 local-path-storage 사용에 제약이 있어 disabled 합니다.
$ setenforce 0

# 영구적용
$ sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
$ reboot

2) nginx 웹 서버 설치

3) mariadb 설치