kubernetes - no object named "pod" is registered -
what mean?
-bash-4.2# kubectl create -f ./pod.yaml error: unable recognize "./pod.yaml": no object named "pod" registered
pod.yaml, capitalizing or not capitalizing 'pod' makes no difference. validates proper yaml.
apiversion: v1 kind: pod metadata: name: nginx spec: containers: - name: nginx image: nginx ports: - containerport: 80 hostport: 8080
can please run kubectl version
, report results? expect either apisver or kubectl version outdated, , doesn't know v1 api.
for it's worth, pod spec works me both kubectl , apiserver @ version 1.0.3.
Comments
Post a Comment