01-09 04:37
Recent Posts
Recent Comments
Tags
- API MarketPlace ๊ธ๋ก๋ฒ ์ํฌํฐ์ฆ
- Java
- ict๊ณต๋ชจ์
- ์๋์ด๋ ธ
- RaspberryPi
- ํ์ด์ฌ
- Naver Cloud
- DB
- ์คํฝ๋ ํ
- API๋ง์ผํ๋ ์ด์ค
- ICT๋ฉํ ๋ง
- ICT
- appetizer
- DATABASE
- TSQL
- ์จ์ผ๋ํ
- ํ๋ก๋ณด๋ ธ
- ์กํ๊ณ
- ์ด๋ธ์
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
- ์คํฝ์ค๋น
- ํ์ด์
- ํ์ด์๊ณต๋ชจ์
- linux
- Spring
- mysql
- python
- JOBํ๊ณ
- ์๋ฐ
- SQL
- Today
- Total
miinsun
KUBERNETES _ ํด๋ฌ์คํฐ ์์ฑ ๋ณธ๋ฌธ
๐ป ์ค์ต ํ๊ฒฝ
OS : Linux (Ubuntu 8)
Architecture : x89-64
๐ Minikube ์ค์น
minikube ์ค์น
$ curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
$ sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube ์คํ
$ minikube start
๐ Ubuntu 20.04 ์ minikube v1.24.0
๐ Unable to pick a default driver. Here is what was considered, in preference order:
โช docker: Not installed: exec: "docker": executable file not found in $PATH
โช kvm2: Not installed: exec: "virsh": executable file not found in $PATH
โช podman: Not installed: exec: "podman": executable file not found in $PATH
โช vmware: Not installed: exec: "docker-machine-driver-vmware": executable file not found in $PATH
โช virtualbox: Not installed: unable to find VBoxManage in $PATH
โ Exiting due to DRV_NOT_DETECTED: No possible driver was detected. Try specifying --driver, or see https://minikube.sigs.k8s.io/docs/start/
โ ์๋ฌ ๋ฐ์
docker๊ฐ ์ค์น๋์ง ์์ ์๊ธด ์ค๋ฅ
โญ ์๋ฌ ํด๊ฒฐ
docker๋ฅผ ์ค์นํด์ฃผ์
$ sudo apt install docker.io
$ sudo usermod -aG docker $USER && newgrp docker
๋ค์ minikube๋ฅผ ์คํ
$ minikube start
> ์ด์ minikube๊ฐ ๊ฐ์๋จธ์ ์์๊ฐ์ ๋จธ์ ์์ ๋์๊ฐ๊ธฐ ์์
> kubernetes ํด๋ฌ์คํฐ๊ฐ ํด๋น ๊ฐ์ ๋จธ์ ์์ ์คํ๋จ
๐ Kubectl ์ค์น
์ฟ ๋ฒ ๋คํฐ์ค CLI๋ฅผ ์ค์น
$ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
$ sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
์ค์น ํ์ธ
$ kubectl version --client
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.4", GitCommit:"b695d79d4f967c403a96986f1750a35eb75e75f1", GitTreeState:"clean", BuildDate:"2021-11-17T15:48:33Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"linux/amd64"}
kubectl๊ฐ ํด๋ฌ์คํฐ์ ์ฌ๋ฐ๋ฅด๊ฒ ์ ๊ทผ๋๋์ง ํ์ธ
$ kubectl cluster-info
Kubernetes control plane is running at https://192.168.49.2:8443
CoreDNS is running at https://192.168.49.2:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
ํธ์คํ ํ ์ ์๋ ๋ชจ๋ ๋ ธ๋๋ฅผ ํ์
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube Ready control-plane,master 6m57s v1.22.3
> ๋
ธ๋๊ฐ ํ๋๋ฟ์ด๋ฉฐ ์ํ๊ฐ ์ค๋น๋ผ ์๋ ๊ฒ์ ์ ์ ์๋ค
> App์ ๋ฐฐํฌํ ์ค๋น๊ฐ ๋จ
'Infra > Kubernetes' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ค์ต] minikube๋ก ์ฑ ์ธ๋ถ๋ก ๋ ธ์ถํ๊ธฐ (0) | 2023.06.09 |
---|---|
[์ธํ ] minikube๋ก ์ฟ ๋ฒ๋คํฐ์ค ํด๋ฌ์คํฐ ๊ตฌ์ถํ๊ธฐ (0) | 2023.06.09 |
[์ค์ต] ์ฟ ๋ฒ๋คํฐ์ค Controller ํ์ฉ (0) | 2023.06.09 |
[์ด๋ก ] ์ฟ ๋ฒ๋คํฐ์ค Controller (0) | 2023.06.09 |
[์ค์ต] ์ฟ ๋ฒ๋คํฐ์ค Pod ํ์ฉ (0) | 2023.06.08 |
Comments