Skip to content

Proposal: configure defaults for containerd using namespace labels #2285

@stevvooe

Description

@stevvooe

For example, one could use a label on a namespace to set the default snapshotter:

~ ❯❯❯ sudo ctr namespaces ls                                                                                                                                                                                                                                                                                                ⏎
NAME    LABELS 
default        
k8s.io         
~ ❯❯❯ sudo ctr namespaces label k8s.io containerd.io/defaults/snapshotter=btrfs                                                                                                                                                                                                                                             ⏎
~ ❯❯❯ sudo ctr namespaces ls
NAME    LABELS                                   
default                                          
k8s.io  containerd.io/defaults/snapshotter=btrfs 

Then, the client would query the namespace for the labels and set the appropriate defaults for that namespace. Other examples might include platform, runtime or gc behavior that is performed in the client.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions