title: Can't connect elasticsearch and kibana on kubernetes single mode
body: <p>I try to run elasticsearch and kibana on kubernetes. I ran:</p>
  
  <pre><code>kubectl run elasticsearch --image=elasticsearch:6.6.1 --env="discovery.type=single-node" --port=9200 --port=9300
  kubectl run kibana --image=kibana:6.6.1 --port=5601
  </code></pre>
  
  <p>then I ran <code>$kubectl proxy</code>, </p>
  
  <pre><code>http://localhost:$IP_FROM_KUBECTL_PROXY(usually 8081)/api/v1/namespaces/default/pods/$POD_NAME/proxy/
  </code></pre>
  
  <p>When I entered to elasticsearch pod, everything looks fine, but when I entered to kibana, the app didn't work (I see "Kibana server is not ready yet" for infinity).</p>
  
  <p>The logs of kibana are the following:</p>
  
  <pre><code>{"type":"log","@timestamp":"2019-03-02T10:38:47Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"No living connections"}
  {"type":"log","@timestamp":"2019-03-02T10:38:49Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: http://elasticsearch:9200/"}
  </code></pre>
  
  <p>This is kibana.yml on kibana pod:</p>
  
  <h1>Default Kibana configuration from kibana-docker.</h1>
  
  <pre><code>server.name: kibana
  server.host: "0"
  elasticsearch.url: http://elasticsearch:9200
  xpack.monitoring.ui.container.elasticsearch.enabled: true
  </code></pre>
  
  <p>I'm pretty new with Kubernetes, and I can't figure out why they can't talk one to another. </p>