Skip to content

Add --disable to k3s to disable traefik and local-storage on startup #302

@yuriy-yarosh

Description

@yuriy-yarosh

Feature request description

It would be nice to be able to disable traefik and local-storage out of the box, so people could replace 'em with other gateway or CSI according to their needs.

Similarly how it's done in java modules.

        addExposedPorts(KUBE_SECURE_PORT, RANCHER_WEBHOOK_PORT);
        setPrivilegedMode(true);
        withCreateContainerCmdModifier(it -> {
            it.getHostConfig().withCgroupnsMode("host");
        });
        addFileSystemBind("/sys/fs/cgroup", "/sys/fs/cgroup", BindMode.READ_WRITE);

        Map<String, String> tmpFsMapping = new HashMap<>();
        tmpFsMapping.put("/run", "");
        tmpFsMapping.put("/var/run", "");
        setTmpFsMapping(tmpFsMapping);

        setCommand("server", "--disable=traefik", "--tls-san=" + this.getHost());
        setWaitStrategy(Wait.forLogMessage(".*Node controller sync successful.*", 1));

I don't really get the point of that --tls-san and why they're do fs mapping, and binding cgroups.
Maybe it's something worth replicating for rust modules, as well.

Image reference

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions