Kubernetes Snippets for Sublime Text

Kubernetes Snipperts is a package for Sublime Text which helps you to create Kubernetes templates easy and fast.

How to enable the Kubernetes Snippets

Clone the repo and copy the files into ~/Library/Application\ Support/Sublime\ Text/Packages/User/ diretory.

$ git clone https://github.com/songjiz/sublime-kubernetes-snippets
$ cd sublime-kubernetes-snippets
$ cp Kubernetes* ~/Library/Application\ Support/Sublime\ Text/Packages/User/

Using Snippets in Sublime Text

Create a file in Sublime Text with yaml extension. If you don't create the file with .yaml extension, you will not able to use snippets. and start typing k8s to see the list of the snippets

Sublime Kubernetes snippets

If you select k8s:po Kubernetes Pod, you will get the Pod yaml

Sublime Kubernetes snippets