kubernetes - Kubeflow Mnist 示例 - 无法识别“STDIN”:版本“kubeflow.org/v1beta2”中的种类“TFJob”没有匹配项
问题描述
在此处遵循 kubeflow mnist 示例指南
运行时,kustomize build . | kubectl apply -f -
configmap/mnist-map-training-45h47275m7 unchanged
error: unable to recognize "STDIN": no matches for kind "TFJob" in version "kubeflow.org/v1beta2"
我一直在阅读 github repo上的几个线程,但找不到解决方案。寻找任何关于我能做什么的建议
大多数线程似乎都可以通过更改为我正在使用的 kustomize 版本 2.03 来解决
Version: {KustomizeVersion:2.0.3 GitCommit:a6f65144121d1955266b0cd836ce954c04122dc8 BuildDate:2019-03-05T20:37:42Z GoOs:linux GoArch:amd64}
我跑了kubectl describe crd tfjobs.kubeflow.org
,这就是返回的
Name: tfjobs.kubeflow.org
Namespace:
Labels: app.kubernetes.io/component=tfjob
app.kubernetes.io/instance=tf-job-crds-v0.7.0
app.kubernetes.io/managed-by=kfctl
app.kubernetes.io/name=tf-job-crds
app.kubernetes.io/part-of=kubeflow
app.kubernetes.io/version=v0.7.0
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"apiextensions.k8s.io/v1beta1","kind":"CustomResourceDefinition","metadata":{"annotations":{},"labels":{"app.kubernetes.io/c...
API Version: apiextensions.k8s.io/v1beta1
Kind: CustomResourceDefinition
Metadata:
Creation Timestamp: 2019-10-29T23:53:03Z
Generation: 1
Resource Version: 2620
Self Link: /apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/tfjobs.kubeflow.org
UID: 3eb96b55-faa7-11e9-9ab9-42010a840fdc
Spec:
Additional Printer Columns:
JSON Path: .status.conditions[-1:].type
Name: State
Type: string
JSON Path: .metadata.creationTimestamp
Name: Age
Type: date
Conversion:
Strategy: None
Group: kubeflow.org
Names:
Kind: TFJob
List Kind: TFJobList
Plural: tfjobs
Singular: tfjob
Scope: Namespaced
Subresources:
Status:
Validation:
openAPIV3Schema:
Properties:
Spec:
Properties:
Tf Replica Specs:
Properties:
Chief:
Properties:
Replicas:
Maximum: 1
Minimum: 1
Type: integer
PS:
Properties:
Replicas:
Minimum: 1
Type: integer
Worker:
Properties:
Replicas:
Minimum: 1
Type: integer
Version: v1
Versions:
Name: v1
Served: true
Storage: true
Status:
Accepted Names:
Kind: TFJob
List Kind: TFJobList
Plural: tfjobs
Singular: tfjob
Conditions:
Last Transition Time: 2019-10-29T23:53:03Z
Message: no conflicts found
Reason: NoConflicts
Status: True
Type: NamesAccepted
Last Transition Time: <nil>
Message: the initial names have been accepted
Reason: InitialNamesAccepted
Status: True
Type: Established
Stored Versions:
v1
Events: <none>
解决方案
如TFJob 文档中所述,因为 kubeflow v0.7apiVersion
是 kubeflow.org/v1
要修复给定的错误运行kubectl edit tfjob
,请点击i
或Insert
键并更改apiVersion:
为 kubeflow.org/v1
. 然后点击ESC
:wq
退出编辑,TFJob 对象将被更改。
推荐阅读
- php - HTML2PDF 如何将 id 传递给要转换的 html 站点
- android - 仅在验证电子邮件后才可以登录(使用 Firebase)
- amazon-web-services - 用于创建启动模板的 Lambda 函数
- documentation - 使用 docusaurus 拆分视图
- c# - 需要将我的 MVC4 Web 应用程序与 Microsoft Graph SDK 集成?
- sql - SQL Server 中带有 IN 和输入变量的 SELECT 语句
- node.js - 如何将填充的 ObjectId 与字符串混合
- python - 如何获得具有连续日期时间行的扩展数据框?
- r - How to calculate a ratio for each month in a year and attach 12 ratio columns (will be 12 columns) to the origianl dataset in R?
- python-3.x - 在 Matplotlib 的 X 轴上间隔日期