Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/tutorials/kubernetes-101/cleanup.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ To cleanup, we can just tear down the cluster:
```bash
k3d cluster delete k8s-101
```
OR
```bash
kind delete cluster --name k8s-101
```
36 changes: 35 additions & 1 deletion docs/tutorials/kubernetes-101/prerequisites.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,47 @@ title: Prequisites

- [docker](https://docs.docker.com/get-docker) (or similar, such as [Rancher desktop](https://docs.rancherdesktop.io/getting-started/installation))
- [kubectl](https://kubernetes.io/docs/tasks/tools/)
- [k3d](https://k3d.io/v5.4.6/#installation)
- [k3d](https://k3d.io/v5.4.6/#installation) or [kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation)

## Test

### Test docker works

```bash
docker version
docker ps
```

### Test kubectl works

```bash
kubectl version
```

### Test k3d or kind works

```bash
k3d version
k3d cluster list
```
OR
```bash
kind version
kind get cluster
```

## Setup the environment with k3d or kind

```bash
k3d cluster create k8s-101
k3d kubeconfig get k8s-101 > k3d-kubeconfig.yaml
export KUBECONFIG=$PWD/k3d-kubeconfig.yaml
kubectl get namespaces
```
OR
```bash
kind create cluster --name k8s-101
kind get kubeconfig --name k8s-101 > k3d-kubeconfig.yaml
export KUBECONFIG=$PWD/k3d-kubeconfig.yaml
kubectl get namespaces
```