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


  • Docker: Are you trying to connect to a TLS-enabled daemon without TLS?
  • AWS ECS windows containers network mode issue
  • ngx_http_userid module not generating $uid_got in running Docker container
  • Download all dependencies, plugin dependencies, compilers, etc. with Maven?
  • Gitlab CI - Use docker image offline
  • Unable to install docker 1.5 on ubuntu 14.04 64bit
  • 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.

  • AWS cloudwatch terminal output logs
  • How to hide SSH key to the Docker image without leaving the trace?
  • Use docker image in .gitlab-ci.yml with build essentials and git
  • 'docker cp' command in Jenkins docker container copies a file into a directory
  • dotnet core web api CI/CD pipeline with docker container
  • How to use Capistrano with Rails and Docker-compose?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.