Tekton on Multi Cluster #366
Unanswered
zhouhaibing089
asked this question in
Q&A
Replies: 1 comment
-
Multi-cluster support is one of the major thing that I'm missing in Tekton. I voted +1 for more attention. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This was originally raised at here.
A kubernetes cluster usually sits within one AZ(availability zone). If that availability zone fails(for e.g, power outage, network issues), the cluster fails as well.
The current installation of Tekton works best for a single cluster which is a little worri-some. That means, if that cluster fails, we will lose the entire tekton service.
Within our own team, we have a pattern of running kube-apiserver and etcd in HA mode:
In this graph, we run etcd across three different datacenters. In a three-replicas setup, we can tolerate one region failure.
Then all the other controllers, we can point their kubeconfig to the GTM DNS, and can be deployed anywhere and in multiple clusters with leader-election enabled.
And coming back to Tekton, we initially tried to run the same mode, but we faced some issues:
Then we came up with a different approach: We try to put Tekton APIs(CRD/Webhooks/RBAC) to the HA cluster as well as individual clusters. That means users can still use tekton in each clusters without HA guaranteed.
Now, if users want to have HA guaranteed, they can use the HA endpoint(the one described in the graph above), we will then add another controller to:
The sync logic is different per resource type:
Does this setup sound reasonable or maybe there is already a solution for this? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions