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

Support for the special config.yaml.d directory #148

Closed
onedr0p opened this issue Sep 6, 2021 · 0 comments · Fixed by #149
Closed

Support for the special config.yaml.d directory #148

onedr0p opened this issue Sep 6, 2021 · 0 comments · Fixed by #149

Comments

@onedr0p
Copy link
Collaborator

onedr0p commented Sep 6, 2021

Summary

k3s supports a config.yaml.d under the /etc/rancher/k3s directory which allow to split up the configuration a bit. It would be cool if this was supported here.

Issue Type

  • Feature Request

User Story

As a user I would like to deploy additional k3s configuration to the config.yaml.d. My major use case for this is that I can have a file that is encrypted with ansible vault or mozilla sops.

Consider the following file gets copied into the /etc/rancher/k3s/config.yaml.d directory. The Ansible variables I have here are decrypted on the fly from SOPS.

# 10-etcd-snapshots.yml.j2
etcd-snapshot-schedule-cron: "{{ etcd_snapshot_schedule_cron }}"
etcd-snapshot-retention: "{{ etcd_snapshot_retention }}"
etcd-s3: "{{ etcd_s3 }}"
etcd-s3-endpoint: "{{ etcd_s3_endpoint }}"
etcd-s3-bucket: "{{ etcd_s3_bucket }}"
etcd-s3-access-key: "{{ etcd_s3_access_key }}"
etcd-s3-secret-key: "{{ etcd_s3_secret_key }}"

Additional Information

k3s-io/k3s#3205

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

Successfully merging a pull request may close this issue.

1 participant