The first chapter describes the kind of installation

note:


This series of articles a total of 2 articles:


Chapter one: kind introduction and installation

Chapter Two: Use kind one minute to build k8s cluster

table of Contents

1 kind introduction

2 docker installation

    2.1 Settings docker yum download source

    2.2 install the specified version docker

    2.3 Settings docker

    2.4 verify docker

3 kubectl installation

    3.1 Setting kubectl yum download source

    Install the specified version 3.2 kubectl 

    View kubectl version 3.3

4 kind installation

    Download kind 4.1 binary packages

    4.2 add execute permissions

    4.3 move files to the execution path

    4.4 Verify kind


1 kind introduction

        kind (Kubernetes in Docker) is a tool. Can quickly create locally, delete k8s cluster. kind of all k8s cluster management tools I used the most simple one. It's learning lowest cost, most user-friendly operation.

        Before installing the kind, you first need to install the docker and kubectl. docker container environment k8s is running, kubelet operating k8s cluster client tools.


2 docker installation

2.1 Settings docker yum download source

# wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo

2.2 install the specified version docker

# yum install -y docker-ce-18.06.1.ce-3.el7

2.3 Settings docker

# systemctl start docker && systemctl enable docker

2.4 verify docker

# docker version


3 kubectl installation

3.1 Setting kubectl yum download source

# cat > /etc/yum.repos.d/k8s.repo << EOF

[ Kubernetes ]

name = kubernetes

baseurl = https: //mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64

enabled=1

gpgcheck=0

repo_gpgcheck=0

gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg

EOF

Install the specified version 3.2 kubectl 

#  yum install -y kubectl-1.16.3

View kubectl version 3.3

# kubectl version


4 kind installation

Download kind 4.1 binary packages

# curl -Lo ./kind https://github.com/kubernetes-sigs/kind/releases/download/v0.5.1/kind-linux-amd64

4.2 add execute permissions

# chmod +x ./kind

4.3 move files to the execution path

# mv ./kind /usr/local/bin/kind

4.4 Verify kind

# kind version

Guess you like

Origin blog.51cto.com/14625168/2453827