Hello friends, I have been trying to install kuber...
# kubernetes
s
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
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
Will give that a try. Thank you 🙏