44 lines
955 B
Markdown
44 lines
955 B
Markdown
# Поднимаем кластер k8s в [любом] облаке
|
|
|
|

|
|
|
|
## Утилиты
|
|
|
|
- [terraform](https://www.terraform.io/downloads)
|
|
- [kubeone](https://github.com/kubermatic/kubeone/releases/)
|
|
|
|
## Видео к курсу
|
|
|
|
- [видео]()
|
|
|
|
## Ставим
|
|
|
|
### готовим ключ
|
|
|
|
- ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -f ~/.ssh/demo-cluster
|
|
- eval `ssh-agent`
|
|
- ssh-add ~/.ssh/demo-cluster
|
|
|
|
### готовим стенд и кластер
|
|
|
|
- export HCLOUD_TOKEN="<YOUR HCLOUD TOKEN>"
|
|
- terraform init
|
|
- terraform plan
|
|
- terraform apply
|
|
|
|
### Kubeone
|
|
|
|
- terraform output -json > output.json
|
|
- kubeone apply --manifest kubeone.yaml --tfjson output.json
|
|
|
|
## Сносим
|
|
|
|
- kubeone reset --manifest kubeone.yaml -t output.json
|
|
- terraform destroy
|
|
|
|
##### Автор
|
|
|
|
- **Vassiliy Yegorov** [vasyakrg](https://git.realmanual.ru)
|
|
- [школа](realmanual.ru)
|
|
- [youtube](youtube.com/realmanual)
|