gardener-attic / kubify

Terraform Template to Setup a Kubernetes Cluster on OpenStack/AWS/Azure
Other
147 stars 31 forks source link

Api server is not up and running #63

Open dimitarKiryakov opened 5 years ago

dimitarKiryakov commented 5 years ago

Hello, I am using OpenStack IaaS provider and I set up the terraform script accordingly through the guide on the official wiki. However after successful execution of "terraform apply variant" the commands "k8s/bin/k" are returning Unable to connect to the server: EOF. I was also not able to use kubectl by directly using the floating IP of either load balancer or master node

Here is my tfvars file

os_user_name = ""

os_password = ""

os_auth_url = ""

os_tenant_name = ""

os_domain_name = ""

os_region = "eu-de-200"

os_fip_pool_name = ""

#os_lbaas_provider = "haproxy"
os_az = "rot_2_1"

cluster_name = "Kubernetes"

cluster_type = "seed"

# DNS
dns = {
  domain_name    = ""
  dns_type       = "route53"
  hosted_zone_id = ""

  access_key = ""
  secret_key = ""
}

# cluster size
master = {
  count       = 1
  flavor_name = "m1.large"
  assign_fips = "true"
}

worker = {
  count       = 2
  flavor_name = "m1.large"
  assign_fips = "true"
}

addons = {
  "dashboard" = {
    "app_name" = "kubernetes-dashboard"
  }

  heapster      = {}
  nginx-ingress = {}
  gardener      = {}
}

deploy_tiller = "false"

event_ttl = "168h0m0s"

selfhosted_etcd = "true"

#
# use htpasswd to create password entries
# example here: admin:admin
#
dashboard_creds = <<EOF
admin:$apr1$CrBJQtg9$A.BhwGjZ/Iii6KSO72SWQ0
EOF
afritzler commented 5 years ago

Did you provide the correct the DNS credentials for Route53?

jiangytcn commented 5 years ago

I had the similar issue, all vms running well and from the inside of master node, i could see the errors to call openstack api. OpenStack in my environment is setup with self-signed certificates, and I also upload the root_certs_file to all nodes.Using openssl or curl to test the ssl connectivity all works fine. but still could see the errors to verify certificate

jiangytcn commented 5 years ago

@afritzler my issue now is the etcd pod not running, leading to the the api-server in master node failed I'm using https://github.com/gardener/landscape-setup-template.git c9b7ac4 with customized changes to kubify to enable openstack dns service.

tried change this value to true, but doesn't help https://github.com/gardener/landscape-setup/blob/master/components/kubify/base.template#L65

could you help on this ?

afritzler commented 5 years ago

Don't set the self_hostedflag to true. We will deprecate the self hosted mode soon, since it has some drawbacks in terms of stability.

I need to look into the Designate support.

afritzler commented 5 years ago

/cc @mandelsoft