我已经开发了javaflink代码,我想将其部署为docker映像,并将其作为jobmanager和taskmanageryamls进行测试,以运行应用程序。但我面临的问题,使服务和运行。我已经按照这些步骤在kubernates中部署了代码。
得到下面的错误,
c:\deployment\flink>kubectl apply-f flink-jobmanager.yaml作业“flink on kubernetes jobmanager”无效:spec.template:无效值:core.podtemplatespec{objectmeta:v1.objectmeta{name:,generatename:,namespace:,selflink:,uid:,resourceversion:,generation:0,创建timestamp:v1.time{time:time.time{wall:0x0, ext:0,loc:(*time.location)(nil)}},deletiontimestamp:(*v1.time)(nil),deletiongraceperiodseconds:(*int64)(nil),labels:map[string]string{“job name”:“flink on kubernetes jobmanager”,“app”:“flink”,“controller uid”:“bb738bd8-1729-11ea-8e51-7acc0f0eb42c”,“instance”:“flink on kubernetes jobmanager”},一个notations:map[string]字符串(nil),ownerreference:[]v1.ownerreference(nil),初始值设定项:(*v1.initializers)(nil),终结器:[]字符串(nil),clustername:“},spec:core.podspec{volumes:[]core.volume(nil),initcontainers:[]core.container(nil),containers:[]core.container{core.container{name:“jobmanager”,image:“flink-on-k”ubernetes:0.0.1",命令:[]string{“/opt/flink/bin/standalone job.sh”},参数:[]string{“start foreground”,“-djobmanager.rpc.address=flink on kubernetes jobmanager”,“-dparallelism.default=1”,“-dblob.server.port=6124”,“-dqueryable state.server.ports=6125”},workingdir:”,端口:[]core.containerport{core.containerport{name:“,hostport:0,续ainerport:6123,协议:“tcp”,hostip:“},core.containerport{name:”blob“,hostport:0,续ainerport:6124,协议:“tcp”,主机IP:“},core.containerport{name:”查询“,hostport:0,续ainerport:6125,协议:“tcp”,主机IP:“},core.containerport{name:”ui“,hostport:0,续ainerport:8081,协议:“tcp”,主机IP:“}}},envfrom:[]core.envfromsource(nil),env:[]core.envvar(nil),resources:core.resourcerequirements{limits:core.resourcelist(无),requests:core.resourcelist(nil)},volumemounts:[]core.volumemount(nil),volumedevices:[]core.volumedevice(nil),livenssprobe:(*core.probe)(nil),readinessprobe:(*core.probe)(nil),lifecycle:(*core.lifecycle)(nil),terminationmessagepath:“/dev/termination log”,terminationmessagepolicy:“file”,imagepullpolicy:“always”,securitycontext:(*core.securitycontext)(nil),stdin:false, stdinonce:false, tty:false}},restartpolicy:“onfailure”,terminationgraceperiodseconds:(*int64)(0xc00ba42298),activedeadlineseconds:(*int64)(nil),dnspolicy:“clusterfirst”,点头eselector:map[string]string(nil),serviceaccountname:“”,automountserviceaccounttoken:(*bool)(nil),nodename:“”,securitycontext:(*core.podsecuritycontext)(0xc005751650),imagepullsecrets:[]core.localobjectreference(nil),主机名:“”,子域:“”,affinity:(*core.affinity)(nil),schedulername:“默认计划程序”,容忍度:[]core.toleration(nil),主机别名:[]core.hostalias(nil),priorityclassname:,优先级:(*int32)(nil),dnsconfig:(*core.poddnsconfig)(nil),readinessgates:[]core.podreadinessgate(nil),runtimeclassname:(*string)(nil),enableservicelinks:(*bool)(nil)}}:字段不可更改
暂无答案!
目前还没有任何答案,快来回答吧!