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

Baremetal setup not working at all #780

Closed
sokoow opened this issue Dec 27, 2017 · 7 comments

Comments

Projects
None yet
2 participants
@sokoow
Copy link

commented Dec 27, 2017

Hi All,

I've just followed your tutorial: https://github.com/appscode/voyager/blob/5.0.0-rc.8/docs/guides/ingress/http/single-service.md and created a single service that points out to two pods, and pointed the example ingress at it. Now, I'd expect that at some stage I'd see a haproxy pod being deployed, but .... nothing like that happens. I can't find haproxy anywhere. Am I missing sometihng ?

Here's my voyager operator pod log:

kubectl logs voyager-operator-85d4cfb478-tc4c9 -n kube-system
I1227 10:15:47.328363       1 logs.go:19] FLAG: --address=":56790"
I1227 10:15:47.328748       1 logs.go:19] FLAG: --alsologtostderr="false"
I1227 10:15:47.328759       1 logs.go:19] FLAG: --analytics="true"
I1227 10:15:47.328769       1 logs.go:19] FLAG: --burst="1000000"
I1227 10:15:47.328776       1 logs.go:19] FLAG: --cloud-config=""
I1227 10:15:47.328784       1 logs.go:19] FLAG: --cloud-provider=""
I1227 10:15:47.328795       1 logs.go:19] FLAG: --custom-templates=""
I1227 10:15:47.328803       1 logs.go:19] FLAG: --exporter-sidecar-image="appscode/voyager:5.0.0-rc.8"
I1227 10:15:47.328811       1 logs.go:19] FLAG: --haproxy-image="appscode/haproxy:1.7.9-5.0.0-rc.8"
I1227 10:15:47.328822       1 logs.go:19] FLAG: --haproxy.server-metric-fields="2,3,4,5,6,7,8,9,13,14,15,16,17,18,21,24,33,35,38,39,40,41,42,43,44"
I1227 10:15:47.328833       1 logs.go:19] FLAG: --haproxy.timeout="5s"
I1227 10:15:47.328843       1 logs.go:19] FLAG: --help="false"
I1227 10:15:47.328850       1 logs.go:19] FLAG: --ingress-class=""
I1227 10:15:47.328858       1 logs.go:19] FLAG: --kubeconfig=""
I1227 10:15:47.328874       1 logs.go:19] FLAG: --log.format="\"logger:stderr\""
I1227 10:15:47.328884       1 logs.go:19] FLAG: --log.level="\"info\""
I1227 10:15:47.328898       1 logs.go:19] FLAG: --log_backtrace_at=":0"
I1227 10:15:47.328906       1 logs.go:19] FLAG: --log_dir=""
I1227 10:15:47.328919       1 logs.go:19] FLAG: --logtostderr="true"
I1227 10:15:47.328926       1 logs.go:19] FLAG: --master=""
I1227 10:15:47.328940       1 logs.go:19] FLAG: --operator-service="voyager-operator"
I1227 10:15:47.328951       1 logs.go:19] FLAG: --qps="1e+06"
I1227 10:15:47.328964       1 logs.go:19] FLAG: --rbac="true"
I1227 10:15:47.328969       1 logs.go:19] FLAG: --restrict-to-operator-namespace="false"
I1227 10:15:47.328975       1 logs.go:19] FLAG: --resync-period="5m0s"
I1227 10:15:47.328989       1 logs.go:19] FLAG: --stderrthreshold="2"
I1227 10:15:47.328995       1 logs.go:19] FLAG: --v="3"
I1227 10:15:47.329002       1 logs.go:19] FLAG: --vmodule=""
W1227 10:15:47.572174       1 client_config.go:529] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
I1227 10:15:47.572962       1 run.go:121] Starting Voyager operator...
I1227 10:15:47.573032       1 operator.go:55] Ensuring CRD registration
I1227 10:15:50.626361       1 run.go:153] URL pattern: /:apiGroup/v1beta1/namespaces/:namespace/ingresses/:name/metrics
I1227 10:15:50.626389       1 run.go:157] Listening on :56790
I1227 10:15:50.654634       1 servicemonitors.go:21] Skipping watching non-preferred GroupVersion:monitoring.coreos.com/v1 Kind:ServiceMonitor
I1227 10:15:50.654996       1 reflector.go:202] Starting reflector *v1beta1.Certificate (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655035       1 reflector.go:240] Listing and watching *v1beta1.Certificate from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655041       1 reflector.go:202] Starting reflector *v1.Service (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655055       1 reflector.go:240] Listing and watching *v1.Service from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655048       1 reflector.go:202] Starting reflector *v1.Secret (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655165       1 reflector.go:240] Listing and watching *v1.Secret from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655212       1 reflector.go:202] Starting reflector *v1.Endpoints (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655230       1 reflector.go:240] Listing and watching *v1.Endpoints from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655402       1 reflector.go:202] Starting reflector *v1.ConfigMap (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655424       1 reflector.go:240] Listing and watching *v1.ConfigMap from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655516       1 reflector.go:202] Starting reflector *v1beta1.DaemonSet (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655549       1 reflector.go:240] Listing and watching *v1beta1.DaemonSet from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655626       1 reflector.go:202] Starting reflector *v1beta1.Ingress (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655644       1 reflector.go:240] Listing and watching *v1beta1.Ingress from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655721       1 reflector.go:202] Starting reflector *v1.Namespace (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655744       1 reflector.go:240] Listing and watching *v1.Namespace from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655905       1 reflector.go:202] Starting reflector *v1beta1.Deployment (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655925       1 reflector.go:240] Listing and watching *v1beta1.Deployment from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655979       1 reflector.go:202] Starting reflector *v1.Node (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655983       1 reflector.go:202] Starting reflector *v1beta1.Ingress (5m0s) from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655993       1 reflector.go:240] Listing and watching *v1.Node from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.655998       1 reflector.go:240] Listing and watching *v1beta1.Ingress from github.com/appscode/voyager/pkg/operator/operator.go:84
I1227 10:15:50.668327       1 services.go:38] [27b040e9-fbe3-471d-8d14-355f865250bf] Service datadog@default added
I1227 10:15:50.684562       1 services.go:38] [1164bcd1-5ffb-408c-999a-e8c15df0fa5b] Service deployment-svc@default added
I1227 10:15:50.692330       1 services.go:38] [329d595e-7f86-41d2-8d59-dac83803d570] Service kubernetes@default added
I1227 10:15:50.701235       1 services.go:38] [78d9bb0c-d881-4d1b-9b9f-963458f08c28] Service nginx@default added
I1227 10:15:50.707948       1 services.go:38] [2042b2ec-1dfc-467b-b031-b8f3d7e08124] Service nginx-nodeport@default added
I1227 10:15:50.714869       1 services.go:38] [04deff73-47a6-4d0c-83dc-8561e4f36afc] Service nginx2@default added
I1227 10:15:50.723454       1 services.go:38] [a1257d58-2994-4ccc-b249-1475a25476c5] Service heapster@kube-system added
I1227 10:15:50.732595       1 services.go:38] [2b0bf810-472c-4084-89ed-a2a4cc9fc912] Service kube-dns@kube-system added
I1227 10:15:50.738998       1 services.go:38] [f47efb62-5eac-45a2-834e-d8c79ef704ac] Service kube-state-metrics@kube-system added
I1227 10:15:50.746700       1 services.go:38] [61ec535c-8fbb-4aff-b973-f8f2007cdb2b] Service kubernetes-dashboard@kube-system added
I1227 10:15:50.753037       1 services.go:38] [85748dff-0ba2-4d53-8bc8-96a649af2581] Service voyager-operator@kube-system added
I1227 10:21:09.097982       1 ingress_crds.go:42] [281630a9-716d-4416-aece-c9a91a2ee21e] voyager.appscode.com/v1beta1 test-ing@default added
I1227 10:24:43.434581       1 ingress_crds.go:110] [39241995-8872-43b9-b50c-44517f4e6750] voyager.appscode.com/v1beta1 test-ing@default deleted
I1227 10:24:43.446397       1 loadbalancer.go:692] 39241995-8872-43b9-b50c-44517f4e6750 replicationcontrollers "voyager-test-ing" not found
I1227 10:24:43.449140       1 loadbalancer.go:365] 39241995-8872-43b9-b50c-44517f4e6750 deployments.apps "voyager-test-ing" not found
I1227 10:24:43.449171       1 delete.go:11] [39241995-8872-43b9-b50c-44517f4e6750] Deleting ConfigMap default/voyager-test-ing
I1227 10:24:43.451835       1 rbac.go:110] [39241995-8872-43b9-b50c-44517f4e6750] Deleting RoleBinding default/voyager-test-ing
I1227 10:24:43.454454       1 rbac.go:117] [39241995-8872-43b9-b50c-44517f4e6750] Deleting Role default/voyager-test-ing
I1227 10:24:43.457021       1 rbac.go:124] [39241995-8872-43b9-b50c-44517f4e6750] Deleting ServiceAccount default/voyager-test-ing
I1227 10:24:43.461461       1 delete.go:38] [39241995-8872-43b9-b50c-44517f4e6750] Deleting Service default/voyager-test-ing
I1227 10:27:49.194275       1 ingress_crds.go:42] [c4f6e468-0277-4f5d-9df9-3db95977e539] voyager.appscode.com/v1beta1 test-ing@default added
@tamalsaha

This comment has been minimized.

Copy link
Member

commented Dec 27, 2017

It seems that you don't have the backend service test-service that the Ingress yaml is referring to in https://github.com/appscode/voyager/blob/5.0.0-rc.8/docs/guides/ingress/http/single-service.md .

Create a service with that name or modify the Ingress yaml to point to an existing service. That should start the HAProxy pods.

@sokoow

This comment has been minimized.

Copy link
Author

commented Dec 27, 2017

Nope, changed that and still can't see haproxy pods being created.

@sokoow

This comment has been minimized.

Copy link
Author

commented Dec 27, 2017

Well, even is I run your weighted-backend example, that doesn't create me haproxy pods.

@tamalsaha

This comment has been minimized.

Copy link
Member

commented Dec 27, 2017

@tamalsaha

This comment has been minimized.

Copy link
Member

commented Dec 27, 2017

Please make the changes for baremetal when installing.

Also, the other reason, you don't see the HAProxy pods is that you are using LoadBalancer type ingress which does not work in bare metal cluster. You have to use NodePort or HostPort type. This is done using ingress.appscode.com/type annotation https://github.com/appscode/voyager/blob/5.0.0-rc.8/docs/guides/ingress/configuration/annotations.md

@sokoow

This comment has been minimized.

Copy link
Author

commented Dec 27, 2017

yay! :D that's exactly working as I wanted now :) big thanks and please update your docs

@tamalsaha

This comment has been minimized.

Copy link
Member

commented Dec 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.