-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration Tips
tuna edited this page Jan 6, 2023
·
4 revisions
This document refers to some data sources, conventions and rules while configuring a connection hub.
It's obligatory to use cluster domain names while naming instances. To learn cluster domain name, you can run:
kubectl get cm coredns -n kube-system -o jsonpath="{.data.Corefile}" \
| grep ".local " \
| awk -F ' ' '{print $2}'
Sample output will be:
cluster-one.local
It means that YOU MUST name that instance as cluster-one
.
It can be queried using:
kubectl get nodes <NODE-NAME> -o jsonpath='{.spec.podCIDR}'
It can be queried using:
SVCRANGE=$(echo '{"apiVersion":"v1","kind":"Service","metadata":{"name":"tst"},"spec":{"clusterIP":"1.1.1.1","ports":[{"port":443}]}}' | kubectl apply -f - 2>&1 | sed 's/.*valid IPs is //')
echo $SVCRANGE