I'm trying to install Traefik using Helm on my Kubernetes cluster, but the installation fails with the following error:
coalesce.go:286: warning: cannot overwrite table with non table for traefik.ports.traefik.expose (map[default:false])
Error: INSTALLATION FAILED: template: traefik/templates/service.yaml:27:12: executing "traefik/templates/service.yaml" at <index (default dict $config.expose) $name>: error calling index: can't index item of type bool
It seems like Helm is treating a boolean value as a dictionary or vice versa, but I'm not sure how to resolve this issue.
The .yaml file:
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
globalArguments:
- "--global.checknewversion=false"
- "--global.sendanonymoususage=false"
additionalArguments:
- "--log.level=DEBUG"
dashboard:
enabled: true
ports:
traefik:
expose:
default: true
pacs:
port: 104
expose: true
exposedPort: 104
protocol: TCP
What was tried.
How it was:
ports:
traefik:
expose: ture
What was tired this:
ports:
traefik:
expose:
default: true
and this:
ports:
traefik:
expose:
enabled: true
However, I still can not deploy the pod properly.
I'm trying to install Traefik using Helm on my Kubernetes cluster, but the installation fails with the following error:
coalesce.go:286: warning: cannot overwrite table with non table for traefik.ports.traefik.expose (map[default:false])
Error: INSTALLATION FAILED: template: traefik/templates/service.yaml:27:12: executing "traefik/templates/service.yaml" at <index (default dict $config.expose) $name>: error calling index: can't index item of type bool
It seems like Helm is treating a boolean value as a dictionary or vice versa, but I'm not sure how to resolve this issue.
The .yaml file:
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
globalArguments:
- "--global.checknewversion=false"
- "--global.sendanonymoususage=false"
additionalArguments:
- "--log.level=DEBUG"
dashboard:
enabled: true
ports:
traefik:
expose:
default: true
pacs:
port: 104
expose: true
exposedPort: 104
protocol: TCP
What was tried.
How it was:
ports:
traefik:
expose: ture
What was tired this:
ports:
traefik:
expose:
default: true
and this:
ports:
traefik:
expose:
enabled: true
However, I still can not deploy the pod properly.
Share Improve this question edited Mar 10 at 23:32 Hilory 2,1577 gold badges14 silver badges30 bronze badges asked Mar 10 at 17:23 mitkomitko 111 bronze badge 1- 1 You wrote "ture" ?? in the "how it was"... – Stephan Kristyn Commented Mar 31 at 12:08
1 Answer
Reset to default 1From Version 27+ we ought use:
ports:
traefik:
expose:
default: true
port: xx
exposedPort: xx
protocol: TCP