Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Regression introduced by NodePort PR #67

@ash211

Description

@ash211

Just debugged with @mccheah , and we found an issue with the NodePort implementation of the jar upload process (#30)

The code assumes that the port on all returned k8s nodes is accessible, but we found in testing with my kubeadm-created cluster that actually the k8s master does NOT forward the traffic to the pod behind the service. Only the non-master k8s nodes do.

Setup:

myhost-16 is an apiserver, and myhost-17/18/19 are non-masters but part of the k8s cluster. Cluster assembled using https://kubernetes.io/docs/getting-started-guides/kubeadm/

response returned from jetty (the KubernetesSparkRestApi):
curl -XGET http://myhost-17.mydomain:30827/v1/submissions/ping
curl -XGET http://myhost-18.mydomain:30827/v1/submissions/ping
curl -XGET http://myhost-19.mydomain:30827/v1/submissions/ping

request times out:
curl -XGET http://myhost-16.mydomain:30827/v1/submissions/ping

Proposed solution: fail over in the liveness pings from non-responsive nodes to other nodes. This fixes the problem with the master, and more generally also nodes failing out of the cluster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions