https://github.com/jmb12686/hello-kubernetes
simple get started projects for k8s
https://github.com/jmb12686/hello-kubernetes
Last synced: 6 months ago
JSON representation
simple get started projects for k8s
- Host: GitHub
- URL: https://github.com/jmb12686/hello-kubernetes
- Owner: jmb12686
- Created: 2020-03-06T20:56:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-06T20:56:51.000Z (over 5 years ago)
- Last Synced: 2025-02-13T08:29:16.846Z (8 months ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello Kubernetes
Simple get started projects for k8s
## Prerequisites
For this project, we will be using Kubernetes on Docker Desktop, as such the cluster and kube config will be named `docker-desktop`
## Deploy Kubernetes Dashboard
Run the following commands:
```ps
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yamlkubectl proxy
$TOKEN=((kubectl -n kube-system describe secret default | Select-String "token:") -split " +")[1]
kubectl config set-credentials docker-desktop --token="${TOKEN}"
```Then browse to: http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview?namespace=default
Select the config auth option, and select the kubernetes conf file under `C:\Users\USERPROFILE\.kube\config`
## Deploy hello-kubernetes
```ps
kubectl apply -f .\hello-kubernetes.yml
```Browse to http://localhost
## Deploy go-loadtest-api
```ps
kubectl apply -f .\go-loadtest-api.yml
```Browse to http://localhost:8000/hello and http://localhost:8000/loadtest/iterations/100000