Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes external ELBs can't be deployed #2714

Closed
bdshibly opened this issue Jun 12, 2017 · 2 comments
Closed

Kubernetes external ELBs can't be deployed #2714

bdshibly opened this issue Jun 12, 2017 · 2 comments

Comments

@bdshibly
Copy link

Hi,

I wanted to configure kubernetes cluster on private network and external ELBs public network. Here is the kops command which I used

kops create cluster --cloud=aws --name=pr1kubernetes1.shibly.com --state=s3://pr1kubernetes1 --zones=us-west-2c,us-west-2b,us-west-2a --node-count=3 --node-size=m3.xlarge --master-size=m3.large --dns-zone=pr1kubernetes1.shibly.com --master-zones=us-west-2a,us-west-2b,us-west-2c --vpc=<vpc_id> --network-cidr=<cidr> --networking=weave --dns=private --channel=stable --associate-public-ip=false --topology=private --admin-access=<cidr>

Here is my subnets configuration:

subnets:
  - cidr: 10.10.0.0/24
    name: us-west-2c  
    egress: nat-abcd
    type: Private
    zone: us-west-2c
    id: subnet-abcd
  - cidr: 10.20.0.0/24
    name: utility-us-west-2c  
    type: Utility
    zone: us-west-2c
    id: subnet-efgh

It created the cluster on Private subnets but when I am trying to create external ELBs it is giving me the following error.

Error creating load balancer (will retry): Failed to create load balancer for service kube-system/monitoring-grafana: could not find any suitable subnets for creating the ELB

apiVersion: v1
kind: Service
metadata:
  labels:
    # kubernetes.io/cluster-service: 'true'
    kubernetes.io/name: monitoring-grafana
  name: monitoring-grafana
  namespace: kube-system
spec:
  type: LoadBalance
  ports:
  - port: 80
    protocol: TCP
    targetPort: 3000
  selector:
    k8s-app: grafana

How can I create the cluster on private subnet and ELBs on public subnets?

Thanks
Shibly

@kenden
Copy link
Contributor

kenden commented Jun 13, 2017

I think this is this issue:
#2388
When you use existing subnets, they are missing tags. You could try adding them manually.

@geojaz
Copy link
Member

geojaz commented Oct 23, 2017

@bdshibly #3682 was merged today and should help you out. Please test it out and if you're still having problems, re-open the issue. Thanks!

@geojaz geojaz closed this as completed Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants