ingress2gateway
ingress2gateway copied to clipboard
Error for named ports
What happened:
I executed ./ingress2gateway print --providers ingress-nginx and got an error:
# Encountered 3 errors # paths.backends[0].service.port: Invalid value: "name": named ports not supported: http # paths.backends[0].service.port: Invalid value: "name": named ports not supported: http # paths.backends[0].service.port: Invalid value: "name": named ports not supported: http
What you expected to happen:
I expected a successful conversion from Ingress to Gateway.
How to reproduce it (as minimally and precisely as possible):
Deploy an nginx and an application with a named port in your k8s cluster.
Thanks @gebinic
Can you please paste your input (meaning ingresses in the cluster you are trying to convert)?
The tool does not support named ports now, but wanted to see your input to provide a more tailored response Thanks,
Ingress:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
meta.helm.sh/release-name: my-app
meta.helm.sh/release-namespace: my-namespace
labels:
app: spring
app.kubernetes.io/managed-by: Helm
chart: spring-2.1.2
group: app-ingress
heritage: Helm
release: my-app
name: my-app
namespace: my-namespace
spec:
rules:
- host: myHost.com
http:
paths:
- backend:
service:
name: my-app
port:
name: http
path: /my-app
pathType: Prefix
tls:
- hosts:
- myHost.com
secretName: my-tls-secrets
Service:
apiVersion: v1
kind: Service
metadata:
annotations:
meta.helm.sh/release-name: my-app
meta.helm.sh/release-namespace: my-namespace
labels:
app: spring
app.kubernetes.io/managed-by: Helm
chart: spring-2.1.2
heritage: Helm
release: my-app
name: my-app
namespace: my-namespace
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: 8080
- name: grpc
port: 8090
protocol: TCP
targetPort: 8090
- name: management
port: 8558
protocol: TCP
targetPort: 8558
selector:
app: my-app
type: ClusterIP
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/assign
I see that this is fixed but when will there be a new relaease because the last (0.4.0) is form January.
hi @LiorLieberman, could we release a new version please?
Hi @gavinkflam will come up with a RC tomorrow. Sorry for the delay!
@gavinkflam https://github.com/kubernetes-sigs/ingress2gateway/releases/tag/v0.5.0-rc1