Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change apps/v1beta1; Add field "selector"; to make it run on kubernet…
…es 1.18.3 There will be errors if we don't make a change: [root@master1 Chapter10]# kubectl apply -f kubia-statefulset.yaml error: unable to recognize "kubia-statefulset.yaml": no matches for kind "StatefulSet" in version "apps/v1beta1" [root@master1 Chapter10]# [root@master1 Chapter10]# kubectl apply -f kubia-statefulset.yaml error: error validating "kubia-statefulset.yaml": error validating data: ValidationError(StatefulSet.spec): missing required field "selector" in io.k8s.api.apps.v1.StatefulSetSpec; if you choose to ign ore these errors, turn validation off with --validate=false [root@master1 Chapter10]#
- Loading branch information