由于不支持版本"extensions/v1beta1",因此无法使用kubectl部署Ditto和MongoDB. [英] Deployment of Ditto and MongoDB using kubectl fails because of unsupported version "extensions/v1beta1"

查看:150
本文介绍了由于不支持版本"extensions/v1beta1",因此无法使用kubectl部署Ditto和MongoDB.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试按照README.txt项目中的说明使用kubernetes/minikube启动Ditto.在部署mongoDB和更高版本的Ditto服务时,使用命令

I try to start Ditto using kubernetes/minikube by following the instructions in the projects README.txt. While deploying mongoDB and later the Ditto services with the command

kubectl apply -f deployment/kubernetes/mongodb/mongodb.yaml

我收到以下错误消息:

error: unable to recognize "deployment/kubernetes/mongodb/mongodb.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"

我认为我必须将版本更改为"api/v1",但是这样做会导致下一个错误:

I think I have to change the version to "api/v1", but doing this causes the next error:

error: error validating "deployment/kubernetes/mongodb/mongodb.yaml": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with --validate=false

我使用以下版本:

Ditto:版本1.5

Ditto: release-1.5

minikube版本:v1.14.1

minikube version: v1.14.1

kubectl客户端版本:主要:"1",次要:"19",GitVersion:"v1.19.2"

kubectl client version: Major:"1", Minor:"19", GitVersion:"v1.19.2

kubectl服务器版本:主要:"1",次要:"19",GitVersion:"v1.19.2"

kubectl server version: Major:"1", Minor:"19", GitVersion:"v1.19.2"

有人知道我如何解决此问题.我不知道必须添加哪些字段和哪些值才能使.yaml文件按预期工作.

Does anybody knwo how I can fix this problem. I don't know which fields and which values I have to add to make the .yaml files working as expected.

非常感谢您.

推荐答案

您可以在此处查看此PR中的文件:

You can take a look at the files in this PR here: https://github.com/bosch-io/ditto/tree/deployment/k3s/deployment/kubernetes/deploymentFiles

部署文件已更新,现在使用apiVersion:apps/v1.

The deployment files are updated and now use apiVersion: apps/v1.

这篇关于由于不支持版本"extensions/v1beta1",因此无法使用kubectl部署Ditto和MongoDB.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆