Fail to expose my pod to the internet

I have tried some example to run a specific image on my kubernetes cluster, I did this command:

kubectl run my-nginx --image=nginx --replicas=2 --port=80


  • Bcrypt: invalid ELF header with Docker and Sails.JS
  • Docker abbreviation for --name run option
  • dante-sever fail to bind ip by interface name in docker container
  • Is it possible to get terminal notifications in OSX through a docker container?
  • Proxying http requests to another docker container
  • Scala SBT set dockerRepository “Repository for publishing is not specified”
  • kubectl expose rc my-nginx --port=80 --type=LoadBalancer

    and when I go:

    kubectl get service

    I get:

    NAME         LABELS                                    SELECTOR       IP(S)         PORT(S)
    kubernetes   component=apiserver,provider=kubernetes   <none>      443/TCP
    my-nginx     run=my-nginx                              run=my-nginx   80/TCP

    now, I have a cluster that I created with my kubernetes, and onw I want to put something in my browser and see the landing page of nginx…

    I tried to put my master machine ip with port 80 in the end and it didnt work, what should I do?

    describe svc:

    Name:           my-nginx
    Namespace:      default
    Labels:         run=my-nginx
    Selector:       run=my-nginx
    Type:           LoadBalancer
    LoadBalancer Ingress:
    Port:           <unnamed>   80/TCP
    NodePort:       <unnamed>   31331/TCP
    Session Affinity:   None
    No events.

  • docker-compose postgresql implementation in python app
  • Is there a way to make docker containers truly fault-tolerant?
  • how to create docker restricted network
  • Can't build openjdk:8-jdk image directly
  • What are the best practices for tagging Docker Hub versions
  • Clone and run laravel application easily
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.