vmware-archive / photon-controller

Photon Controller
Other
26 stars 4 forks source link

Cannot setup kubernetes environment with the error 'Spec invalid:No service configuration exists for KUBERNETES service' #132

Open sunyingji opened 7 years ago

sunyingji commented 7 years ago

Buddies,

I tried to setup k8s environment with the command below. photon-darwin64-1.2-dd9d360 service create -n kube-socrates -k KUBERNETES --master-ip 10.160.208.227 --load-balancer-ip 10.160.208.228 --etcd1 10.160.208.229 --container-network 10.2.0.0/16 --dns 10.162.204.1 --gateway 10.160.223.253 --netmask 255.255.0.0 -c 1 --vm_flavor cluster-small

I got this error: Error: photon: Task '6eb8d633-4309-412f-9565-77ba98ca6339' is in error state: {@step=={"sequence"=>"0","state"=>"ERROR","errors"=>[photon: { HTTP status: '0', code: 'SpecInvalid', message: 'Spec invalid:No service configuration exists for KUBERNETES service', data: 'map[message:No service configuration exists for KUBERNETES service]' }],"warnings"=>[],"operation"=>"CREATE_KUBERNETES_SERVICE_INITIATE","startedTime"=>"1497509089015","queuedTime"=>"1497509088995","endTime"=>"1497509089024","options"=>map[]}} API Errors: [photon: { HTTP status: '0', code: 'SpecInvalid', message: 'Spec invalid:No service configuration exists for KUBERNETES service', data: 'map[message:No service configuration exists for KUBERNETES service]' }]

How to set the specification for KUBERNETES ?

I setup the photon platform with the installer-ova-nv-1.2-dd9d360.ova.

Many thanks. :)

mwest44 commented 7 years ago

Did you enable cluster type for the Kubernetes image you uploaded?