Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Kubernetes SnippetsNew to Visual Studio Code? Get it now.
Kubernetes Snippets

Kubernetes Snippets

Preview

Will 保哥

duotify.com
|
19,154 installs
| (6) | Free
High quality Code Snippets that help you authoring YAML scripts for Kubernetes.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Kubernetes Snippets

This extension contains a set of Kubernetes code snippets that helps you write YAML faster and easier. If you'd like to provide ideas or contribute your awesome snippets, please drop me a line by creating an issue.

Usage Screenshot

Snippets Included

Workloads

  • k-deploymment: k8s Deployment
  • k-pod: k8s Pod
  • k-job: k8s Job
  • k-cronjob: k8s CronJob
  • k-daemonset: k8s DaemonSet
  • k-statefulset: k8s StatefulSet

Network

  • k-service: k8s Service
  • k-ingress: k8s Ingress
  • k-ingress-tls: k8s Ingress with TLS
  • k-ingress-rewrite: k8s Ingress with Rewrite rule
  • k-networkpolicy: k8s NetworkPolicy

Configuration

  • k-configmap: k8s ConfigMaps
  • k-secret: k8s Secrets

Storage

  • k-pvc: k8s PersistentVolumeClaim

RBAC

  • k-role: k8s Role
  • k-rolebinding: k8s RoleBinding
  • k-clusterrole: k8s ClusterRole
  • k-clusterrolebinding: k8s ClusterRoleBinding

Authentication Resources

  • k-serviceaccount: k8s ServiceAccount
  • k-serviceaccount-imagepullsecrets: k8s ServiceAccount with imagePullSecrets. See also: Add image pull secret to service account

Extensions Included

This extension bundled with some MUST needed VSCode extensions for Kubernetes developments.

  • Kubernetes

    Develop, deploy and debug Kubernetes applications

  • YAML

    YAML Language Support by Red Hat, with built-in Kubernetes syntax support

  • Kubernetes Apply

    Apply and Delete Kubernetes resource files

  • Encode Decode

    This allows you to quickly convert text selections such as Base64 encode/decode. So much useful for Secrets authoring.

There are some other extensions you may need (Optional)

  • Dapr

    Makes it easy to run, debug, and interact with Dapr-enabled applications.

  • Azure Kubernetes Service

  • Bridge to Kubernetes

  • Open Policy Agent for Kubernetes

    Work with Open Policy Agent as a Kubernetes admission controller

  • Developer Tools for Azure Kubernetes Service (AKS)

    Create deployment files and configure GitHub Actions workflows to deploy applications to Azure Kubernetes Service (AKS).

  • Kubernetes Pod File System Explorer

    Kubernetes Pod File System Explorer.

  • Kubernetes Dashboard

    Install and Launch Kubernetes Dashboard.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft