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 microk8s containerdRegistryConfigPath #567

Open
danielluke opened this issue Aug 23, 2024 · 1 comment · May be fixed by #571
Open

Support microk8s containerdRegistryConfigPath #567

danielluke opened this issue Aug 23, 2024 · 1 comment · May be fixed by #571

Comments

@danielluke
Copy link

Hi, I've got things setup on my local 5-node microk8s setup, and things seem to be working really well.

One catch is that I'd like to use a containerdRegistryConfigPath like /var/snap/microk8s/current/args/certs.d so that I don't have to update the config whenever I update my microk8s snap (otherwise the path looks like /var/snap/microk8s/6872/args/certs.d ).

However -

paths := filepath.SplitList(cfg.Registry.ConfigPath)

this section doesn't like it if I don't use /var/snap/microk8s/6872/args/certs.d

the path with 'current' in it is a symlink to the currently installed snap version's path:

$ ls -l /var/snap/microk8s/current
lrwxrwxrwx 1 root root 4 Jun  3 00:02 /var/snap/microk8s/current -> 6872

Otherwise, I just did a helm install with these values:

spegel:
  containerdSock: "/var/snap/microk8s/common/run/containerd.sock"
  containerdRegistryConfigPath: "/var/snap/microk8s/6872/args/certs.d"
  containerdContentPath: "/var/snap/microk8s/common/var/lib/containerd/io.containerd.content.v1.content"

and edited /var/snap/microk8s/current/args/containerd-template.toml to include 'discard_unpacked_layers = false'

@phillebaba
Copy link
Member

I am not familiar with how snap works with the dynamic directory paths, but I understand why you would want to use symlinks to get a static path. Adding a secondary check with symlinks is easy enough, and there are probably others out there who would want this in the future.

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.

2 participants