April 2018
Intermediate to advanced
468 pages
14h 34m
English
As of Kubernetes 1.10, we still need to add backend pods to each federation member cluster. This can be done with the kubectl run command. In a future release, the Kubernetes federation API server will be able to do it automatically. This will save one more step. Note that when you use the kubectl run command, Kubernetes automatically adds the run label to the pod based on the image name. In the following example, which launches an NGINX backend pod on five Kubernetes clusters, the image name is nginx (ignoring the version), so the following label is added:
run=nginx
This is necessary because the service uses that label to identify its pods. If you use another label, you need to add it explicitly:
for C in cluster-1 ...
Read now
Unlock full access