yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

CentOS7 - minikube 설치

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

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 2794
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 2309
68 간단 텔레그램 메세지 전송 php 김영훈 2022.08.10 761
67 docker-compose mariadb 샘플 김영훈 2022.08.11 898
66 opendkim-genkey 임의 서브도메인 지정 김영훈 2022.08.12 471
65 NCP - SourceCommit 저장소 생성 file 김영훈 2022.08.18 830
64 우분투 22.04 remove.bg 설치 김영훈 2022.09.22 1420
63 CentOS7 EUC-KR 로케일 설정 김영훈 2022.10.20 863
62 CentOS8-Stream packstack 설치 [5] 김영훈 2022.11.24 1486
61 Centos Console 화면 보호기 setterm 김영훈 2022.11.26 435
60 mac에서 centos6 ssh 접속 시 오류 - no matching host key type found. Their offer: ssh-rsa,ssh-dss 김영훈 2022.11.27 673
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 974
58 centos7 gitlab 설치 김영훈 2022.11.28 796
57 mac homebrew 설치 김영훈 2022.11.30 512
56 growpart - no tools available to resize disk with 'gpt' 김영훈 2022.12.01 515
» CentOS7 - minikube 설치 김영훈 2022.12.02 1132
54 CentOS7 아나콘다 환경에 주피터 노트북 설치 김영훈 2022.12.03 1114
53 python - random 라이브러리 김영훈 2022.12.19 1460
52 python - socket 라이브러리 김영훈 2022.12.19 1656
51 python - requests 라이브러리 김영훈 2022.12.19 514
50 python - re 라이브러리 김영훈 2022.12.19 747
49 Uptime Kuma용 push(패시브) 체크용 파일.py [1] 김영훈 2022.12.21 969
쓰기 태그
 첫 페이지 5 6 7 8 9 10 11 12 13 14 끝 페이지