https://github.com/eviltomorrow/k8s-vagrant-libvirt
Kubernetes install with vagrant libvirt
https://github.com/eviltomorrow/k8s-vagrant-libvirt
debian kubernetes libvirt vagrant
Last synced: 6 months ago
JSON representation
Kubernetes install with vagrant libvirt
- Host: GitHub
- URL: https://github.com/eviltomorrow/k8s-vagrant-libvirt
- Owner: eviltomorrow
- License: apache-2.0
- Created: 2023-07-10T13:04:44.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-07-15T08:20:49.000Z (12 months ago)
- Last Synced: 2025-07-15T17:12:21.700Z (12 months ago)
- Topics: debian, kubernetes, libvirt, vagrant
- Language: Shell
- Homepage:
- Size: 132 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k8s-vagrant-libvirt
Kubernetes install with vagrant libvirt
# 准备
安装 vagrant, libvirt
# 安装
git clone https://github.com/eviltomorrow/k8s-vagrant-libvirt.git
# 启用 CNI
- 使用 calico,打开 # calico 下最后两行的注释, 进入目录,执行 vagrant up,等待安装完成
```sh
# kubectl create -f /vagrant/conf/tigera-operator.yaml
# kubectl create -f /vagrant/conf/custom-resources.yaml
```
- 使用 clilium,打开 # calico 下最后两行的注释, 进入目录,执行 vagrant up,等待安装完成(耗时长)
```sh
# mkdir -p /usr/local/app/helm; tar zxvfC /vagrant/bin/helm-v3.12.2-linux-amd64.tar.gz /usr/local/app/helm; ln -s /usr/local/app/helm/linux-amd64/helm /usr/local/bin/helm
# helm repo add cilium https://helm.cilium.io
# kubectl create namespace cilium-system
# helm install cilium cilium/cilium --namespace cilium-system --set hubble.relay.enabled=true --set hubble.ui.enabled=true --set prometheus.enabled=true --set operator.prometheus.enabled=true --set hubble.enabled=true --set hubble.metrics.enabled="{dns,drop,tcp,flow,port-distribution,icmp,http}"
```
注意:安装完成后,有的 pod 会是 error 状态,重启虚拟机就 OK 了