Skip to content

Commit

Permalink
EV-5318 create federation secrets in calico-system namespace instead …
Browse files Browse the repository at this point in the history
…of kube-system
  • Loading branch information
vara2504 committed Nov 25, 2024
1 parent 337f0be commit 031c4c5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions calico-enterprise/multicluster/federation/kubeconfig.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,20 @@ Create a kubeconfig file, for each cluster, that will be used by other clusters
type: kubernetes.io/service-account-token
metadata:
name: tigera-federation-remote-cluster
namespace: kube-system
namespace: calico-system
annotations:
kubernetes.io/service-account.name: "tigera-federation-remote-cluster"
EOF
```
- Retrieve the ServiceAccount token value and replace `<YOUR-SERVICE-ACCOUNT-TOKEN>` with it's value:
```bash
kubectl describe secret tigera-federation-remote-cluster -n kube-system
kubectl describe secret tigera-federation-remote-cluster -n calico-system
```

#### If using Kubernetes < 1.24
- Retrieve the ServiceAccount token value and replace `<YOUR-SERVICE-ACCOUNT-TOKEN>` with it's value:
```bash
kubectl describe secret -n kube-system $(kubectl get serviceaccounts tigera-federation-remote-cluster -n kube-system -o jsonpath='{.secrets[0].name}')
kubectl describe secret -n calico-system $(kubectl get serviceaccounts tigera-federation-remote-cluster -n calico-system -o jsonpath='{.secrets[0].name}')
```

1. Retrieve and save the certificate authority and server data:
Expand Down Expand Up @@ -430,10 +430,10 @@ calicoq eval "all()"
If all remote clusters are accessible, calicoq returns something like the following. Note the remote cluster prefixes: there should be endpoints prefixed with the name of each RemoteClusterConfiguration in the local cluster.
```
Endpoints matching selector all():
Workload endpoint remote-cluster-1/host-1/k8s/kube-system.kube-dns-5fbcb4d67b-h6686/eth0
Workload endpoint remote-cluster-1/host-2/k8s/kube-system.cnx-manager-66c4dbc5b7-6d9xv/eth0
Workload endpoint host-a/k8s/kube-system.kube-dns-5fbcb4d67b-7wbhv/eth0
Workload endpoint host-b/k8s/kube-system.cnx-manager-66c4dbc5b7-6ghsm/eth0
Workload endpoint remote-cluster-1/host-1/k8s/calico-system.kube-dns-5fbcb4d67b-h6686/eth0
Workload endpoint remote-cluster-1/host-2/k8s/calico-system.cnx-manager-66c4dbc5b7-6d9xv/eth0
Workload endpoint host-a/k8s/calico-system.kube-dns-5fbcb4d67b-7wbhv/eth0
Workload endpoint host-b/k8s/calico-system.cnx-manager-66c4dbc5b7-6ghsm/eth0
```
If this command fails, the error messages returned by the command may provide insight into where issues are occurring.
Expand Down

0 comments on commit 031c4c5

Please sign in to comment.