-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How is the envoy gateway kubernetes service name defined? #2141
Comments
hi @bholland-bh, currently it is generated by this function gateway/internal/infrastructure/kubernetes/proxy/resource.go Lines 54 to 57 in 71c09f2
It will be the same value, its format consists of a prefix(envoy), gateway namespace, gateway name, and 8 characters of the hashed name. |
you'd better query by labels. |
Thank you so much for the direct link.
Due to requirements beyond my control, I've got to tuck Envoy Gateway behind EKS ALB ingress. Which uses service names as the destination. I'm interacting with the resources via labels, but the ALB uses service names apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/backend-protocol: HTTP
alb.ingress.kubernetes.io/certificate-arn: <arn>
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/ssl-redirect: '443'
alb.ingress.kubernetes.io/success-codes: 200-499
alb.ingress.kubernetes.io/tags: environment=dev,Name=eg-public,application=eg,client=shared
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/waf-acl-id: <WAF>
kubernetes.io/ingress.class: alb
name: eg-ingress
namespace: envoy-gateway-system
labels:
environment: dev
team: blue
spec:
defaultBackend:
resource:
kind: Service
name: envoy-envoy-gateway-system-eg-656e766f |
I think this is a valid use case |
I also want to put Envoy Gateway behind EKS ALB ingress. And I encounter the same problem. Is there any update here? |
ptal @envoyproxy/gateway-maintainers |
+1 even for multiple envoys per gateway deployments |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. |
+1 |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. |
can be solved using the newly added
|
* Users prefer setting their own custom names for generated k8s resources for the Envoy Proxy fleet instead of the autogenerated resources * https://envoyproxy.slack.com/archives/C03E6NHLESV/p1717068088779319 * knative-extensions/net-gateway-api#738 * envoyproxy#2141 Signed-off-by: Arko Dasgupta <arko@tetrate.io>
* Users prefer setting their own custom names for generated k8s resources for the Envoy Proxy fleet instead of the autogenerated resources * https://envoyproxy.slack.com/archives/C03E6NHLESV/p1717068088779319 * knative-extensions/net-gateway-api#738 * #2141 Signed-off-by: Arko Dasgupta <arko@tetrate.io>
When i specify a name, my gateway doesn't standup. |
@davem-git can you elaborate on the issue you're facing ? |
Sure thing. I applied apiVersion: http://gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: custom-proxy-config
namespace: envoy-gateway-system
spec:
logging:
level:
default: warn
provider:
kubernetes:
envoyService:
patch:
value:
metadata:
name: custom-name
type: Loadbalancer
type: Kubernetes The service standup fine with the propername. When I go to deploy the gateway, it doesn't work ❯ kubectl get gateway
NAME CLASS ADDRESS PROGRAMMED AGE
envoy envoy False 3m52s I revert the changes and it creates the standard loadblancer with the long name ❯ kubectl get gateway
NAME CLASS ADDRESS PROGRAMMED AGE
envoy envoy 13.64.208.227 True 34m |
ah yes, fixing this in #3537 (comment) |
I would like to be able to set a name for the generated envoy service, or at least make sure the name doesn't ever change.
Here the name of my eg service, is
envoy-envoy-gateway-system-eg-656e766f
What components make up this service name? Will it always be the same value?The text was updated successfully, but these errors were encountered: