<p dir="auto">I have the following use case:</p>
<p dir="auto">I need to route from non-kubernetes servers to Kubernetes ClusterIPs. I already have the routes set up properly to FORWARD to pod IP addresses, and this works perfectly (I can access pod IP addresses from outside the cluster). But nothing I've tried seems to get the service routing to work properly.</p>
<p dir="auto">How can I set this up properly? Is this something that potentially should be included in Kubernetes?</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p>

<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
Client Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.0", GitCommit:"ec7364b6e3b155e78086018aa644057edbe196e5", GitTreeState:"clean"}<br>
Server Version: version.Info{Major:"1", Minor:"2", GitVersion:"v1.2.0", GitCommit:"ec7364b6e3b155e78086018aa644057edbe196e5", GitTreeState:"clean"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: vmware</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): CentOS Linux release 7.2.1511 (Core)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux localhost.localdomain 3.10.0-327.28.3.el7.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Thu Aug 18 19:05:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>:manually</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
when run command kubectl create -f kubernetes-dashboard.yaml, error message from<br>
/var/log/messages<br>
Error while initializing connection to Kubernetes apiserver. This most likely means that the cluster is misconfigured (e.g., it has invalid apiserver certificates or service accounts configuration) or the --apiserver-host param points to a server that does not exist. Reason: the server has asked for the client to provide credentials</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
I edit kubernetes-dashboard.yaml  and added something<br>
kind: Deployment<br>
apiVersion: extensions/v1beta1<br>
metadata:<br>
labels:<br>
app: kubernetes-dashboard<br>
name: kubernetes-dashboard<br>
namespace: kube-system<br>
spec:<br>
replicas: 1<br>
selector:<br>
matchLabels:<br>
app: kubernetes-dashboard<br>
template:<br>
metadata:<br>
labels:<br>
app: kubernetes-dashboard<br>
spec:<br>
containers:<br>
- name: kubernetes-dashboard<br>
image: 192.168.100.20:5000/kubernetes-dashboard-amd64<br>
imagePullPolicy: Always<br>
ports:<br>
- containerPort: 9090<br>
protocol: TCP<br>
args:<br>
# Uncomment the following line to manually specify Kubernetes API server Host<br>
# If not specified, Dashboard will attempt to auto discover the API server and connect<br>
# to it. Uncomment only if the default does not work.<br>
- --apiserver-host=<a href="https://192.168.6.22:6443" rel="nofollow">https://192.168.6.22:6443</a><br>
livenessProbe:<br>
httpGet:<br>
path: /<br>
port: 9090<br>
initialDelaySeconds: 30<br>
timeoutSeconds: 30<br>
volumeMounts:<br>
- mountPath: /etc/kubernetes/pki<br>
name: ssl-certs-kubernetes<br>
readOnly: true<br>
- mountPath: /etc/pki<br>
name: ssl-certs-host<br>
readOnly: true<br>
volumes:<br>
- hostPath:<br>
path: /etc/kubernetes/pki<br>
name: ssl-certs-kubernetes<br>
- hostPath:<br>
path: /etc/pki</p>
<h2 dir="auto">name: ssl-certs-host</h2>
<p dir="auto">kind: Service<br>
apiVersion: v1<br>
metadata:<br>
labels:<br>
app: kubernetes-dashboard<br>
name: kubernetes-dashboard<br>
namespace: kube-system<br>
spec:<br>
type: NodePort<br>
ports:</p>
<ul dir="auto">
<li>port: 80<br>
targetPort: 9090<br>
selector:<br>
app: kubernetes-dashboard</li>
</ul>
<p dir="auto">when i comment  "- --apiserver-host=<a href="https://192.168.6.22:6443%22,another" rel="nofollow">https://192.168.6.22:6443",another</a> error "certificate is valid for 192.168.6.22, not 10.254.0.1"</p>