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


  • I couldn't run container which one I created from live OS
  • How do named volumes work in docker?
  • What config option links a WordPress database to its files?
  • Docker 1.9 overlay network - access from host
  • What is Docker URL
  • Cannot find the enviromental parameter
  • 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.

  • Adding docker to django project: no such file or directory
  • Connecting to Postgresql in a docker container from outside
  • ECS: Environment variables set in task but not present in container
  • Replace default configuration with my own in a Docker image
  • What is the (best) way to manage permissions for docker shared volumes
  • Let two Containers getting linked to eachother
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.