yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

CentOS7 - minikube 설치

김영훈 2022.12.02 11:44 조회 수 : 900

1. 환경

4vCore, 8GB 메모리, 20GB

 

2. SELINUX 비활성화

2. 1. SEINUX 설정에서 비활성화 설정

sed 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

2. 2. 현재 활성화된 SELINUX 비활성화

setenforce 0

 

3. firewalld 비활성화

3. 1. firewalld 서비스 종료

systemctl stop firewalld.service

3. 2. firewalld 부팅 시 자동으로 실행되지 않도록 설정

systemctl disable firewalld.service

 

4. 서버 리부팅

init 6

 

5. minikube 다운로드 및 설치

5. 1. minikube 다운로드

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-latest.x86_64.rpm

5. 2. minikube 설치

rpm -Uvh minikube-latest.x86_64.rpm

 

6. docker 설치

6. 1. yum-utils 설치

yum install -y yum-utils

6. 2. docker 저장소 추가

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

6. 3. docker 설치

yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin

 

7. docker 구동

7. 1. docker 구동

systemctl start docker

7. 2. docker 부팅 시 자동으로 구동되도록 설정

systemctl enable docker

 

8. kubectl 설치

8. 1. kubectl 다운로드

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

8. 2. kubectl 설치

install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

 

9. 루트가 아닌 계정(sudo 권한이 있는)에서 클러스터 사용하도록 설정

usermod -aG docker ioniere

 

10. minikube 구동

10. 1. 사용자 전환

su - ioniere

10. 2. minikube 구동

minikube start

10. 3. kubectl 연동

kubectl get po -A

10. 4. minikube dashboard 활성화

minikube addons enable dashboard

10. 5. minikube dashboard 백그라운드로 구동

nohup minikube dashboard 1> /dev/null 2>&1 &

10. 6. proxy를 이용하여 외부에서 접근되도록 설정

nohup kubectl proxy --address='0.0.0.0' --disable-filter=true 1> /dev/null 2>&1 &

10. 7. minikube 웹 접속

http://10.0.0.100:8001/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy


  • 추천 0

  • 비추천 0
이 게시물을
목록

댓글 0

번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 2474
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 2023
68 간단 텔레그램 메세지 전송 php 김영훈 2022.08.10 709
67 docker-compose mariadb 샘플 김영훈 2022.08.11 811
66 opendkim-genkey 임의 서브도메인 지정 김영훈 2022.08.12 413
65 NCP - SourceCommit 저장소 생성 file 김영훈 2022.08.18 685
64 우분투 22.04 remove.bg 설치 김영훈 2022.09.22 1188
63 CentOS7 EUC-KR 로케일 설정 김영훈 2022.10.20 743
62 CentOS8-Stream packstack 설치 [5] 김영훈 2022.11.24 1293
61 Centos Console 화면 보호기 setterm 김영훈 2022.11.26 408
60 mac에서 centos6 ssh 접속 시 오류 - no matching host key type found. Their offer: ssh-rsa,ssh-dss 김영훈 2022.11.27 629
59 Your account is pending approval from your GitLab administrator and hence blocked. Please contact your GitLab administrator if you think this is an error. 김영훈 2022.11.28 903
58 centos7 gitlab 설치 김영훈 2022.11.28 697
57 mac homebrew 설치 김영훈 2022.11.30 457
56 growpart - no tools available to resize disk with 'gpt' 김영훈 2022.12.01 454
» CentOS7 - minikube 설치 김영훈 2022.12.02 900
54 CentOS7 아나콘다 환경에 주피터 노트북 설치 김영훈 2022.12.03 988
53 python - random 라이브러리 김영훈 2022.12.19 1225
52 python - socket 라이브러리 김영훈 2022.12.19 1367
51 python - requests 라이브러리 김영훈 2022.12.19 457
50 python - re 라이브러리 김영훈 2022.12.19 683
49 Uptime Kuma용 push(패시브) 체크용 파일.py [1] 김영훈 2022.12.21 745
쓰기 태그
 첫 페이지 5 6 7 8 9 10 11 12 13 14 끝 페이지