https://github.com/sshaplygin/start-k8s
Notes by articls https://habr.com/ru/companies/avito/articles/820953/
https://github.com/sshaplygin/start-k8s
Last synced: 10 months ago
JSON representation
Notes by articls https://habr.com/ru/companies/avito/articles/820953/
- Host: GitHub
- URL: https://github.com/sshaplygin/start-k8s
- Owner: sshaplygin
- Created: 2024-09-02T07:15:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T19:22:01.000Z (about 1 year ago)
- Last Synced: 2025-01-22T12:11:32.482Z (12 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# start k8s with mikikube
by
install minikube
## Minibube config
```bash
eval $(minikube -p minikube docker-env)
```
check mikibube images by: docker images
## Build images
```bash
docker build -t kubeapp1:v1 kubeapp1/.
docker build -t kubeapp2:v1 kubeapp2/.
```
## Add NodePort
```bash
k expose --type=NodePort -n app2 deployment/kubeapp2
```
```bash
minikube service kubeapp1 -n app1 --url | curl /hello
```