似乎 get.k8s.io 是部署 Kubernetes 集群的推荐方法,但该脚本不支持 Digital Ocean。
有没有一种我错过的替代方法可以在 Digital Ocean 上轻松设置集群?
谢谢
最佳答案
您可以使用 kubicorn
在 Digital Ocean 中轻松创建一个相当出色的 kubernetes 集群。以下是执行此操作所需的步骤:
// Install kubicorn
go get github.com/kris-nova/kubicorn
// Configure your auth
export DIGITALOCEAN_ACCESS_TOKEN=*****************************************
// Create your kubernetes profile from the default profile
kubicorn create mycluster --profile do
// Tweak your cluster as you like
kubicorn edit mycluster
// Apply your profile
kubicorn apply mycluster -v 4
// Use kubectl to access your cluster
kubectl get no
请注意,kubicorn
既是一个库也是一个命令行工具,因此如果您愿意,您应该也可以在程序中包含此逻辑。
来源:https://www.nivenly.com/kubernetes-on-digital-ocean-with-encrypted-vpn-service-mesh/
关于digital-ocean - 将 Kubernetes 集群部署到 Digital Ocean?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29328750/