Gowtham Chinta:
Getting error for RuntimClass
apiVersion: http://node.k8s.io/v1|node.k8s.io/v1
kind: RuntimeClass
metadata:
name: myclass
handler: gvisor
error: unable to recognize “runtime.yaml”: no matches for kind “RuntimeClass” in version “http://node.k8s.io/v1|node.k8s.io/v1”
Tej_Singh_Rana:
Hello, @Gowtham Chinta
I tried above manifest file. I can create runtimeclass without any issue.
Gowtham Chinta:
@Tej_Singh_Rana May I know your kubernetes version?
Tej_Singh_Rana:
What’s yours?
Gowtham Chinta:
ok. May be issue with the kubernetes version in Mock Exam 1. Its 1.19
Gowtham Chinta:
I will try http://beta.kodekloud.com|beta.kodekloud.com once and will see. Thanks @Tej_Singh_Rana for confirming.
Tej_Singh_Rana:
You can run kubectl explain runtimeclass command to see the apiVersion.
Tej_Singh_Rana:
I think in v1.19. It’s in beta.
Gowtham Chinta:
Sure Tej . will try
Gowtham Chinta:
thanks @Tej_Singh_Rana kubectl explain runtimeclass helped to figure out