• Facebook
  • LinkedIn
  • X
  • Youtube
  • 로그인
  • 회원가입
  •  한글 한글 한글 ko
  • English English 영어 en
OPENMARU APM
  • 오픈마루
    • 회사소개
    • 연혁
    • 오픈마루 CI
  • 제품
    • OPENMARU Cloud APM
      • Application 모니터링
      • Openshift & Kubernetes 모니터링
      • WEB/WAS 모니터링
      • URL 모니터링
      • Cubrid 모니터링
    • OPENMARU Cluster
    • OPENMARU Dashboard
  • 오픈소스
    • 쿠버네티스
    • 아파치 톰캣
    • CentOS
  • 레드햇
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat JBoss EAP
  • 가격 안내
  • 조달물품
    • G2B 딜 등록
    • 조달물품 OPENMARU APM
    • 조달물품 OPENMARU Cluster
    • 혁신장터
  • 레퍼런스
  • 고객지원
  • 문서
  • 블로그
  • Search
  • Menu Menu

SUSE Linux로 구축하는 경량 Kubernetes 클러스터 –
SUSE Rancher K3S

SUSE Linux 환경에서 경량 Kubernetes 배포판인 K3S를 설치하고 Rancher를 구성하는 방법에 대한 가이드를 알아봅니다.

SUSE Rancher k3s

SUSE Linux와 K3S로 만드는 효율적인 Kubernetes 환경


SUSE Rancher K3S는 가벼운 Kubernetes 클러스터를 쉽게 설치하고 운영할 수 있는 솔루션입니다. 이번 포스팅에서는 SUSE Linux Enterprise 및 OpenSUSE Leap 15.6 환경에서 K3S 클러스터를 설정하고 Rancher를 통해 클러스터를 구성하는 방법을 단계별로 설명합니다.

OS


  • K3S가 지원하는 OS (포스팅에서는 Opensuse-leap 15.6 사용)
    • SUSE Linux Enterprise
    • OpenSUSE
    • Red Hat Enterprise Linux
    • CentOS
    • Fedora
    • Ubuntu
    • Debian
    • Raspberry PI

Server Resources


  • 최소 리소스 요구사항
Node CPU RAM
Server 2cores 2GB
Agent 1core 512MB
  • 아래와 같이 서버 리소스를 할당
Resource Server Node (Master Node) Agent Node (Worker Node)
CPU 4 4
REM 8 8
DISK (GB) 100 100

k3s install script


– Server Node와 Agent Node로 구성되며 Server와 Agent 모두 스케줄링이 가능하다.

– Server Node는 Kubernetes의 Master이다.

  • k3s를 설치할 수 있는 스크립트 실행 (Server Node에서 실행)
curl -sfL https://get.k3s.io | sh -
[INFO] Finding release for channel stable 
[INFO] Using v1.31.4+k3s1 as release 
[INFO] Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.31.4+k3s1/sha256sum-amd64.txt 
[INFO] Skipping binary downloaded, installed k3s matches hash 
[INFO] Skipping installation of SELinux RPM 
[INFO] Skipping /usr/local/bin/kubectl symlink to k3s, already exists 
[INFO] Skipping /usr/local/bin/crictl symlink to k3s, already exists 
[INFO] Skipping /usr/local/bin/ctr symlink to k3s, already exists 
[INFO] Creating killall script /usr/local/bin/k3s-killall.sh 
[INFO] Creating uninstall script /usr/local/bin/k3s-uninstall.sh 
[INFO] env: Creating environment file /etc/systemd/system/k3s.service.env 
[INFO] systemd: Creating service file /etc/systemd/system/k3s.service 
[INFO] systemd: Enabling k3s unit 
Created symlink /etc/systemd/system/multi-user.target.wants/k3s.service → /etc/systemd/system/k3s.service. 
[INFO] No change detected so skipping service start
  • Agent Node 추가 (Agent Node에서 실행)
    • K3S_URL은 Server Node의 IP를 입력
    • token 파일 위치는 Server Node의 /var/lib/rancher/k3s/server/node-token 경로 하위에 위치
curl -sfL https://get.k3s.io | K3S_URL=https://myserver:6443 K3S_TOKEN=mynodetoken sh -
  • node 확인
kubectl get nodes

NAME          STATUS   ROLES                  AGE   VERSION
agent-node    Ready    worker                 25m   v1.31.4+k3s1
server-node   Ready    control-plane,master   45m   v1.31.4+k3s1
  • core dns configmap 수정
    • rancher 도메인 입력
kubectl edit configmap coredns -n kube-system

...
        hosts /etc/coredns/NodeHosts [도메인] {
          [rancer server IP] [rancher.도메인]
          ttl 60
          reload 15s
          fallthrough
        }
        prometheus :9153
        forward . /etc/resolv.conf
        cache 30
        loop
        reload
        loadbalance
        import /etc/coredns/custom/*.override
...
  • Pod 재시작
kubectl delete pod coredns-ccb96694c-w2pxt -n kube-system

Rancher 설치


  • helm 설치
# helm 설치
zypper install helm
  • kubeconfig 설정
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
  • helm repository 구성
    • rancher
    • jetstack – https 통신에서 사용할 인증서 발급/관리 도구
# helm repository 추가
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
helm repo add jetstack https://charts.jetstack.io
  • rancher https를 위한 cert-manager 구성
helm install cert-manager jetstack/cert-manager \
  --namespace cert-manager \
  --create-namespace \
  --set crds.enabled=true
  
...
cert-manager v1.16.2 has been deployed successfully!

...
  • cert-manager 구성 확인
kubectl get all -n cert-manager

NAME                                          READY   STATUS    RESTARTS   AGE
pod/cert-manager-b6fd485d9-rbsfg              1/1     Running   0          4m1s
pod/cert-manager-cainjector-dcc5966bc-gdjxk   1/1     Running   0          4m1s
pod/cert-manager-webhook-dfb76c7bd-lhbks      1/1     Running   0          4m1s

NAME                              TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)            AGE
service/cert-manager              ClusterIP   10.43.186.44            9402/TCP           4m1s
service/cert-manager-cainjector   ClusterIP   10.43.16.106            9402/TCP           4m1s
service/cert-manager-webhook      ClusterIP   10.43.205.117           443/TCP,9402/TCP   4m1s

NAME                                      READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/cert-manager              1/1     1            1           4m1s
deployment.apps/cert-manager-cainjector   1/1     1            1           4m1s
deployment.apps/cert-manager-webhook      1/1     1            1           4m1s

NAME                                                DESIRED   CURRENT   READY   AGE
replicaset.apps/cert-manager-b6fd485d9              1         1         1       4m1s
replicaset.apps/cert-manager-cainjector-dcc5966bc   1         1         1       4m1s
replicaset.apps/cert-manager-webhook-dfb76c7bd      1         1         1       4m1s
  • rancher namespace 생성
kubectl create ns rancher
  • Rancher 설치
helm install rancher rancher-latest/rancher \
--namespace rancher \
--set bootstrapPassword=[초기비밀번호] \
--set hostname=rancher.hjy.k3s.local


NAME: rancher
LAST DEPLOYED: Wed Jan 15 11:05:19 2025
NAMESPACE: rancher
STATUS: deployed
REVISION: 1
TEST SUITE: None
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.hjy.k3s.local 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.hjy.k3s.local/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!
  • 로그에 나온 도메인으로 웹 접속
    • https://rancher.hjy.k3s.local
    • helm 배포시 설정한 bootstrapPassword 입력

rancher loginrancher

맺음말(마무리)


SUSE Rancher K3S는 작은 자원을 활용하여 클라우드 네이티브 애플리케이션의 배포와 관리를 손쉽게 수행할 수 있습니다. 특히 Rancher UI는 직관적인 인터페이스를 제공하여 Kubernetes 클러스터 운영에 필요한 모든 기능을 지원합니다. 이 가이드를 통해 여러분의 IT 환경에서 Kubernetes 클러스터를 효과적으로 관리해보세요.

Tel. 📞 02-469-5426 | E-mail. ✉️ hello@openmaru.io

📝 관련 콘텐츠 확인하기


openmaru apm

OPENMARU APM – 삼성 클라우드 플랫폼 (SCP) 등록 완료

2024-04-24/in APM/by 오픈마루 마케팅1
Read more
https://i0.wp.com/www.openmaru.io/wp-content/uploads/2024/04/thumbnail%402x-1.png?fit=761%2C605&ssl=1 605 761 오픈마루 마케팅1 https://www.openmaru.io/wp-content/uploads/2020/11/logo@2x.png 오픈마루 마케팅12024-04-24 13:36:492025-03-18 15:04:38OPENMARU APM – 삼성 클라우드 플랫폼 (SCP) 등록 완료

온나라 시스템 담당 주무관을 위한 OPENMARU APM

2024-04-11/in APM, OPENMARU/by 오픈마루 마케팅1
Read more
https://i0.wp.com/www.openmaru.io/wp-content/uploads/2024/04/240411_%EC%98%A8%EB%82%98%EB%9D%BC%EC%98%A4%ED%94%88%EB%A7%88%EB%A3%A8apm_title.jpg?fit=380%2C302&ssl=1 302 380 오픈마루 마케팅1 https://www.openmaru.io/wp-content/uploads/2020/11/logo@2x.png 오픈마루 마케팅12024-04-11 16:21:582024-08-07 09:16:27온나라 시스템 담당 주무관을 위한 OPENMARU APM
오픈마루 apm dashboard 신규 출시

OPENMARU Dashboard로 직관적인 APM관리를 시작하세요!

2024-04-08/in APM, Dashboard, OPENMARU/by 오픈마루 마케팅3
Read more
https://i0.wp.com/www.openmaru.io/wp-content/uploads/2024/04/240416dashboard_title.jpg?fit=380%2C302&ssl=1 302 380 오픈마루 마케팅3 https://www.openmaru.io/wp-content/uploads/2020/11/logo@2x.png 오픈마루 마케팅32024-04-08 18:53:362024-08-28 09:56:47OPENMARU Dashboard로 직관적인 APM관리를 시작하세요!
Page 8 of 19«‹678910›»

Share this:

  • Facebook
  • Twitter
  • Email
  • Print
  • Reddit
  • Pinterest
  • Telegram
  • WhatsApp

Like this:

Like Loading...

Recent Posts

  • ChatGPT 프롬프트 엔지니어링, 이렇게 시작하세요! 2025-05-08
  • 올해 1분기, 사람들이 가장 많이 본 OPENMARU 콘텐츠는? 2025-04-17
  • 보안 강화의 다음 단게, mTLS를 아시나요? 2025-04-03
  • 성공적인 MSA 구축을 위한 핵심 전략 대공개! 테크 엣지 세미나 안내 2025-03-21
  • 안전한 서비스 통신을 위한 필수 요소, mTLS의 이해와 필요성 2025-03-20

Categories

  • APM
  • Cloud
  • Cloud Native Seminar
  • Cluster
  • gift
  • JBoss
  • Kubernetes
    • Container
  • Linux
  • Microservices Architecture
  • News
  • Newsletter
  • OPENMARU
    • Dashboard
  • OpenShift
  • Red Hat
  • Seminar
    • gift
  • Tech Talk
  • 발표자료
  • 분류되지 않음
  • 오픈나루 공지사항
  • 오픈소스

이메일로 블로그 구독하기

이 블로그를 구독하고 이메일로 새글의 알림을 받으려면 이메일 주소를 입력하세요

Tags

APM cloud Cloud Native Container Docker Hybrid Cloud jboss JBoss EAP Kubernetes Kubernetes 모니터링 linux MSA Native OPENMARU OPENMARU APM OpenShift Openshift Promotion PaaS PaaS 플랫폼 Red Hat redhat RHEL tomcat Virtualization WAS Wildfly 가상화 네이티브 도커 레드햇 리눅스 모니터링 브리핑 세미나 오픈마루 오픈마루 APM 오픈시프트 주간 진짜 클라우드 컨테이너 쿠버네티스 클라우드 클라우드 네이티브 클라우드네이티브 클라우드 네이티브 세미나

Search

오픈마루

04778 서울시 성동구 뚝섬로1길 31 906 호
(성수동1가, 서울숲M타워)

Tel : 02-469-5426 | Fax : 02-469-7247
Email : sales@openmaru.io

  • OPENMARU CLOUD APM
    • Application 모니터링
    • Openshift & Kubernetes 모니터링
    • WEB/WAS 모니터링
    • URL 모니터링
    • Cubrid 모니터링
  • 가격안내
  • 고객 레퍼런스
  • 고객지원
    • 문서
    • 사용자가이드
    • 기술지원
  • 블로그
  • 이용약관
  • 개인정보처리방침
  • 서비스수준협약
  • 회사소개
Copyright © OPENMARU, Inc. All Rights Reserved. - powered by Enfold WordPress Theme
  • Facebook
  • LinkedIn
  • X
  • Youtube
공공혁신조달플랫폼 혁신장터에서 OPENMARU APM 구매하는 ...오픈마루 뉴스레터 | 뉴스레터로 알아보는 클라우드 네이티브 주간 브리핑공공혁신조달플랫폼 혁신장터에서 OPRNMARU APM 구매하기
Scroll to top
  • 한글
  • English
%d