K8sShell

1.0.4

A PowerShell module that is intended to simplify and potentially help in automating day-to-day tasks typically performed using kubectl.exe.

In particular, what is implemented within this module is primarily the "R" and "D" from CRUD: Read and Delete.

Minimum PowerShell version

7.3.3

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name K8sShell

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name K8sShell

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) mattf. All rights reserved.

Package Details

Author(s)

  • mattf

Tags

Kubernetes k8s K8sShell PowerShell kubectl kube windows

Cmdlets

Edit-IngressWhitelist Get-Containers Get-CronJobs Get-Deployments Get-Endpoints Get-Events Get-Ingress Get-IngressClass Get-K8sJobs Get-Namespaces Get-NodeMetrics Get-Nodes Get-PersistentVolumeClaims Get-PersistentVolumes Get-PodMetrics Get-Pods Get-RuntimeConfig Get-Secrets Get-ServiceAccounts Get-K8sServices Invoke-CopyLocalToRemote Invoke-CopyRemoteToLocal Invoke-RemoteCommand Remove-CronJob Remove-Deployment Remove-Endpoint Remove-Ingress Remove-IngressClass Remove-K8sJob Remove-Namespace Remove-Node Remove-PersistentVolume Remove-PersistentVolumeClaim Remove-Pod Remove-Secret Remove-ServiceAccount Remove-K8sService Save-Logs Set-ClusterConfig Set-Directory Set-KubeConfig Set-KubeContext Set-KubectlPath Set-KubectlShell Set-Namespace Show-EndpointDetail Show-IngressRule Show-IngressTls Show-IngressWhitelist Show-Logs Show-ServicePorts Show-ServiceSelectors Start-KubectlExec Start-KubeProxy Start-PortForward

PSEditions

Core

Dependencies

This module has no dependencies.

Release Notes

## 1.0.4
* Fixed the issue where if the default config is being used and there is no default context defined, and Get-Pods is being piped into Get-Containers which in turn is being piped into Start-KubectlExec, an empty context was being passed to kubectl.

## 1.0.3
* The RootModule needs to be set to K8sShell.dll.

## 1.0.2
* $PSScriptRoot in the psm1 file was empty. The module path now uses current directory syntax.

## 1.0.1
* Last-minute name change of the module name caused a load issue.

## 1.0.0
* Initial release.

FileList

Version History

Version Downloads Last updated
1.0.4 (current version) 170 8/8/2023