
RKE2 ServiceLB
RKE2默认没有开启ServiceLB,因此Nginx Ingress也没有创建LoadBalance Service,而是使用的Hostport + Daemonset的方式。
开启ServiceLBH2
参数--enable-servicelb在官方文档中没有提及Configuration Options | RKE2。
这里Allow enabling ServiceLB controller · Issue #3419 · rancher/rke2 (github.com)提及到,可以通过设置enable-servicelb参数到/etc/rancher/rke2/config.yaml 来启用。
开启Nginx Ingress的LoadBalance ServiceH2
Configuration options can be specified by creating a HelmChartConfig manifest to customize the rke2-==ingress==-nginx HelmChart values. For example, a HelmChartConfig at /var/lib/rancher/rke2/server/manifests/rke2-==ingress==-nginx-config.yaml with the following contents sets use-forwarded-headers to "true" in the ConfigMap storing the NGINX config:
bash
# /var/lib/rancher/rke2/server/manifests/rke2-ingress-nginx-config.yaml---apiVersion: helm.cattle.io/v1kind: HelmChartConfigmetadata:name: rke2-ingress-nginxnamespace: kube-systemspec:valuesContent: |-controller:config:service:enabled: true
参考:
评论
新的评论
上一篇
Docker in Docker
Docker in Docker是指在容器中运行Containerd,使用 docker:dind 镜像并设置为 privilege 模式运行。 TLS 从18.09+开始, 如果设置了 DOCKER_TLS_CERTDIR 环境变量, dind 默认会启用TLS,并降证…
下一篇
Consul Service Mesh 集成apisix
要让apisix和Consul Service Mesh集成工作的核心是需要将apisix的Pod接入Consul。 我们是在k8s环境下使用Consul Service Mesh,对应的apisix也是使用chart安装的。所以下面主要是针对apisix的Chart进行的配置…
