The behavior can be easily reproduced:
```
workstation:~$ docker run -it --rm python:3.9 bash
root@de0bb9e2760b:/# pip install salt kubernetes
...
# add kubeconfig to here /etc/salt/kubeconfig
# start masterless salt-call
root@de0bb9e2760b:/# salt-call --local kubernetes.nodes kubeconfig=/etc/salt/kubeconfig context=default
'kubernetes.nodes' is not available.
```
When i create a namespace with a state and set kubernetes config in minion file then salt dont find the kubernetes module
```
root@8f546d7c8af6:/# salt-call --local state.apply k8s -l debug
local:
----------
ID: sam
Function: kubernetes.namespace_present
Result: False
Comment: State 'kubernetes.namespace_present' was not found in SLS 'k8s'
Reason: 'kubernetes' __virtual__ returned False: kubernetes module could not be loaded
Changes:
```
The kubernetes module is present:
```
root@8f546d7c8af6:/# python
Python 3.9.9 (main, Dec 21 2021, 10:03:34)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kubernetes
>>>
```
Any idea?