<p>A have this pod specification : </p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: wp
spec:
  containers:
  - image: wordpress:4.9-apache
    name: wordpress
    env:
      - name: WORDPRESS_DB_PASSWORD
        value: mysqlpwd
      - name: WORDPRESS_DB_HOST
        value: 127.0.0.1
  - image: mysql:5.7
    name: mysql
    env:
    - name: MYSQL_ROOT_PASSWORD
      value: mysqlpwd
    volumeMounts:
    - name: data
      mountPath: /var/lib/mysql
  volumes:
    - name: data
      emptyDir: {}
</code></pre>

<p>I deployed it using : </p>

<blockquote>
  <p>kubectl create -f wordpress-pod.yaml</p>
</blockquote>

<p>Now it is correctly deployed : </p>

<blockquote>
  <p>kubectl get pods 
  wp     2/2     Running   3          35h</p>
</blockquote>

<p>Then when i do : </p>

<blockquote>
  <p>kubectl describe po/wp</p>
</blockquote>

<pre><code>Name:         wp
Namespace:    default
Priority:     0
Node:         node3/192.168.50.12
Start Time:   Mon, 13 Jan 2020 23:27:16 +0100
Labels:       &lt;none&gt;
Annotations:  &lt;none&gt;
Status:       Running
IP:           10.233.92.7
IPs:
  IP:  10.233.92.7
Containers:
</code></pre>

<p>My issue is that i cannot access to the app :</p>

<pre><code>wget http://192.168.50.12:8080/wp-admin/install.php
Connecting to 192.168.50.12:8080... failed: Connection refused.
</code></pre>

<p>Neither wget <a href="http://10.233.92.7:8080/wp-admin/install.php" rel="nofollow noreferrer">http://10.233.92.7:8080/wp-admin/install.php</a> 
works </p>

<p>Is there any issue in the pod description or deployment process ? </p>

<p>Thanks </p>

user1361815
<p>With your current setup you need to use <code>wget http://10.233.92.7:8080/wp-admin/install.php</code> from within the cluster i.e by performing <code>kubectl exec</code> into another pod because <code>10.233.92.7</code> IP is valid only within the cluster.</p>

<p>You should create a <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">service</a> for exposing your pod. Create a cluster IP type service(default) for accessing from within the cluster. If you want to access from outside the cluster i.e from your desktop then create a NodePort or LoadBalancer type service.</p>

<p>Other way to access the application from your desktop will be <a href="https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/" rel="nofollow noreferrer">port forwarding</a>. In this case you don't need to create a service.</p>

<p>Here is a tutorial for <a href="https://kubernetes.io/docs/tasks/access-application-cluster/service-access-application-cluster/" rel="nofollow noreferrer">accessing pods using NodePort service</a>. In this case your node need to have public ip.</p>
