我正在尝试利用 Rancher Terraform 提供程序创建一个新的 RKE 集群,然后使用 Kubernetes 和 Helm Terraform 提供程序来创建/部署资源到创建的集群。我正在使用此https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/cluster_v2#kube_config属性来创建具有新集群的 kube 配置的本地文件。Helm 和 Kubernetes 提供程序需要提供程序配置中的 kube 配置:https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs。有什么方法可以让提供程序配置等待创建本地文件?
kubernetes terraform rancher rke terraform-provider-kubernetes
我已经用 rke ( rke up
)初始化了一个 kubernetes 集群。
但是,当节点重新启动时,我必须rke up
再次执行才能启动 kubelet 和 co。
有没有办法在节点上自动启动这些服务?
谢谢你的帮助。
我使用 rke v0.1.9。
操作系统是 Coreos Container Linux 1855.4.0。
我的 cluster.yml 是:
nodes:
- address: 198.19.210.32
user: core
role:
- controlplane
- etcd
- address: 198.19.210.33
user: core
role:
- worker
- address: 198.19.210.34
user: core
role:
- worker
labels:
app: ingress
# If set to true, RKE will not fail when unsupported Docker version are found
ignore_docker_version: true
# Enable use of SSH …
Run Code Online (Sandbox Code Playgroud) 我正在尝试将RKE 提供程序安装为Rancher AWS 快速入门的一部分。该Terraform文件说,插件应该安装~/.terraform.d/plugins
。RKE 文档说插件应该安装在~/terraform.d/plugins/<your_platform>
.
为了协调冲突的信息,我尝试将二进制文件复制到以下所有位置,但 Terraform 从未见过其中任何一个:
~/.terraform.d/plugins/terraform-provider-rke
~/.terraform.d/plugins/rke
~/.terraform.d/plugins/darwin_amd64/terraform-provider-rke
~/.terraform.d/plugins/darwin_amd64/rke
~/terraform.d/plugins/terraform-provider-rke
~/terraform.d/plugins/rke
~/terraform.d/plugins/darwin_amd64/terraform-provider-rke
~/terraform.d/plugins/darwin_amd64/rke
Run Code Online (Sandbox Code Playgroud)
在每种情况下,当我运行时terraform init
,都会出现以下错误:
Provider "rke" not available for installation.
A provider named "rke" could not be found in the Terraform Registry.
This may result from mistyping the provider name, or the given provider may
be a third-party provider that cannot be installed automatically.
In the latter case, the plugin must be installed manually …
Run Code Online (Sandbox Code Playgroud) 如何在 Rancher 2.0 中为我的集群启用功能门?我需要启用--feature-gates MountPropagation=true
. 这将使我能够使用 StorageOS、CephFS 等存储解决方案
这里有两个用例:
我有一个正在运行的 Rancher 设置,如下所示:
我的目标是使用 Rancher Load Balancing 或任何类似的东西来为 Web 应用程序提供服务。为此,我执行了以下步骤:
.xip.io
主机名”并将路由“/”添加到端口 80 上的“web-app”。这适用于本地网络,因为我得到了一个像http://hello.gabriel-milan.10.1.1.14.xip.io/这样的地址,它将解析为 10.1.1.14,这是本地的。
我想为我的一个公共 IP 公开此服务。我怎样才能做到这一点?
我正在尝试使用 Ansible 安装 RKE2。
但安装 RKE2 的命令不是 apt 命令
安装 rke2 的命令是
curl -sfL https://get.rke2.io | INSTALL_RKE2_VERSION=v1.21.6+rke2r1 sh -
Run Code Online (Sandbox Code Playgroud)
我不知道如何将此命令转换为剧本代码
我确实检查了有关curl - ansible的其他帖子,但这对我的情况没有帮助