Do we have kubectl convert preinstalled in PSI browser vm?

what should we do if get api deprication questions and we don’t have kubectl convert preinstalled?

If it is not present, then you have to do it by hand.
The rules about what can be installed are here.

1 Like

Thanks Alistair. Also I want to know that do we need to add kubernetes alias and vim configurations in each context ? can we do it one time or do we need add them every time when we switch the context?

The aliases tend to be installed everywhere you need to use kubectl. And .vimrc has reasonable settings as well.

Hi Rob,
Can you please provide more info on this? I took my 1st attempt and I had to set the vim configs each time whenever I changed the context. Also can you provide me the best vim configs ?

I memorized the following lines when I first took CKA a few years back for ~/.vimrc

se sw=2 ts=2 st=2 et
map <C-e> <C-w>

I’m not convinced the second line is still needed (it used to be) – it substitutes Cntl-e for Cntl-w, which is handy for switching panes in vim. If you don’t do that, you don’t need that. And I’m not sure with the current platform that you’d need it in any case.

How to set Alias and vim configs globally?

You don’t. They’re set per host. I find that the student/candidate node has good default settings. Mostly I’ve found that’s true for the various controlplane nodes as well, but if they missed some, you may have run into problems. But the “se sw=2 ts=2 st=2 et” is easy to remember, and quick to set if you don’t like the YAML indentation you’re getting on a node.

Thanks Rob. This will help me a lot.