Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hostnet-split example won't deploy #940

Closed
stevesloka opened this issue Mar 14, 2019 · 2 comments
Closed

Hostnet-split example won't deploy #940

stevesloka opened this issue Mar 14, 2019 · 2 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone

Comments

@stevesloka
Copy link
Member

What steps did you take and what happened:
The example hostnet-split deployment doesn't have proper yaml for the envoy ports causing an error:

$ kubectl apply -f ds-hostnet-split/                                                                   
namespace/heptio-contour created
serviceaccount/contour created
customresourcedefinition.apiextensions.k8s.io/ingressroutes.contour.heptio.com created
customresourcedefinition.apiextensions.k8s.io/tlscertificatedelegations.contour.heptio.com created
clusterrolebinding.rbac.authorization.k8s.io/contour created
clusterrole.rbac.authorization.k8s.io/contour created
service/contour created
service/envoy created
daemonset.extensions/envoy created
Error from server (BadRequest): error when creating "ds-hostnet-split/03-contour.yaml": Deployment in version "v1" cannot be handled as a Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Args: []string: ReadString: expects " or n, but found 8, error found in #10 byte of ...|tp-port",80,"--envoy|..., bigger context ...|NTOUR_SERVICE_PORT)","--envoy-service-http-port",80,"--envoy-service-https-port",443],"command":["co|...

Environment:

  • Contour version: master
  • Kubernetes version: (use kubectl version): 1.13.4
  • Kubernetes installer & version:
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
@stevesloka stevesloka self-assigned this Mar 14, 2019
@davecheney davecheney added this to the 0.11.0 milestone Mar 14, 2019
@davecheney davecheney added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Mar 14, 2019
@davecheney
Copy link
Contributor

Thanks for raising this bug @stevesloka, I think the problem is ds-hostnet-split came after the other deployment examples so doesn't use many of shared files in common/

@shawnho1018
Copy link

shawnho1018 commented Apr 3, 2019

I encountered the same issue under deployment/contour/03-contour.yaml. Could anyone provide advice on how to resolve this issue?

hos-a01:contour hos$ kubectl create -f 03-contour.yaml
Error from server (BadRequest): error when creating "03-contour.yaml": Deployment in version "v1" cannot be handled as a Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Args: []string: ReadString: expects " or n, but found 8, error found in #10 byte of ...|tp-port",80,"--envoy|..., bigger context ...|NTOUR_SERVICE_PORT) - --envoy-service-http-port",80,"--envoy-service-https-port",443],"command":["co|...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

3 participants