Windows Kubernetes 101

admin / Windows / ... / Reads: 247 Edit

Step 0: Install kubectl

PS C:\Windows\system32> curl.exe -LO "https://dl.k8s.io/release/v1.27.2/bin/windows/amd64/kubectl.exe"

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 138 100 138 0 0 138 0 0:00:01 --:--:-- 0:00:01 353 100 47.6M 100 47.6M 0 0 23.8M 0 0:00:02 0:00:02 --:--:-- 23.0M PS C:\Windows\system32> curl.exe -LO "https://dl.k8s.io/v1.27.2/bin/windows/amd64/kubectl.exe.sha256" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 138 100 138 0 0 138 0 0:00:01 --:--:-- 0:00:01 1769 100 64 100 64 0 0 64 0 0:00:01 --:--:-- 0:00:01 0

PS C:\Windows\system32> CertUtil -hashfile kubectl.exe SHA256

SHA256 hash of kubectl.exe: 0b4a140fd609021d4e69527b8cd6f6d449035b7cd3b929a9c7f6f0a0bb09f741 CertUtil: -hashfile command completed successfully.

PS C:\Windows\system32> type kubectl.exe.sha256

0b4a140fd609021d4e69527b8cd6f6d449035b7cd3b929a9c7f6f0a0bb09f741

PS C:\Windows\system32> $(Get-FileHash -Algorithm SHA256 .\kubectl.exe).Hash -eq $(Get-Content .\kubectl.exe.sha256)

True

PS C:\Windows\system32> kubectl version --client

WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version. Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.2", GitCommit:"7f6f68fdabc4df88cfea2dcf9a19b2b830f1e647", GitTreeState:"clean", BuildDate:"2023-05-17T14:20:07Z", GoVersion:"go1.20.4", Compiler:"gc", Platform:"windows/amd64"} Kustomize Version: v5.0.1

Step 1: Install CLI

choco install kubernetes-cli

Comments

Make a comment

Author: admin

Publish at: ...