Get–Deployments - anongitmous/k8sShell GitHub Wiki

Get cluster deployment objects.

Syntax

Get-Deployments

[<K8sShellCommonParameters>]
[<CommonParameters>]

Description

Get cluster deployment objects.

See the example output.

Examples

ℹ️ See A Note about the Examples

1. Get the deployments from the current cluster and namespace

Get-Deployments

  • Using aliasing, the above can be shortened to
    ksgd

Parameters

See Common Parameters/Namespaced All

Outputs

Mtf.Kubernetes.Models.V1K8sDeployment

Example

image

Supported Field Selectors

📝 - As of 06/2023

  • metadata.namespace
  • metadata.name

Notes

K8sShell includes the following alias for Get-Deployments:

  • ksgd

Related