cozystack
cozystack copied to clipboard
Configuration options for `cluster-domain` and `kubernetes-endpoint` in cozystack configmap.
We have to provide an extra options for cozystack configmap, which can be optional:
cluster-domain: cozy.local
kubernetes-endpoint: https://192.168.123.11:6443
If they are specified, we have to consume them by installer.sh instead of hardcoded values: https://github.com/aenix-io/cozystack/blob/838bee5d25bbe65a48f01e1de610298a4beb91cf/manifests/cozystack-installer.yaml#L73-L76
and also pass them for fluxcd and clilium values.
details:
- https://github.com/aenix-io/cozystack/pull/166#discussion_r1641648820
- https://github.com/controlplaneio-fluxcd/flux-operator/issues/34#issuecomment-2171122183
The cluster domain can also be extracted from resolv.conf using the following awk command:
awk '$1 == "search" { sub(/^.*.svc./, "", $2); print $2 }' /etc/resolv.conf
It might be possible to use this method to automate the configuration of the cluster domain for users.
However, we need to consider the convenience of local development. All commands like make show, make diff, and make apply should also receive the correct settings.
Fixed in https://github.com/cozystack/cozystack/pull/589