-
Notifications
You must be signed in to change notification settings - Fork 3
podshell
Enter a pod shell using it full name or select from matching pods.
Version : 1.0
File Name : podshell.ps1
Author : Adewale Azeez - azeezadewale98@gmail.com
Date : March-31-2020
Enter a pod shell using it full name or select from matching pods. Kubectl is required for this command to work, it can be downloaded from
podshell [-PodName] <String> [<CommonParameters>] the full pod name or matching part of pod name
| attr | value |
|---|---|
| Required? | true |
| Position? | 1 |
| Default value | |
| Accept pipeline input? | false |
| Accept wildcard characters? | false |
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
[System.String]
[System.String[]]
podshell mypod
Find all pod that match the name 'mypod' the use the index to select which pod to enter it shell .
podshell mypod-service-5d94df45ff-pnnn
Enter the pod mypod-service-5d94df45ff-pnnn shell if found in the current context.
MIT License Copyright (c) 2019-2020 Adewale Azeez