Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ak9024/kubernetes-101
https://github.com/ak9024/kubernetes-101
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ak9024/kubernetes-101
- Owner: ak9024
- Created: 2023-12-26T04:20:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-03T04:25:30.000Z (11 months ago)
- Last Synced: 2024-01-03T16:26:57.860Z (11 months ago)
- Language: Go
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kubernetes-101
### Prerequisite
- minikube https://minikube.sigs.k8s.io/docs/start/
- kubernetes tools https://kubernetes.io/docs/tasks/tools/
- docker https://docs.docker.com/engine/install/### Getting Started
```bash
# create namespace
kubectl create namespace kubernetes-101
kubectl apply -f deploy/golang-api
# option if want to expose service to port 3000
kubectl port-forward svc/golang-api-service 3000:80
```[![](https://mermaid.ink/img/pako:eNqNksluwyAQhl8F4Usr2amztIpIlVMulVqpao52DxjGDgoGC3AXJXn34kCU-NYL82uWj2GYA2aaAya4MbTbodePVakQYlKAcndFsJ_32QS9qMaAtVlLFW2Ao-fKrJHUlKOKSqoYGDTJ1iJkFTH780yLzixbHx-OFsyXYDAttkGgRvvyJqOdyGKMLPNQaPsqtMVkbx2YG1iIR5Ynd5pPi3fNQyEoHp5Brd1AjTpJhUK1kJIknPPUOqP3QJK6rqPOvgV3O7LoflKmpTYkyfN8NYLslzYi5rMnBo__ovjYmBKfEknXUpJUVTXGzK6YcOOVdBlDehnBRczSYRLDcVbz4VgMrd_Uhl8NQxm5Q2fRrnCKWzAtFdyvx2HIK7HbQQslJl5yavYlLtXJ59He6e2vYpg400OK-45TBxtB_fe1mNRUWu8FLpw2b2Hfzmt3-gPxyt2m?type=png)](https://mermaid.live/edit#pako:eNqNksluwyAQhl8F4Usr2amztIpIlVMulVqpao52DxjGDgoGC3AXJXn34kCU-NYL82uWj2GYA2aaAya4MbTbodePVakQYlKAcndFsJ_32QS9qMaAtVlLFW2Ao-fKrJHUlKOKSqoYGDTJ1iJkFTH780yLzixbHx-OFsyXYDAttkGgRvvyJqOdyGKMLPNQaPsqtMVkbx2YG1iIR5Ynd5pPi3fNQyEoHp5Brd1AjTpJhUK1kJIknPPUOqP3QJK6rqPOvgV3O7LoflKmpTYkyfN8NYLslzYi5rMnBo__ovjYmBKfEknXUpJUVTXGzK6YcOOVdBlDehnBRczSYRLDcVbz4VgMrd_Uhl8NQxm5Q2fRrnCKWzAtFdyvx2HIK7HbQQslJl5yavYlLtXJ59He6e2vYpg400OK-45TBxtB_fe1mNRUWu8FLpw2b2Hfzmt3-gPxyt2m)
```bash
# https://kubernetes.github.io/ingress-nginx/deploy/#minikube
minikube addons enable ingress
``````bash
# vi /etc/hosts
# 127.0.0.1 adiatma.local
curl http://adiatma.localminikube tunnel
```### Monitoring
```bash
kubectl create namespace monitoring
k apply -f deploy/monitoring/prometheus
k apply -f deploy/monitoring/node-exporter
# enable kube-state-metrics
k apply -f deploy/kube-system
```### References
- https://kubernetes.io/docs