How to change the downstream Rancher Webhook port on a Host Network configuration
This document (000021383) is provided subject to the disclaimer at the end of this document.
Environment
Downstream (Rancher-managed) cluster with Host Network enabled on the webhook
Situation
Resolution
apiVersion: v1 kind: ConfigMap metadata: name: rancher-config namespace: cattle-system labels: app.kubernetes.io/part-of: "rancher" data: rancher-webhook: | port: 9444 global: hostNetwork: true
Then, apply the manifest above with the following command on the affected cluster:
kubectl apply -f rancher-config-portchange.yaml
Cause
A practical example of such a scenario would be to use EKS with a custom CNI, which requires exposing the webhook on the Host Network for it to work properly: https://ranchermanager.docs.rancher.com/v2.7/reference-guides/rancher-webhook#eks-cluster-with-calico-cni.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021383
- Creation Date: 01-Mar-2024
- Modified Date:01-Mar-2024
-
- SUSE Rancher
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com