Skip to content

Copy kubeconfig to right location#27

Open
danpawlik wants to merge 1 commit into
SeanMooney:masterfrom
danpawlik:copy-kubeconfig
Open

Copy kubeconfig to right location#27
danpawlik wants to merge 1 commit into
SeanMooney:masterfrom
danpawlik:copy-kubeconfig

Conversation

@danpawlik

Copy link
Copy Markdown

In most cases, the MicroShift is deployed as a stack user, which does not have HOME path to /home/stack, but /opt/stack, that in the end, after MicroShift deployment, kubeconfig is not available.

@SeanMooney

Copy link
Copy Markdown
Owner

did you deploy this with make moleucle or just use the ansible

i want to understand the delta form my local system
where i see the following in the oko-mo senario

[stack@microshift ~]$ ls -al  .kube/config
-rw-------. 1 stack stack 11431 Jun  9 05:29 .kube/config
[stack@microshift ~]$ echo $HOME
/home/stack
[stack@microshift ~]$ pwd
/home/stack
[stack@microshift ~]$ oc get pod | head -n 2
NAME                                                          READY   STATUS      RESTARTS   AGE
bootstrap-edpm-deployment-openstack-edpm-zssvc                0/1     Completed   0          2d20h

Comment thread ansible/playbooks/workloads/microshift/deploy.yaml Outdated
@danpawlik

Copy link
Copy Markdown
Author

I did not run molecule, just running ansible playbook.
In that case, let me move that part for copying kubeconfig to the $HOME

@danpawlik danpawlik force-pushed the copy-kubeconfig branch 4 times, most recently from 53fc794 to 8a49daa Compare June 12, 2026 11:55
@danpawlik danpawlik requested a review from SeanMooney June 12, 2026 15:58
In most cases, the MicroShift is deployed as a stack user, which
does not have HOME path to /home/stack, but /opt/stack, that
in the end, after MicroShift deployment, kubeconfig is not available.

Signed-off-by: Daniel Pawlik <pawlik.dan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants