Перейти к основному контенту

Кастомные порты Ingress

kubectl patch ds/nginx-ingress-microk8s-controller -n ingress --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/ports", "value":[{"containerPort":80,"hostPort":8080,"name":"http","protocol":"TCP"},{"containerPort":443,"hostPort":8443,"name":"https","protocol":"TCP"},{"containerPort":10254,"hostPort":10254,"name":"health","protocol":"TCP"}]}]'

kubectl rollout restart ds/nginx-ingress-microk8s-controller -n ingress