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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -