k8s CustomResourceDefinition invalid 错误 - 王清培
source link: https://www.cnblogs.com/wangiqngpei557/p/16272385.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
k8s CustomResourceDefinition invalid 错误
安装 CRD 出现这个错误,多数是版本问题,缺少openAPIV3Schema段定义。
The CustomResourceDefinition "crontabs.stable.example.com" is invalid:
* spec.versions[0].schema.openAPIV3Schema: Required value: schemas are required
* spec.versions[1].schema.openAPIV3Schema: Required value: schemas are required
参考如下模板:
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: eventbus.argoproj.io
spec:
group: argoproj.io
names:
kind: EventBus
listKind: EventBusList
plural: eventbus
shortNames:
- eb
singular: eventbus
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
type: object
x-kubernetes-preserve-unknown-fields: true
status:
type: object
x-kubernetes-preserve-unknown-fields: true
required:
- metadata
- spec
type: object
served: true
storage: true
subresources:
status: {}
原文issure:
https://github.com/argoproj/argo-helm/issues/599
https://github.com/argoproj/argo-events/blob/master/manifests/install.yaml#L1-L119
Recommend
-
91
Redis数据结构与内存管理策略(下)标签:RedisRedis数据结构Redis内存管理策略Redis数据类型Redis类型映射Redis数据类型特点与使用场景String、List、Hash、Set、Zset案例:沪江团购系统大促hot-top接口cache设计Redis内存数据结构与编码OBJECTencodingkey、DEBUG...
-
45
-
38
微服务架构—自动化测试全链路设计标签:microServicesautoTestmockunitTesttestTrace背景被忽视的软件工程环节-DEVTESTOPS微服务架构下测试复杂度和效率问题开发阶段unitTestmock外部依赖连调阶段mock外部依赖自动化测试阶段mock需求autoTestMockGateway浮出水面轻...
-
31
-
46
-
46
-
10
"pip install" 引发错误 SyntaxError: invalid syntax 2017.12.28 |
-
5
mkfs 报invalid block count错误在rh 5u7 上用mkfs 创建文件系统,命令$ mkfs -q -t ext3 -L disk0 /dev/sdb1 居然报错:……invalid blocks count…… 仔细阅读man mkfs
-
9
kubeadm init cannot find network namespace 错误 ...
-
11
How to fix Invalid Setting: Gyro_Hardware_LPF: Invalid Setting Error in INAV 这种问题是配置问题,并非硬件故障。
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK