After RKE2 upgrade you will lost your
rke2-ingress-nginx-controller config values.
Define this HelmChartConfig and your setup will be used every time, when you upgrade RKE2. More info about config in official documentation.
apiVersion: helm.cattle.io/v1 kind: HelmChartConfig metadata: name: rke2-ingress-nginx namespace: kube-system spec: valuesContent: |- controller: config: server-tokens: "false" use-proxy-protocol: "true"
If you would like to setup your Ingress with HostPort, read here.