thanks Christian !
BTW, I got some error when apply for the pod.yaml
$ kubectl apply -f pod.yaml error: error when retrieving current configuration of: Resource: "/v1, Resource=pods", GroupVersionKind: "/v1, Kind=Pod" Name: "", Namespace: "default" Object: &{map["apiVersion":"v1" "kind":"Pod" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "labels":map["app":"helloworld"] "namespace":"default"] "spec":map["containers":[map["image":"christianhxc/helloworld:1.0" "name":"helloworld" "ports":[map["containerPort":'P']] "resources":map["limits":map["cpu":"100m"] "requests":map["cpu":"50m"]]]]]]} from server for: "pod.yaml": resource name may not be empty
and search the solution if someone met the same error like , hope it helps :) github.com/kubernetes/kubectl/issu...
make sure add the metadata.name value and the problem will be solved
metadata.name
thanks Hannah! I've updated the post.
Depending on the Kubernetes version, some tags are required, and others aren't.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
thanks Christian !
BTW,
I got some error when apply for the pod.yaml
and search the solution
if someone met the same error like , hope it helps :)
github.com/kubernetes/kubectl/issu...
make sure add the
metadata.namevalue and the problem will be solvedthanks Hannah! I've updated the post.
Depending on the Kubernetes version, some tags are required, and others aren't.