Skip to content

brettjacobson/k8sPSProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes SHiPS Provider

PowerShell SHiPS provider for Kubernetes kubectl

Make your kubernetes cluster look like a Drive! Delve into namespaces as if they were a directory!

Install-Module -Name SHiPS -Force   # as Administrator!

After installing the module, import the module and mount a drive.

Import-Module -Name SHiPS -Force
Import-Module KubernetesDrive -Force
Remove-PSDrive kube -ErrorAction SilentlyContinue
New-PSDrive -Name kube -PSProvider SHiPS -Root KubernetesDrive#Cluster

Now, you can do the following:

cd kube:
dir
cd <some-namespace>
k8 get pods

k8 is a PowerShell function that executes kubectl and supplies the --namespace parameter with the value of the folder you are in on the kube: drive.

--WORK IN PROGRESS--

NOTES

https://github.com/PowerShell/SHiPS/blob/development/docs/README.md https://github.com/PowerShell/SHiPS/blob/development/samples/DynamicParameter/DynamicParameter.psm1 https://github.com/PowerShell/SHiPS/blob/development/samples/FileSystem/FileSystem.psm1

https://github.com/rchaganti/PSConfDrive http://www.powershellmagazine.com/2018/04/03/psconfeu-agenda-as-a-powershell-drive-using-ships/

TODO

  1. make the format file, to control columns of the different things
  2. do cool stuf

About

PowerShell SHiPS provider for Kubernetes kubectl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published