https://rancher.com/ logo
#rke2
Title
# rke2
r

ripe-queen-73614

07/28/2022, 8:54 AM
Hello team, I have an rke2 cluster with 6 nodes, three of them master and three worker. In the masters we disable the installation of ingress-nginx but not in the workers and I don't see it installed. The thing is that I want to set up an entry for a kibana eck that I have installed and it doesn't work for me. I understand that it is because the nginx ingress is not installed, is it correct?
r

refined-area-45178

07/28/2022, 9:04 AM
Hello @ripe-queen-73614 you can enable it and set in the configs to deploy on labeled nodes only like
app: rke2ingress
here is an config example:
/var/lib/rancher/rke2/server/manifests/rke2-ingress-nginx-config.yaml
Copy code
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
        kind: HelmChartConfig
        metadata:
          name: rke2-ingress-nginx
          namespace: kube-system
        spec:
          valuesContent: |-
            controller:
              kind: DaemonSet
              daemonset:
                useHostPort: true
              nodeSelector:
                app: "rke2ingress"
              config:
                use-forwarded-headers: "true"
r

ripe-queen-73614

07/28/2022, 9:46 AM
@refined-area-45178 The question is how do I deploy it?
r

refined-area-45178

07/28/2022, 9:50 AM
enable it in the config and create the above file in the aforementioned path. After you create that file it will be re-deployed as the RKE2 watches this path
/var/lib/rancher/rke2/server/manifests/
r

ripe-queen-73614

07/28/2022, 11:50 AM
How do I enable it in the settings? @refined-area-45178
enable it in the config how?
f

fierce-summer-6167

07/28/2022, 1:36 PM
Hello @ripe-queen-73614. Before you disabled the installation of ingress-nginx on the masters, did you 'kubectl describe' the running pods to see where they landed?
15 Views