Open manju-rn opened 1 week ago
Hey!
3 ways to go around this:
KUMA_DNS_SERVICE_SERVICE_VIP_PORT
to another non privilege port (like 8080) and then you'll be able to use 8080 instead of 80 everywhere3. The new way (still beta) meshservice and hostname generator
Thanks, I was trying the 3rd way, i gave the following
apiVersion: kuma.io/v1alpha1
kind: MeshService
metadata:
name: pg-jp-svc
namespace: db-ns
labels:
kuma.io/mesh: mesh2
spec:
selector:
dataplaneTags:
app: jp-pg
k8s.kuma.io/namespace: db-ns
ports:
- port: 5432
targetPort: 5432
appProtocol: tcp
apiVersion: kuma.io/v1alpha1
kind: HostnameGenerator
metadata:
name: all
namespace: kuma-system
labels:
kuma.io/mesh: mesh2
kuma.io/origin: zone
spec:
selector:
meshService:
matchLabels:
k8s.kuma.io/namespace: db-ns
template: "{{ .DisplayName }}.{{ .Namespace }}.mesh"
In Kuma GUI, I have the following
But when I try using the adminer (or pgadmin). It is not able connect
jp-pg-svc_db-ns_svc_5432.mesh:80
. Both this as well as the above MeshService should be pointing to same dataplane proxies, is it not?
KUMA_DNS_SERVICE_SERVICE_VIP_PORT
where do i set it?Triage: Can you post the MeshService YAML that you have on Kubernetes? Kuma control plane updates the status of this service and I wonder if it picked this up. Can you also paste YAML of a Dataplane object of
jp-pg
?For the workround you stated, KUMA_DNS_SERVICE_SERVICE_VIP_PORT where do i set it?
On the zone CP, take a look how to set it https://kuma.io/docs/2.8.x/documentation/configuration/
What happened?
I have a multizone setup and is working properly
jp-pg-svc_db-ns_svc_5432.mesh:80
in the Kuma UIjp-pg-svc_db-ns_svc_5432.mesh:80
it connects finejp-pg-svc_db-ns_svc_5432.mesh:80
fails - see snapshot.Q1: So is there a way for Mesh service to have other port and not 80 by default? Q2: Is there an alternative where I could create a dummy service (similar to how istio allows it) in Zone1 and have it redirect to
jp-pg-svc_db-ns_svc_5432.mesh:80
which is in Zone1. So that in adminer UI, i could give this service name instead of...mesh:80
?Snapshot from adminer![image](https://github.com/kumahq/kuma/assets/26291847/298f74a5-c426-453b-aef9-fa3a29801701)
Kuma UI![image](https://github.com/kumahq/kuma/assets/26291847/c434f65f-bd0a-4c1e-8fc3-b621d2a53ca8)