Re: [openstack-dev] [magnum] after create cluster for kubernetes, kubect create command was failed.
Hello, Spyros/ Thank you for your reply. I executed "kubectl create" command in my openstack controller node. I downloaded kubectl binary, it's version is 2.5.1. Below are my steps. 1) install openstack newton by fuel 10.0 2) install magnum by source (master branch) in controller node 3) install magnum-client by source in controller node 4) execute magnum cluster-template-create for kubernetes 5) execute magnum cluster-create with kubernetes-cluster-template 6) download kubectl and connect my kubernetes cluster 7) execute kubectl get nodes, get pods => is normal 7) finally, kubectl create -f nginx.yaml But 7th step was failed. Best regards. 2017-05-17 20:58 GMT+09:00 Spyros Trigazis: > > > On 17 May 2017 at 06:25, KiYoun Sung wrote: > >> Hello, >> Magnum team. >> >> I Installed Openstack newton and magnum. >> I installed Magnum by source(master branch). >> >> I have two questions. >> >> 1. >> After installation, >> I created kubernetes cluster and it's CREATE_COMPLETE, >> and I want to create kubernetes pod. >> >> My create script is below. >> -- >> apiVersion: v1 >> kind: Pod >> metadata: >> name: nginx >> labels: >> app: nginx >> spec: >> containers: >> - name: nginx >> image: nginx >> ports: >> - containerPort: 80 >> -- >> >> I tried "kubectl create -f nginx.yaml" >> But, error has occured. >> >> Error message is below. >> error validating "pod-nginx-with-label.yaml": error validating data: >> unexpected type: object; if you choose to ignore these errors, turn >> validation off with --validate=false >> >> Why did this error occur? >> > > This is not related to magnum, it is related to your client. From where do > you execute the > kubectl create command? You computer? Some vm with a distributed file > system? > > >> >> 2. >> I want to access this kubernetes cluster service(like nginx) above the >> Openstack magnum environment from outside world. >> >> I refer to this guide(https://docs.openstack.o >> rg/developer/magnum/dev/kubernetes-load-balancer.html#how-it-works), but >> it didn't work. >> >> Openstack: newton >> Magnum: 4.1.1 (master branch) >> >> How can I do? >> Do I must install Lbaasv2? >> > > You need lbaas V2 with octavia preferably. Not sure what is the > recommended way to install. > > >> >> Thank you. >> Best regards. >> > > Cheers, > Spyros > > >> >> >> >> >> >> >> >> >> >> >> >> __ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscrib >> e >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [magnum] after create cluster for kubernetes, kubect create command was failed.
On 17 May 2017 at 13:58, Spyros Trigaziswrote: > > > On 17 May 2017 at 06:25, KiYoun Sung wrote: > >> Hello, >> Magnum team. >> >> I Installed Openstack newton and magnum. >> I installed Magnum by source(master branch). >> >> I have two questions. >> >> 1. >> After installation, >> I created kubernetes cluster and it's CREATE_COMPLETE, >> and I want to create kubernetes pod. >> >> My create script is below. >> -- >> apiVersion: v1 >> kind: Pod >> metadata: >> name: nginx >> labels: >> app: nginx >> spec: >> containers: >> - name: nginx >> image: nginx >> ports: >> - containerPort: 80 >> -- >> >> I tried "kubectl create -f nginx.yaml" >> But, error has occured. >> >> Error message is below. >> error validating "pod-nginx-with-label.yaml": error validating data: >> unexpected type: object; if you choose to ignore these errors, turn >> validation off with --validate=false >> >> Why did this error occur? >> > > This is not related to magnum, it is related to your client. From where do > you execute the > kubectl create command? You computer? Some vm with a distributed file > system? > > >> >> 2. >> I want to access this kubernetes cluster service(like nginx) above the >> Openstack magnum environment from outside world. >> >> I refer to this guide(https://docs.openstack.o >> rg/developer/magnum/dev/kubernetes-load-balancer.html#how-it-works), but >> it didn't work. >> >> Openstack: newton >> Magnum: 4.1.1 (master branch) >> >> How can I do? >> Do I must install Lbaasv2? >> > > You need lbaas V2 with octavia preferably. Not sure what is the > recommended way to install. > Have a look here: https://docs.openstack.org/draft/networking-guide/config-lbaas.html Cheers, Spyros > > >> >> Thank you. >> Best regards. >> > > Cheers, > Spyros > > >> >> >> >> >> >> >> >> >> >> >> >> __ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscrib >> e >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Re: [openstack-dev] [magnum] after create cluster for kubernetes, kubect create command was failed.
On 17 May 2017 at 06:25, KiYoun Sungwrote: > Hello, > Magnum team. > > I Installed Openstack newton and magnum. > I installed Magnum by source(master branch). > > I have two questions. > > 1. > After installation, > I created kubernetes cluster and it's CREATE_COMPLETE, > and I want to create kubernetes pod. > > My create script is below. > -- > apiVersion: v1 > kind: Pod > metadata: > name: nginx > labels: > app: nginx > spec: > containers: > - name: nginx > image: nginx > ports: > - containerPort: 80 > -- > > I tried "kubectl create -f nginx.yaml" > But, error has occured. > > Error message is below. > error validating "pod-nginx-with-label.yaml": error validating data: > unexpected type: object; if you choose to ignore these errors, turn > validation off with --validate=false > > Why did this error occur? > This is not related to magnum, it is related to your client. From where do you execute the kubectl create command? You computer? Some vm with a distributed file system? > > 2. > I want to access this kubernetes cluster service(like nginx) above the > Openstack magnum environment from outside world. > > I refer to this guide(https://docs.openstack.org/developer/magnum/dev/ > kubernetes-load-balancer.html#how-it-works), but it didn't work. > > Openstack: newton > Magnum: 4.1.1 (master branch) > > How can I do? > Do I must install Lbaasv2? > You need lbaas V2 with octavia preferably. Not sure what is the recommended way to install. > > Thank you. > Best regards. > Cheers, Spyros > > > > > > > > > > > __ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
[openstack-dev] [magnum] after create cluster for kubernetes, kubect create command was failed.
Hello, Magnum team. I Installed Openstack newton and magnum. I installed Magnum by source(master branch). I have two questions. 1. After installation, I created kubernetes cluster and it's CREATE_COMPLETE, and I want to create kubernetes pod. My create script is below. -- apiVersion: v1 kind: Pod metadata: name: nginx labels: app: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80 -- I tried "kubectl create -f nginx.yaml" But, error has occured. Error message is below. error validating "pod-nginx-with-label.yaml": error validating data: unexpected type: object; if you choose to ignore these errors, turn validation off with --validate=false Why did this error occur? 2. I want to access this kubernetes cluster service(like nginx) above the Openstack magnum environment from outside world. I refer to this guide( https://docs.openstack.org/developer/magnum/dev/kubernetes-load-balancer.html#how-it-works), but it didn't work. Openstack: newton Magnum: 4.1.1 (master branch) How can I do? Do I must install Lbaasv2? Thank you. Best regards. __ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev