Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration options for cluster-domain and kubernetes-endpoint in cozystack configmap. #168

Open
kvaps opened this issue Jun 16, 2024 · 1 comment

Comments

@kvaps
Copy link
Member

kvaps commented Jun 16, 2024

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:

- name: KUBERNETES_SERVICE_HOST
value: localhost
- name: KUBERNETES_SERVICE_PORT
value: "7445"

and also pass them for fluxcd and clilium values.

details:

@kvaps
Copy link
Member Author

kvaps commented Jun 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant