Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordfence-login-security domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /srv/www/wordpress/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the health-check domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /srv/www/wordpress/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ko-fi-button domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /srv/www/wordpress/wp-includes/functions.php on line 6121
Change Ingress Nginx Controller to Another Port - ASTRO

Change Ingress Nginx Controller to Another Port




Modify Nginx Ingress Config

First, check out you nginx-ingress-controller’s name with:

Bash
kubectl get all --all-namespaces

You should see somthing like this.

Bash
NAMESPACE     NAME                                               DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR            AGE
ingress       daemonset.apps/nginx-ingress-microk8s-controller   1         1         1       1            1           <none>                   42h

Now, use kubectl -n <nginx-ingress-namespace> edit ds <nginx-ingress-name> -o yaml to modify the listening port. For example, according to above outputs, the command should be kubectl -n ingress edit ds nginx-ingress-microk8s-controller -o yaml:

Bash
name: nginx-ingress-microk8s
ports:
- containerPort: 80
  hostPort: 8080
  name: http
  protocol: TCP
- containerPort: 443
  hostPort: 8443
  name: https
  protocol: TCP


Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version