Giter Site home page Giter Site logo

Comments (6)

scholzj avatar scholzj commented on June 9, 2024

You should be able to simply copy the kubeconfig file to your local PC and use kubectl from there. There are two versions of kubeconfig - one for use through DNS name of your cluster and one for use through IP address (in case you don't want to wait for DNS propagation or don't have a public DNS zone).

from aws-minikube.

polc avatar polc commented on June 9, 2024

Weird because when I type kubectl cluster-info dump --kubeconfig=kubeconfig_ip using either kubeconfig or kubeconfig_ip I got a Unable to connect to the server: dial tcp 52.208.98.119:6443: i/o timeout.

from aws-minikube.

scholzj avatar scholzj commented on June 9, 2024

Is your minikube setup in public network (i.e. network with route to AWS Internet Gateway)? Can you ping the IP address?

from aws-minikube.

polc avatar polc commented on June 9, 2024

So the E2C is in public network because if I allow ICMP in my-minikube security group I can ping it. Ports 6443 and 22 are already allowed too. Here is my config.tfvars :

   # AWS region where should the Minikube be deployed                                                                                                                                         
   aws_region    = "eu-west-1"                                                                                                                                                                
                                                                                                                                                                                              
   # Name for role, policy and cloud formation stack (without DBG-DEV- prefix)                                                                                                                
   cluster_name  = "my-minikube"                                                                                                                                                              
                                                                                                                                                                                              
   # Instance type                                                                                                                                                                            
   aws_instance_type = "t2.micro"                                                                                                                                                             
                                                                                                                                                                                              
  # SSH key for the machine                                                                                                                                                                  
  ssh_public_key = "~/.ssh/keys/id_rsa.pub"                                                                                                                                                  
                                                                                                                                                                                             
  # Subnet ID where the minikube should run                                                                                                                                                  
  aws_subnet_id = "subnet-201d7547"                                                                                                                                                          
                                                                                                                                                                                             
  # DNS zone where the domain is placed                                                                                                                                                      
  hosted_zone = "aws.mydomain.com"                                                                                                                                                             
  hosted_zone_private = false                                                                                                                                                                
                                                                                                                                                                                             
  # Tags                                                                                                                                                                                     
  tags = {                                                                                                                                                                                   
    Application = "Minikube"                                                                                                                                                                 
  }                                                                                                                                                                                          
                                                                                                                                                                                             
  # Kubernetes Addons                                                                                                                                                                        
  # Supported addons:                                                                                                                                                                        
  #                                                                                                                                                                                          
  # https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/storage-class.yaml                                                                                        
  # https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/heapster.yaml                                                                                             
  # https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/dashboard.yaml                                                                                            
  # https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/external-dns.yaml                                                                                         
  # https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/ingress.yaml" (External ELB load balancer)                                                                
  # https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/ingress-internal.yaml" (Internal ELB loadbalancer)                                                        
                                                                                                                                                                                             
  addons = [                                                                                                                                                                                 
    "https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/storage-class.yaml",                                                                                     
    "https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/heapster.yaml",                                                                                          
    "https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/dashboard.yaml",                                                                                         
    "https://raw.githubusercontent.com/scholzj/terraform-aws-minikube/master/addons/external-dns.yaml"                                                                                       
  ]                                                                                                                                                                                                           

I just run terraform apply -var-file=config.tfvars

from aws-minikube.

scholzj avatar scholzj commented on June 9, 2024

The config file looks OK. I'm a bit surprised if you got your minikube running on t2.micro. But if it works from the machine it self than it should be fine.

I would expect that the problem must be somewhere in the Amazon configuration which blocks the access. But it is hard to guess what might be the problem without knowing the AWS setup you are using for subnets. I also assume that you can SSH / SCP into the host fine form the same computer, right? Could you try to run the 'kubectl' command with '--v=9' option? Maybe it would produce some more output.

One thing which comes to my mind - do you have some HTTP proxy configured? I saw some problem like this when proxy was in use.

from aws-minikube.

polc avatar polc commented on June 9, 2024

I finally resolved my problem by just using a google cloud cluster. Anyway thanks a lot for your help and for your great project!

from aws-minikube.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.