공부하기싫어
article thumbnail

목차

     

    본인 환경은 window 11 pro 에 docker desktop 이 설치되어있음

    설치

    https://github.com/kubernetes-sigs/kind/releases

     

    Releases · kubernetes-sigs/kind

    Kubernetes IN Docker - local clusters for testing Kubernetes - kubernetes-sigs/kind

    github.com

    위 사이트에서 알 맞는 파일을 다운로드 한다

    다운로드한 폴더의 이름을 kind.exe 로 바꾸고 터미널에서 해당 디렉토리로 이동한 후

     
    kind create cluster --name kind

    실행

     

    해당 경로를 환경변수에 추가할 수도 있다고 한다.

    참고 블로그에서는 kind 는 기본적으로 kubectl 의 설치를 지원하지 않는다고 해서 코드를 메모헤 놓는다

    근데 난 그냥 됬음

     

    curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
    
    만약 1.21.1 버전의 k8s를 사용중이면 아래와 같이 다운로드 받는다.
    
    curl -LO https://dl.k8s.io/release/v1.21.1/bin/linux/amd64/kubectl

     

    nginx ingress controller를 설치

    # kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml

     

     

    실행

    C:\sungyeonwoo\SRE-Incubation\kind>kind create cluster --name kind
    Creating cluster "kind" ...
     • Ensuring node image (kindest/node:v1.26.3) 🖼  ...
     ✓ Ensuring node image (kindest/node:v1.26.3) 🖼
     • Preparing nodes 📦   ...
     ✓ Preparing nodes 📦
     • Writing configuration 📜  ...
     ✓ Writing configuration 📜
     • Starting control-plane 🕹️  ...
     ✓ Starting control-plane 🕹️
     • Installing CNI 🔌  ...
     ✓ Installing CNI 🔌
     • Installing StorageClass 💾  ...
     ✓ Installing StorageClass 💾
    Set kubectl context to "kind-kind"
    You can now use your cluster with:
    
    kubectl cluster-info --context kind-kind
    
    Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community 🙂

     

    확인

    C:\sungyeonwoo\SRE-Incubation\kind>kind get clusters
    kind
    
    C:\sungyeonwoo\SRE-Incubation\kind>

     

    삭제

    kind delete cluster --name kind

    참고

    https://kmaster.tistory.com/26#:~:text=Kind%20%EB%8A%94%20Docker%20Container%EB%A5%BC,CI%EC%97%90%20%EC%82%AC%EC%9A%A9%EB%90%A0%20%EC%88%98%20%EC%9E%88%EB%8B%A4.

     

    로컬 Kubernetes 클러스터 - kind 설치

    Kind Kind 는 Docker Container를 노드로 사용하여 로컬 Kubernetes 클러스터를 실행하기 위한 도구이다. 주로 Kubernetes 자체를 테스트하기 위해 설계되었지만 로컬 개발 또는 CI에 사용될 수 있다. kind의 기

    kmaster.tistory.com

    https://phoenixnap.com/kb/kubernetes-on-windows#ftoc-heading-6

     

    How to Run Kubernetes on Windows | phoenixNAP KB

    This tutorial shows how to utilize the WSL 2 or Hyper-V hypervisors on Windows to run Linux containers with Kubernetes.

    phoenixnap.com

    https://kind.sigs.k8s.io/docs/user/quick-start/#installation

     

    kind – Quick Start

    Quick Start This guide covers getting started with the kind command. If you are having problems please see the known issues guide. NOTE: kind does not require kubectl, but you will not be able to perform some of the examples in our docs without it. To inst

    kind.sigs.k8s.io

     

    'Kubernetes > vanilla k8s' 카테고리의 다른 글

    kubeadm  (0) 2023.06.02
    [kind] kind 설치 - Multi Node (Window)  (0) 2023.05.21