https://pulumi.com logo
#kubernetes
Title
# kubernetes
s

square-energy-17741

10/08/2021, 3:31 AM
Hello friends, I have been trying to install kubernetes metrics-server using
helm.v3.Release
but it always fails with the following error -
Copy code
error: timed out waiting for the condition
My code to install the helm chart looks like this -
Copy code
const metricsServerChart = new k8s.helm.v3.Release (
  'kubesys-ms',
  {
    chart: 'metrics-server',
    version: '3.5.0',
    namespace: 'kube-system',
    name: 'kubesys-ms',
    repositoryOpts: {
      repo: '<https://kubernetes-sigs.github.io/metrics-server/>'
    },
    values: {},
  },
  { 
    dependsOn: [cluster], 
    provider: cluster.provider 
  }
);
I am able to install the same chart easily using helm command line -
Copy code
helm -n kube-system install kubesys-ms metrics-server/metrics-server
Am I missing something?
Interestingly I was able to install the same chart using
helm.v3.Chart
-
Copy code
const metricsServerChart = new k8s.helm.v3.Chart (
  'kubesys-ms',
  {
    chart: 'metrics-server',
    version: '3.5.0',
    namespace: 'kube-system',
    fetchOpts: {
      repo: '<https://kubernetes-sigs.github.io/metrics-server/>'
    },
    values: {},
  },
  { 
    dependsOn: [cluster], 
    provider: cluster.provider 
  }
);
Can this be an issue in
Release
implementation, should I file an issue on GitHub?
s

sparse-park-68967

10/08/2021, 6:54 AM
You could try adding a longer timeout or set
skipAwait:true
- which is the default for helm CLI (helm release blocks to make sure resources are created by default).
I am guessing the metrics server is taking too long to come up or not activating for some reason
s

square-energy-17741

10/11/2021, 4:39 AM
Will give that a try. Thank you 🙏
5 Views