Skip to content

Commit 4886018

Browse files
committed
Windows instructions to run Kubernetes Goat
1 parent b45a05a commit 4886018

File tree

2 files changed

+66
-2
lines changed

2 files changed

+66
-2
lines changed

guide/docs/how-to-run/kind-windows.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
sidebar_position: 2
3+
title: ☸️ KIND - Windows
4+
slug: kubernetes-goat-on-kind-windows
5+
---
6+
7+
# ☸️ KiND: Windows - Kubernetes IN Docker: Windows
8+
9+
[kind](https://sigs.k8s.io/kind) is a tool for running local Kubernetes clusters using Docker container "nodes". kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI.
10+
11+
### Prerequisites
12+
13+
* Install Docker Desktop on Windows, [refer to the docs for installation](https://docs.docker.com/desktop/setup/install/windows-install/)
14+
> ⚠️ Because of license requirements, ensure you can install Docker Desktop on Windows.
15+
16+
* You have `kind` installed and setup locally in your system, [refer to the docs for installation](https://kind.sigs.k8s.io/)
17+
* Ensure you have cluster-admin access to the Kubernetes cluster.
18+
* Also you have installed the `kubectl` and in the path, [refer to the docs for installation](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
19+
* Verify by running `kubectl version`
20+
* Ensure you have the `helm` package manager installed and the path, [refer to the docs for installation](https://helm.sh/docs/intro/install)
21+
* Verify by running `helm version`
22+
23+
### Setup
24+
25+
* First, clone the Kubernetes Goat repository locally by running the following command
26+
27+
```bash
28+
git clone https://github.com/madhuakula/kubernetes-goat.git
29+
```
30+
31+
* Navigate to the folder for setup and installation of the Kubernetes Goat using KiND
32+
33+
```bash
34+
cd kubernetes-goat/platforms/kind-setup
35+
```
36+
37+
* Run the following command to set up the KIND cluster
38+
39+
```bash
40+
setup-kind-cluster-and-goat.ps1
41+
```
42+
43+
* Now we have the Kubernetes Goat setup up and running, refer to [Getting Started for next steps](../getting-started.md)

platforms/kind-setup/README.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# Setting up Kubernets Goat using KIND
1+
# Setting up Kubernetes Goat using KIND
22

33
If you want to set up the Kubernetes Goat using KIND (Kubernetes IN Docker), then follow the below steps
44

55
> Make sure you have followed the pre-requisites as mentioned in the Kubernetes Goat. Also, you must have KIND installed and setup locally in your system.
66
7-
- To setup the KIND cluster run the following command
7+
## Bash
8+
- To setup the KIND cluster run the following commands:
89

910
```bash
1011
bash setup-kind-cluster-and-goat.sh
@@ -21,3 +22,23 @@ bash access-kubernetes-goat.sh
2122
```bash
2223
bash teardown-cluster.sh
2324
```
25+
26+
## Windows
27+
28+
- To setup the KIND cluster run the following commands:
29+
30+
```powershell
31+
.\setup-kind-cluster-and-goat.ps1
32+
```
33+
34+
- Then to access the Kubernetes Goat locally, run the following command
35+
36+
```powershell
37+
.\access-kubernetes-goat.ps1
38+
```
39+
40+
- To destroy the KIND cluster run the following command
41+
42+
```powershell
43+
.\teardown-cluster.ps1
44+
```

0 commit comments

Comments
 (0)