<p>I'm trying to setup example from <a href="https://cloud.google.com/container-engine/docs/tutorials/hello-wordpress" rel="nofollow">Running Wordpress with a Single Pod</a>.</p>

<ul>
<li>I've done <a href="https://cloud.google.com/container-engine/docs/before-you-begin" rel="nofollow">Before You Begin</a> section:</li>
</ul>

<p>$ gcloud config list</p>

<pre><code>[compute]
zone = europe-west1-c
[core]
account = user@email.com
disable_usage_reporting = False
project = com-project-default
</code></pre>

<ul>
<li><p>I've done the steps from the tutorial:</p>

<p>"Step 1: Create your cluster" <a href="http://pastebin.com/STBtnuxC" rel="nofollow">logs here</a></p>

<p>"Step 2: Create your pod" <a href="http://pastebin.com/4Gv0nJrF" rel="nofollow">logs here</a></p>

<p>"Step 3: Allow external traffic" <a href="http://pastebin.com/ugJ9gztX" rel="nofollow">logs here</a></p></li>
<li><p>More logs:</p>

<p>$kubectl get pods - <a href="http://pastebin.com/wNQ8T5Fp" rel="nofollow">log (toggle text wrapping)</a></p>

<p>$gcloud compute firewall-rules list - <a href="http://pastebin.com/ayGwRveq" rel="nofollow">log</a></p></li>
</ul>

<p>So, when I try to connect to <a href="http://104.155.7.213/" rel="nofollow">http://104.155.7.213/</a> I'm receiving "This web page is not available: <code>ERR_CONNECTION_REFUSED</code>".</p>

<p>I tried to add "<code>Allow HTTP traffic</code>" explicitly to the node in Compute Engine VMs dashboard and also I tried to use "<code>kubectl run</code>" instead of deprecated "<code>kubectl run-container</code>", but it doesn't help. Also sometimes I'm receiving "<code>last termination: exit code 2</code>" (<code>1</code> or <code>2</code>) in "<code>message</code>" column when run "<code>kubectl get pods</code>" (but not this time)`</p>

<p>Info:</p>

<p><a href="https://cloud.google.com/container-engine/release-notes" rel="nofollow">GKE from June 10, 2015</a></p>

<p>$ kubectl version</p>

<pre><code>Client Version: version.Info{Major:"0", Minor:"18", GitVersion:"v0.18.1", GitCommit:"befd1385e5af5f7516f75a27a2628272bb9e9f36", GitTreeState:"clean"}

Server Version: version.Info{Major:"0", Minor:"18", GitVersion:"v0.18.2", GitCommit:"1f12b893876ad6c41396222693e37061f6e80fe1", GitTreeState:"clean"}
</code></pre>

<p>$ gcloud version</p>

<pre><code>Google Cloud SDK 0.9.64
alpha 2015.06.02
bq 2.0.18
bq-nix 2.0.18
compute 2015.06.09
core 2015.06.09
core-nix 2015.06.02
dns 2015.06.02
gcloud 2015.06.09
gcutil-msg 2015.06.09
gsutil 4.13
gsutil-nix 4.12
kubectl 
kubectl-linux-x86_64 0.18.1
preview 2015.06.09
sql 2015.06.09
</code></pre>

<p>Thank you for your help in advance!</p>

<p>If you want to access the container directly using the node VM's IP address, you need to specify a host port in addition to a container port, e.g. 
<code>kubectl run-container wordpress --image=tutum/wordpress --port=80 --hostport=80</code></p>

<p>Alternatively, you can access wordpress via the proxy running on the master by running <code>kubectl proxy</code> and then pointing your web browser at <code>http://localhost:8001/api/v1beta3/proxy/namespaces/default/pods/wordpress-3gaq6</code>. </p>
