Kubernetes 1.16 logstash helm chat版本“apps/v1beta2”中的类型“StatefulSet”不匹配
我正试图在kubernetes集群1.16上部署logstash头盔。但它给出了下面的错误消息。如何更新此舵图的Kubernetes API更改Kubernetes 1.16 logstash helm chat版本“apps/v1beta2”中的类型“StatefulSet”不匹配,kubernetes,kubernetes-helm,Kubernetes,Kubernetes Helm,我正试图在kubernetes集群1.16上部署logstash头盔。但它给出了下面的错误消息。如何更新此舵图的Kubernetes API更改 helm install --name logstash stable/logstash -f values.yaml Error: validation failed: unable to recognize "": no matches for kind "StatefulSet" in version &
helm install --name logstash stable/logstash -f values.yaml
Error: validation failed: unable to recognize "": no matches for kind "StatefulSet" in version "apps/v1beta2"
感谢Kubernetes 1.16应用程序/v1beta2 API版本。您需要改用apps/v1
已升级API版本的稳定/日志存储图表。请确保您使用的是2.3.0图表版本,并且它应该可以正常工作。例如:
helm repo update
helm install --name logstash stable/logstash --version=2.3.0 -f values.yaml
Kubernetes 1.16应用程序/v1beta2 API版本。您需要改用apps/v1
已升级API版本的稳定/日志存储图表。请确保您使用的是2.3.0图表版本,并且它应该可以正常工作。例如:
helm repo update
helm install --name logstash stable/logstash --version=2.3.0 -f values.yaml
当这些事情发生时,您可以始终使用kubectl exaplane命令来获得正确的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版本。当发生这些情况时,您可以始终使用kubectl exaplane命令来获取正确版本的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版本。如果发布helm模板,您会得到什么?没有错误?如果你发布头盔模板,你会得到什么?没有错误?