<p>I have a cluster in aws and using kubernetes.
I have an app running on a machine (vm) in the same network as the cluster
in my browser i can type <a href="http://ipaddress:port/status" rel="nofollow noreferrer">http://ipaddress:port/status</a> and i get a response</p>

<p>In my pod i can ping the ip address and i get a response but if i do wget://ipaddress:port/status it doesn't connect.</p>

<p>I have tried some things but not able to succeed.
How do i get the pod in the cluster to be be able to open this url, what do I need to do?</p>

<p>You can integrate external services within kubernetes.
<p>endpoint.yaml</p>

<pre><code>    kind: Endpoints
    apiVersion: v1
    metadata:
      name: external-ip-database
    subsets:
      - addresses:
        - ip: 192.168.0.1
        ports:
    - port: 3306
</code></pre>

<p>service.yaml</p>

<pre><code>    apiVersion: v1
    kind: Service
    metadata:
      name: database
    spec:
      ports:
      - port: 1433
        targetPort: 1433
        protocol: TCP
    ---
    # Because this service has no selector, the corresponding Endpoints
    # object will not be created. You can manually map the service to
    # your own specific endpoints:
    kind: Endpoints
    apiVersion: v1
    metadata:
      name: database
    subsets:
      - addresses:
          - ip: "192.168.1.103"
        ports:
          - port: 1433
</code></pre>
