Windows environment Kubernetes installation

Table of contents

foreword

Install Docker

Install Kubernetes

Windows install kubectl

introduce

Install

Start Kubernetes


foreword

As the most popular containerization platform, Docker provides a powerful containerization technology foundation for Kubernetes. The combination of Kubernetes and Docker enables containerized applications to be managed and expanded easily, efficiently, and elastically in large-scale clusters, thereby realizing modern, cloud-native application development and deployment.

You can download Kubernetes and deploy a Kubernetes cluster on your local machine, in the cloud, or in your own data center.

Install Docker

Install Docker for Windows (Kubernetes requires Docker as a container runtime)

Install Kubernetes

Method 1: Official Kubernetes mirror address: Download Kubernetes | Kubernetes

Pull the official Kubernetes image

docker pull registry.k8s.io/kube-apiserver:v1.27.4

Method 2: Kubernetes Github download address: https://github.com/AliyunContainerService/k8s-for-docker-desktop

Windows install kubectl

introduce

kubectl is a Kubernetes command-line tool for interacting with and managing Kubernetes clusters. It is the official command-line client for Kubernetes and can be used to perform various operations such as creating, managing, and monitoring Kubernetes resources.

Install

Kubernetes official download address (detailed tutorial): Install kubectl on Windows | Kubernetes

1. Download the kubectl checksum file:

curl.exe -LO "https://dl.k8s.io/v1.27.4/bin/windows/amd64/kubectl-convert.exe.sha256"

2. Test to make sure that the version of kubectl is consistent with the expected version:

kubectl version --client

Start Kubernetes

Turn on Kubernetes, and wait for Kubernetes to start running, confirm that Kubernetes is turned on below;

 

Guess you like

Origin blog.csdn.net/m0_67906358/article/details/132039521
Recommended