I tried to create a new pod:
kubectl apply -f first-pod.yamlI have installed new version of kubectl 1.17:
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/windows/amd64/kubectl.exeInstalled version check:
kubectl is supported within one minor version (older or newer) of
kube-apiserver. Example:
kube-apiserveris at 1.15kubectlis supported at 1.16, 1.15, and 1.14Kubernetes versions are expressed as x.y.z, where x is the major version, y is the minor version, and z is the patch version.
Since your client is on version is 1.9.2 it's a huge version gap which can cause many issues.
This is the link to install the 1.15 kubectl version for Windows, Linux or MacOS.
If you need any further help just let me know!
issue has resolved. The problem is due to the version 1.9 , unable to set a new version even if i download it. version 1.9 had installed along with docker installer very long back.
issue resolved by