카이도스의 Tech Blog
Rancher K8s 구성 - 5(Rancher UI 구성) 본문
728x90
반응형
2024.02.15 - [Rancher k8s] - Rancher K8s 구성 - 1(DNS)
2024.02.15 - [Rancher k8s] - Rancher K8s 구성 - 2(HAproxy)
2024.02.20 - [Rancher k8s] - Rancher K8s 구성 - 3(Master, Worker)
2024.02.21 - [Rancher k8s] - Rancher K8s 구성 - 4(MetalLB & Nginx Ingress 구성)
2024.02.21 - [Rancher k8s] - Rancher K8s 구성 - 6(Ceph Storage 구성)
Rancher UI 구성 (admin / xgk8stest1234!@)
더보기
# cert-manager crd 및 pod 생성(시간 좀 걸림)
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.3/cert-manager.crds.yaml
helm repo add jetstack https://charts.jetstack.io --force-update
helm repo update
helm install \
cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--version v1.13.3
# 확인
kubectl get pod -n cert-manager -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
cert-manager-8db45d64b-jlkpb 1/1 Running 0 20s 10.42.5.5 r1-k8s-workre3 <none> <none>
cert-manager-cainjector-5c8d6f6646-5ss8p 1/1 Running 0 20s 10.42.4.6 r1-k8s-workre2 <none> <none>
cert-manager-webhook-7c7d969c76-pw6ns 1/1 Running 0 20s 10.42.4.7 r1-k8s-workre2 <none> <none>
# cattle-system 네임스페이스 생성
kubectl create namespace cattle-system
namespace/cattle-system created
# Rancher UI 배포
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
helm repo update
helm search repo rancher-stable
NAME CHART VERSION APP VERSION DESCRIPTION
rancher-stable/rancher 2.8.2 v2.8.2 Install Rancher Server to manage Kubernetes clu...
helm install rancher rancher-stable/rancher --namespace cattle-system --set hostname=rancher-ui.internal.xg.com --set replicas=1
----------------------------------------------------------------------------
NOTES:
Rancher Server has been installed.
NOTE: Rancher may take several minutes to fully initialize. Please standby while Certificates are being issued, Containers are started and the Ingress rule comes up.
Check out our docs at https://rancher.com/docs/
If you provided your own bootstrap password during installation, browse to https://rancher-ui.internal.xg.com to get started.
If this is the first time you installed Rancher, get started by running this command and clicking the URL it generates:
```
echo https://rancher-ui.internal.xg.com/dashboard/?setup=$(kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}')
```
To get just the bootstrap password on its own, run:
```
kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}{{ "\n" }}'
```
Happy Containering!
더보기
# 개인피씨 호스트네임 설정
10.10.X.1 rancher-ui.internal.xg.com
# 사이트 접속(3~5분 뒤 접속) 후 패스워드 변경
echo https://rancher-ui.internal.xg.com/dashboard/?setup=$(kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}')
https://rancher-ui.internal.xg.com/dashboard/?setup=qzg6429ffh7vdg8qgw8bs54s5hgrf279x9t2hfb6wb4ggbxtvtlp9j
# 패스워드 확인
kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}{{ "\n" }}'
srdb8kcl88zrrdtrbscx7krgpztlpgx57xncgjqbqv4j7bxf86fxwg
브라우저에서 Rancher UI 접속 확인
# 브라우저 접속 후 로그인 & 패스워드 변경 (user/pw : admin / xgk8stest1234!@)
https://rancher-ui.internal.xg.com
728x90
반응형
'Rancher k8s' 카테고리의 다른 글
Rancher K8s 구성 - 7(Private Registry 구성 - Harbor) (0) | 2024.02.23 |
---|---|
Rancher K8s 구성 - 6(Ceph Storage 구성) (0) | 2024.02.23 |
Rancher K8s 구성 - 4(MetalLB & Nginx Ingress 구성) (0) | 2024.02.21 |
Rancher K8s 구성 - 3(Master, Worker) (0) | 2024.02.20 |
Rancher K8s 구성 - 2(HAproxy) (0) | 2024.02.15 |
Comments