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

KUBE_CONFIG needs to go #90

Open
andy108369 opened this issue Jul 27, 2022 · 0 comments
Open

KUBE_CONFIG needs to go #90

andy108369 opened this issue Jul 27, 2022 · 0 comments

Comments

@andy108369
Copy link
Collaborator

andy108369 commented Jul 27, 2022

Looks like KUBE_CONFIG needs to go.

It doesn't appear to be valid nor required since we set AKASH_CLUSTER_K8S=true.


akash-provider Helm-Charts

helm-charts$ git grep -A1 KUBE_CONFIG
charts/akash-provider/templates/deployment.yaml:            - name: KUBE_CONFIG
charts/akash-provider/templates/deployment.yaml-              value: "{{ .Values.home }}/.kube/config"

akash-provider Pod:

$ kubectl -n akash-services describe pod $(kubectl -n akash-services get pods -l app=akash-provider --output jsonpath='{.items[0].metadata.name}') | grep -i config
      KUBE_CONFIG:                            /root/.akash/.kube/config
$ kubectl -n akash-services exec -ti $(kubectl -n akash-services get pods -l app=akash-provider --output jsonpath='{.items[0].metadata.name}') -- bash
root@akash-provider-855f68b48f-rl7xj:/# ps -ef|grep provider
root        2986       1 20 Jul20 ?        1-11:05:05 /bin/akash provider run --cluster-k8s

root@akash-provider-855f68b48f-rl7xj:/# cat /proc/2986/environ | xargs -0 -n1 |grep -i kube_config
KUBE_CONFIG=/root/.akash/.kube/config

root@akash-provider-855f68b48f-rl7xj:/# ls -la /root/.akash/.kube/config /root/.akash/.kube 
ls: cannot access '/root/.akash/.kube/config': No such file or directory
ls: cannot access '/root/.akash/.kube': No such file or directory

root@akash-provider-855f68b48f-rl7xj:/# find / -xdev |grep -i kube\/config 
root@akash-provider-855f68b48f-rl7xj:/# 
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

No branches or pull requests

1 participant