Kubernetes Config auto complete and Snippets for Sublime Text 3

Kubernetes Config auto complete package for Sublime Text 3 is really useful for the daily k8s template creation. It covers almost all Kubernetes keywords and I added annotations for AWS ELB, external-dns features for this package.

Just install to package and save the file with .yaml/yml extension. I don’t know the reason but if I start with empty file and save with yaml extension. It does not work. I had to close the file and re-open to make Kubernetes autocomplete works.

If you want to add more keywords you can send PR to

https://github.com/xr1337/sublime-kubernetes-autocomplete project.

Kubernetes Snippets

Another nice project is Kubernetes Snippets for Sublime Text editor. https://github.com/songjiz/sublime-kubernetes-snippets

I sent a PR for apiVersions changes. It is not approved yet. You can get my changes from https://github.com/ismailyenigul/sublime-kubernetes-snippets

How to enable the Kubernetes Snippets (on MacOS)

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

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

Using Snippets in Sublime Text

Start typing k8s

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


Devops Engineer.