Kubernetes 1.16 deprecated API版本。您需要改用apps/v1beta2
。
稳定/ logstash 图表已经has a commit,已升级了API版本。确保您使用的是apps/v1
图表版本,并且该版本应该可以使用。例如:
2.3.0
,
发生这些情况时,您始终可以使用kubectl exaplain
命令来获取正确版本的API。
示例:
$ kubectl explain statefulset
KIND: StatefulSet
VERSION: apps/v1
DESCRIPTION:
StatefulSet represents a set of pods with consistent identities. Identities
are defined as: - Network: A single stable DNS and hostname. - Storage: As
many VolumeClaims as requested. The StatefulSet guarantees that a given
network identity will always map to the same storage identity.
FIELDS:
apiVersion <string>
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/api-conventions.md#resources
kind <string>
Kind is a string value representing the REST resource this object
represents. Servers may infer this from the endpoint the client submits
requests to. Cannot be updated. In CamelCase. More info:
https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
metadata <Object>
spec <Object>
Spec defines the desired identities of pods in this set.
status <Object>
Status is the current status of Pods in this StatefulSet. This data may be
out of date by some window of time.
如您所见,在版本下,它说明了该特定对象集群支持的API版本。
本文链接:https://www.f2er.com/3137679.html