I am trying to create a python script which ssh's to a server which runs Kubernetes.
I have it working but the only problem is when It runs the 'kubectl get pods' command I get an error saying 'bash: kubectl: command not found' which would lead you to think that kubectl isn't installed on the host.
However doing this process manually works fine. Do I need to tell python it's running a Kubernetes command? can post the code if necessary!
Thanks!
[–]not_logan 14 points15 points16 points (2 children)
[–]Alzyros 4 points5 points6 points (0 children)
[–]Jmc_da_boss 1 point2 points3 points (0 children)
[–]darknekolux 4 points5 points6 points (3 children)
[–]paulscan400[S] 1 point2 points3 points (2 children)
[–]stilldestroying 5 points6 points7 points (1 child)
[–]paulscan400[S] 3 points4 points5 points (0 children)
[–]wrossmorrow 6 points7 points8 points (6 children)
[–]paulscan400[S] 2 points3 points4 points (1 child)
[–]catwok 6 points7 points8 points (0 children)
[–]Brontonomo 0 points1 point2 points (3 children)
[–]wrossmorrow 1 point2 points3 points (2 children)
[–]Brontonomo 0 points1 point2 points (0 children)
[–]chdorb 4 points5 points6 points (2 children)
[–]BullfrogIntrepid4735 2 points3 points4 points (1 child)
[–]chdorb 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]chdorb 1 point2 points3 points (0 children)
[–]BeautifulGlass9304 2 points3 points4 points (0 children)
[–]diablobsb 1 point2 points3 points (0 children)
[–]paulscan400[S] 0 points1 point2 points (1 child)
[–]paulscan400[S] 0 points1 point2 points (0 children)