Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Ksync init doesn't support specifying a kubeconfig file to talk to remote cluster  #445

@buptliuwei

Description

@buptliuwei

Hi all,
In my platform, i specify other kubeconfig files by setting the --kubeconfig flag to access k8s cluster. when i try to Initialize ksync with command ksync init --context string, the ksync client will get kubeconfig file from $HOME/.kube or KUBECONFIG environment variable.
So, during ksync init, can we also specify other kubeconfig files by setting --kubeconfig flag. Jsut look like

ksync init --context xxx --kubeconfig xxx

I refer to the documentation: Organizing Cluster Access Using kubeconfig Files
I raised this issue because of my own usage style and some confusion. If someone has discussed before and thinks this feature is not needed, please ignore this :)

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