Skip to content

Add configMap support #57

@NWilson

Description

@NWilson

Currently, konlet supports emptyDir, hostPath, and gcePersistentDisk volumes.

Could we please add configMap support? This is really really useful feature in Kubernetes where the Pod's YAML file can specify some data that will be injected into the running containers via the filesystem. It's a bit like emptyDir in that it specifies a transient volume, but additionally allows key:value pairs in the YAML (from GCE-metadata) to initially populate the files in the volume.

At the moment, konlet works really well if the Docker image already contains all the files it needs to run. But it's very awkward to use konlet/ContainerOS if the Docker image needs anything to be injected in.

By emulating more of the Kubernetes YAML format, konlet will be easier to use, so services can be switched between GCE and GKE with fewer configuration differences.


Implementation-wise, I'm guessing it will be a Docker host-mount under the hood, using a tmpfs directory where konlet writes some files corresponding to the configMap key:value pairs, before starting the Docker container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions