kubernetes – Im running my first deployment, now what?

I’ve downloaded minikube on my dev machine and got it up and running with docker.

To test it out I wanted it to run node-red (web tool, hub.docker.com/r/nodered/node-red), just to test and se what this kubernetes was all about 🙂

I wrote this yaml file:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nodered-deployment
spec:
  selector:
    matchLabels:
      app: nodered
  replicas: 1
  template:
    metadata:
      labels:
        app: nodered
    spec:
      containers:
      - name: nodered
        image: nodered/node-red:latest
        ports:
        - containerPort: 1880

Using the minikube dashboard I uploaded it, and it seems to run. My nodred-deployment is all green. If I click (again on the minikube dashboard) on the deployment, then on replica, then on pod it states that it runs on 175.17.0.5 (?). If I open up that url in my browser (as nodered is a web tool) I get ERR_CONNECTION_TIMED_OUT. Same if I try the ip with the port I specified.

So my question is, what do I do now? How do I open up this web application that Im running.

Read more here: Source link