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

then:

  • 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>         10.0.0.1      443/TCP
    my-nginx     run=my-nginx                              run=my-nginx   10.0.100.19   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?
    thanks!!

    describe svc:

    Name:           my-nginx
    Namespace:      default
    Labels:         run=my-nginx
    Selector:       run=my-nginx
    Type:           LoadBalancer
    IP:         x.x.xxx.xx
    LoadBalancer Ingress:   dasfasdgfgaasok23o4j34ij4ofa69da-1772099277.us-west-2.elb.amazonaws.com
    Port:           <unnamed>   80/TCP
    NodePort:       <unnamed>   31331/TCP
    Endpoints:      x.x.xxx.x:80,xx.xxx.x.x:80
    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.