Autocomplete Kubernetes YAML files in VSCode

I’ve increasingly been working with Kubernetes and hence lots of YAML files.

It’s nice and easy to get autocomplete setup for the Kubernetes YAML using this awesome extension YAML Support by Red Hat

Setup:

  • Install the Extension

  • Add the following to your settings

    "yaml.schemas": {
      "Kubernetes": "*.yaml"
    }
  • Reload the editor

Here is me setting it up and showing it off: vscodeyamlautocomplete3

Massive thanks to the team that worked on the extension and language server to support this!