Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/heapster] Target new secure kubelet port #11730

Closed
syst0m opened this issue Feb 26, 2019 · 2 comments
Closed

[stable/heapster] Target new secure kubelet port #11730

syst0m opened this issue Feb 26, 2019 · 2 comments

Comments

@syst0m
Copy link
Contributor

syst0m commented Feb 26, 2019

Is this a request for help?:
No

-->

Version of Helm and Kubernetes:
Using Terraform helm provider:

provider "helm" {
  version        = "~> 0.7.0"
  install_tiller = true

EKS cluster v1.11

Which chart:
stable/heapster

What happened:
Heapster no longer works on EKS, because the kubelet on the new AMI no longer listens on theon --read-ony-port 10255, which had disabled in the latest AMI release as per the K8s upstream stream project's hardening changes.
kubernetes/kubeadm#732
kubernetes/kubernetes#59666

Tried the solution described here:
awslabs/amazon-eks-ami#128

What you expected to happen:
Heapster is deployed succesfully.

How to reproduce it (as minimally and precisely as possible):

resource "helm_release" "heapster" {
      name     = "heapster"
      chart    = "stable/heapster"
      namespace = "kube-system"
      # Heapster needs permissions to access the cluster
      set {
        name   = "rbac.create"
        value  = "true"
      }
      # Readonly port was disabled by AMI maintainers in adhering to k8s hardening guidelines, so we need to target the new secure port here
      # https://github.com/awslabs/amazon-eks-ami/issues/128
      set {
        name   = "command"
        value  = "/heapster --source=kubernetes:kubernetes:https://kubernetes.default?useServiceAccount=true&kubeletHttps=true&kubeletPort=10250&insecure=true"
      }
}

terraform apply
Error: Error applying plan:

1 error(s) occurred:


**Anything else we need to know**:
@miketitus
Copy link

You're passing in a string where a list is needed (hence "range can't iterate over etc.") Try:

value  = "{/heapster,--source=kubernetes:kubernetes:https://kubernetes.default?useServiceAccount=true&kubeletHttps=true&kubeletPort=10250&insecure=true}"

@syst0m
Copy link
Contributor Author

syst0m commented Mar 15, 2019

Seems to work now, thanks for your help!

@syst0m syst0m closed this as completed Mar 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants