Yaml Support for Kubernetes in VSCode

8/17/2021

I am trying to use VS code editor for creating kubernetes yaml files, by some reason, vscode is not showing auto-complete commands or space in my yaml files even though I have installed Yaml Support by Redhat extension and configured yaml.schema file as per below:

{ "yaml.schemas": { "Kubernetes": "*.yaml" } }

Any help would be appreciated. Thanks

-- Anil
kubernetes
visual-studio-code

1 Answer

9/28/2021

you can try it.

"yaml.schemas": {
    "http://www.schemastore.org/json/composer": ["/*"],
    "kubernetes": ["/*.yaml"]
},
-- xiwolaisi
Source: StackOverflow