본문 바로가기

devops

Helmchart로 Rancher 설치하기

반응형

 

공식 문서에 매우 자세하게 설치하는 방법이 나온다.

https://ranchermanager.docs.rancher.com/pages-for-subheaders/install-upgrade-on-a-kubernetes-cluster

 

Install/Upgrade Rancher on a Kubernetes Cluster | Rancher

Learn how to install Rancher in development and production environments. Read about single node and high availability installation

ranchermanager.docs.rancher.com

 

공식문서의 내용을 토대로 cert-manager를 적용하여 설치했다. (• Rancher-generated Certificates)

 

Helm 레포지토리 추가

helm repo add rancher-stable https://releases.rancher.com/server-charts/stable

 

Namespace 생성

 

kubectl create namespace cattle-system

 

cert-manager 설치

(Rancher는 무조건 SSL을 설정해야한다..)

# If you have installed the CRDs manually instead of with the `--set installCRDs=true` option added to your Helm install command, you should upgrade your CRD resources before upgrading the Helm chart:
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.crds.yaml

# Add the Jetstack Helm repository
helm repo add jetstack https://charts.jetstack.io

# Update your local Helm chart repository cache
helm repo update

# Install the cert-manager Helm chart
helm install cert-manager jetstack/cert-manager \
  --namespace cert-manager \
  --create-namespace \
  --version v1.11.0

 

Helm Chart 수정

nginx ingress를 사용하고 도메인을 등록하도록 아래와 같이 hostname, ingressClassName만 수정함.

#생략....

hostname: rancher.yourhostname.com

#생략...

ingress:
	#생략...
  ingressClassName: "nginx"

 

Helm Install

helm install rancher -f my-values.yaml .
 
반응형