查看k8s的apiversion版本命令

kubectl api-versions
kubectl explain deployment.apiVersion

查看版本使用哪一个apiVersion

[root@master k8s-prometheus-grafana]#  kubectl explain DaemonSet.apiVersion
KIND:     DaemonSet
VERSION:  apps/v1

FIELD:    apiVersion <string>

DESCRIPTION:
     APIVersion defines the versioned schema of this representation of an
     object. Servers should convert recognized schemas to the latest internal
     value, and may reject unrecognized values. More info:
     https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐