Comments (6)
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.
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.
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.
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.
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.
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)
- Can't access the EC2 instance HOT 12
- No nodes when running kubectl get nodes HOT 5
- Can't Connect HOT 3
- How kubectl proxy connected to aws? HOT 1
- Cannot connect to kubectl proxy HOT 3
- Confused, is this Minikube or just a single node Kubernetes? HOT 2
- Initializing modules... - minikube in Error: Unreadable module directory HOT 10
- Cloudinit failing due to Kubernetes repo's GPG key HOT 8
- not authorized to perform: iam:CreateServiceLinkedRole
- Consider using Cloudformation in addition to Terraform HOT 3
- Specify custom AMI? HOT 3
- Cannot locate private key after running terraform apply HOT 2
- Issues with DNS in kubernetes HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-minikube.