Federation Between VMs and Kubernetes ACL Setting issue #10138
Labels
theme/acls
ACL and token generation
theme/connect
Anything related to Consul Connect, Service Mesh, Side Car Proxies
theme/mesh-gw
Track mesh gateway work
type/bug
Feature does not function as expected
Hi all, I am facing an issue when I am trying to build the Federation of Consul Mesh-Gateway. I have been building four consul clusters and make them accross each other by the Consul Mesh-Geteway. I built the primary consul cluster on the Kubernetes and it has been running well since it started. Then I added two consul clusters which built on the K8s to make them accoss each other by the Consul Mesh-Gateway Federation.
I have been tried to add a consul cluster which built on VM into Federation mentioned above and I followed the steps of https://www.consul.io/docs/k8s/installation/multi-cluster/vms-and-kubernetes ---- Kubernetes as the Primary. Then I faced the issue as below:
The configuration of the /etc/consul.d/consul.hcl is as below:
I got the consul-gossip-encryption-key from K8s as below
kubectl get secrets/consul-gossip-encryption-key --template='{{.data.key}}' |base64 -d
Is what I did as above is currect?
I got the consul-acl-replication-acl-token from K8s as below
The command used on the website without the parameter base64 -d. But the token got in that way is strange and show as below:
I don't think the token
MDVlZWExMWUtZjdlOC05NjM1LWRlM2UtYThjOWQxNDM5MTM1
should be the correct one, right?Then I didn't understand where I can find the
agent = "<your agent token>"
on the website https://www.consul.io/docs/k8s/installation/multi-cluster/vms-and-kubernetes as belowI set the part of ACL as below but it dose not work. I doubt if it is caused by the set of
agent = "a6c61787-e229-41f7-8541-0e5adc414b34"
. Could you please kindly tell from where I can get the exactly agent token and shall I use the primary consul cluster agent token or the Secondry VM Consul Cluster agent token?The text was updated successfully, but these errors were encountered: