0

I created a cluster on the Google cloud platform. I got below error while executing the helm command. What is wrong here?

curl -L https://git.io/getLatestIstio | ISTIO_VERSION=1.2.2 sh -


helm template istio install/kubernetes/helm/istio 
--set global.mtls.enabled=false --set racing.enabled=true 
--set kiali.enabled=true --set grafana.enabled=true 
--namespace istio-system > istio.yaml

Error: template: istio/charts/gateways/templates/rolebindings.yaml:4:7: executing "istio/charts/gateways/templates/rolebindings.yaml" at <($spec.sds) and (eq $spec.sds.enabled true)>: can't give argument to non-function $spec.sds

Use --debug flag to render out invalid YAML

island
  • 43
  • 1
  • 11
  • Can you post what's in line 4 of `istio/charts/gateways/templates/rolebindings.yaml`? – Rico Mar 29 '22 at 06:04
  • Yes. error message:template: istio/charts/gateways/templates/rolebindings.yaml:4:7: executing "istio/charts/gateways/templates/rolebindings.yaml" at <($spec.sds) and (eq $spec.sds.enabled true)>: can't give argument to non-function $spec.sds – island Mar 29 '22 at 06:10
  • It is written somewhere to do as follows, but I do not know how to do it. follow the below steps. In files, `/install/kubernetes/helm/istio/charts/gateways/templates/rolebindings.yaml /install/kubernetes/helm/istio/charts/gateways/templates/role.yaml replace below line {‌{- if ($spec.sds) and (eq $spec.sds.enabled true) }} with {‌{- if and ($spec.sds) (eq $spec.sds.enabled true) }} ` @Rico – island Mar 29 '22 at 06:13
  • looks like you are missing a variable somewhere – Rico Mar 29 '22 at 06:14
  • I implemented all the command lines in the tutorial one by one. Could it be version related? How else can I do? @Rico – island Mar 29 '22 at 06:25
  • is `spec.sds` defined in your `values.yaml`? – Rico Mar 29 '22 at 06:35
  • 1
    `ISTIO_VERSION=1.2.2`. Istio *1.2.2* is very old, and very unsupported. Do you get the same error when trying to install newer version (preferably latest *1.13.2*)? –  Mar 29 '22 at 06:40
  • I don't know. I ran it from google cloud shell.I just started learning Kubernetes.I may not understand what you are saying. – island Mar 29 '22 at 06:43
  • Either remove `| ISTIO_VERSION=1.2.2` from `curl` command, or replace it with `| ISTIO_VERSION=1.13.2`, and then try to install istio again. Or, even better, use [official Istio docs](https://istio.io/latest/docs/setup/install/helm/) for installation instructions –  Mar 30 '22 at 07:07
  • I tried ISTIO_VERSION=1.13.2 and failed. I will look at the official page.Thanks @p10l – island Mar 30 '22 at 09:01

0 Answers0