YAML file issue

As part of the lab i created a YAML file .
apiVersion: V1

kind: Pod

metadata:

name: redis

spec:

containers:

- name: redis

  image: redis123

When I try to run this getting the following error.

aster $ kubectl create -f redis.yml
error: unable to recognize “redis.yml”: no matches for kind “Pod” in version “V1”

image

Hello, nems
You need to write “v1” not “V1”.

1 Like