open-consul/website/content/docs/k8s/deployment-configurations
Vipin John Wilson e766b74a8b
First cluster grpc service should be NodePort for the second cluster to connect (#16430)
* First cluster grpc service should be NodePort

This is based on the issue opened here https://github.com/hashicorp/consul-k8s/issues/1903

If you follow the documentation https://developer.hashicorp.com/consul/docs/k8s/deployment-configurations/single-dc-multi-k8s exactly as it is, the first cluster will only create the consul UI service on NodePort but not the rest of the services (including for grpc). By default, from the helm chart, they are created as headless services by setting clusterIP None. This will cause an issue for the second cluster to discover consul server on the first cluster over gRPC as it cannot simply cannot through gRPC default port 8502 and it ends up in an error as shown in the issue https://github.com/hashicorp/consul-k8s/issues/1903

As a solution, the grpc service should be exposed using NodePort (or LoadBalancer). I added those changes required in both cluster1-values.yaml and cluster2-values.yaml, and also a description for those changes for the normal users to understand. Kindly review and I hope this PR will be accepted.

* Update website/content/docs/k8s/deployment-configurations/single-dc-multi-k8s.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>

* Update website/content/docs/k8s/deployment-configurations/single-dc-multi-k8s.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>

* Update website/content/docs/k8s/deployment-configurations/single-dc-multi-k8s.mdx

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>

---------

Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
2023-03-16 16:43:19 +00:00
..
multi-cluster docs: Migrate link formats (#15976) 2023-01-25 08:52:43 -08:00
vault Consul WAN Fed with Vault Secrets Backend document updates (#16597) 2023-03-10 12:45:32 -08:00
clients-outside-kubernetes.mdx docs: Migrate link formats (#15976) 2023-01-25 08:52:43 -08:00
consul-enterprise.mdx docs: Migrate link formats (#15976) 2023-01-25 08:52:43 -08:00
servers-outside-kubernetes.mdx Documentation update: Adding K8S clusters to external Consul servers (#16285) 2023-02-22 12:27:02 -08:00
single-dc-multi-k8s.mdx First cluster grpc service should be NodePort for the second cluster to connect (#16430) 2023-03-16 16:43:19 +00:00