-
Notifications
You must be signed in to change notification settings - Fork 0
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
k8s gateway cluster names #10357
base: main
Are you sure you want to change the base?
k8s gateway cluster names #10357
Conversation
Co-authored-by: Nathan Fudenberg <[email protected]>
…o feat/stevenctl/cls-name
Issues linked to changelog: |
const ( | ||
// KubeSourceResourceLabel indicates the kind of resource that the synthetic | ||
// resource is based on. | ||
KubeSourceResourceLabel = "~internal.solo.io/kubernetes-source-resource" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getting errors like: "caller":"discovery/discovery.go:151","msg":"failed reconciling upstreams","version":"1.0.0-ci1","discovered_by":"kubernetesplugin","upstreams":14,"error":"reconciling resource kube-system-kube-dns-53: creating kube resource kube-system-kube-dns-53: Upstream.gloo.solo.io \"kube-system-kube-dns-53\" is invalid: [metadata.labels: Invalid value: \"~internal.solo.io/kubernetes-name\": prefix part a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*'),
when running this in a cluster
Description
(reopening the PR that was migrated to k8sgateway#10286, which was originally copied from #10255)
This will make cluster names for kube services look like
kube-svc_name_namespace_port
orkube-svc_reviews_bookinfo_8080
. If we add other resources besides a kube service, this also lets us get things likeistio-se_helloworld_backend-ns_5000
.This will only happen for Gateway v2 translation. We can disable it using the env var
GG_K8S_GW_LEGACY_CLUSTER_NAMES
.API changes
We can disable it using the env var
GG_K8S_GW_LEGACY_CLUSTER_NAMES
.Code changes
Docs changes
We should document this as a breaking change; users who rely on the old format should use the env var or update their EnvoyFilters or whatever config relies on XDS names...
Context
https://github.com/solo-io/solo-projects/issues/7105
Interesting decisions
Testing steps
TODO!
API changes
Code changes
CI changes
Docs changes
Context
Interesting decisions
Testing steps
Notes for reviewers
Checklist: