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

New-AksEdgeDeployment overwrites kubeconfig #125

Closed
pbering opened this issue Jun 19, 2023 · 2 comments
Closed

New-AksEdgeDeployment overwrites kubeconfig #125

pbering opened this issue Jun 19, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@pbering
Copy link

pbering commented Jun 19, 2023

Describe the bug
When deploying with New-AksEdgeDeployment the current kubeconfig is overridden instead of the cluster connection is just added.

To Reproduce
Steps to reproduce the behavior:

  1. Connect to any cluster, verify that it works and its added to your kubeconfig
  2. Run New-AksEdgeDeployment ...
  3. Now the connection from 1 is gone and only the new connection is present

Expected behavior
I expect ASK EE to leave my current connections in kubeconfig alone and just add the new connection and switch to it. This can be done using kubectl config set cluster (see https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/#define-clusters-users-and-contexts).

Environment (please complete the following information):

  • AKS Edge Essentials Version [e.g. 3.22] == 1.2.414
  • Kubernetes version [e.g. 1.24.3] == K8S 1.25.4
  • Windows Host OS (please complete the following information):
    • Edition: [e.g. Professional, IoT Enterprise, Server, etc] == Enterprise
    • Version: [e.g. build 17763] == 22H2, 22621.1848
    • Virtual Machine: [eg. Azure VM, Local VM, Other, None] == no
@pbering pbering added the bug Something isn't working label Jun 19, 2023
@fcabrera23 fcabrera23 self-assigned this Jun 20, 2023
@fcabrera23
Copy link
Collaborator

Hi @pbering,

Thanks for reaching out. We will try to reproduce this issue and reach back to you.

Thanks,
Francisco

@fcabrera23
Copy link
Collaborator

Hi @pbering,

Sorry for the delay - After working with the team, we decided this scenario is by design. We will add a note in our documentation to keep a copy of other existing kubconfig files before deploying AKS-EE. If you want, after AKS-EE deployment is finished, you can manually merge your kubeconfig files and use the context option to target your different clusters.

Thanks,
Francisco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants