When I add my external cluster config to the config section of the Helm chart, the pod crashloops with the error: config.go:102] failed to parse config file /etc/kite/config.yaml: yaml: line 6: mapping values are not allowed in this context
When I remove the config from the values.yaml, the pod runs fine.
values.yaml
anonymousUserEnabled: false
debug: false
db:
type: postgres
secret:
create: false
existingSecret: kite-secrets
extraEnvs:
- name: "HOST"
value: "https://kite.laskonet.com"
- name: "NODE_TERMINAL_IMAGE"
value: "nicolaka/netshoot"
- name: "PROMETHEUS_URL"
value: "http://promstack-prometheus.monitoring.svc.cluster.local:9090"
config:
enabled: true
clusters:
- name: Home
inCluster: true
default: true
prometheusURL: "${PROMETHEUS_URL}"
- name: Cloud
config: "${KITE_KUBECONFIG_CLOUD}"
prometheusURL: "${PROMETHEUS_URL}"
oauth:
- name: pocket-id
clientId: "${KITE_OAUTH_CLIENT_ID}"
clientSecret: "${KITE_OAUTH_CLIENT_SECRET}"
issuer: "https://auth.ucdialplans.com/.well-known/openid-configuration"
scopes: "openid,profile,email,groups"
authUrl: "https://auth.ucdialplans.com/authorize"
tokenUrl: "https://auth.ucdialplans.com/api/oidc/token"
userInfoUrl: "https://auth.ucdialplans.com/api/oidc/userinfo"
enabled: true
My $KITE_KUBECONFIG_CLOUD secret renders as a normal kubeconfig file. I can import it without issue in the UI.
KITE_KUBECONFIG_CLOUD: |-
apiVersion: v1
kind: Config
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJ...
When I add my external cluster config to the
configsection of the Helm chart, the pod crashloops with the error:config.go:102] failed to parse config file /etc/kite/config.yaml: yaml: line 6: mapping values are not allowed in this contextWhen I remove the config from the
values.yaml, the pod runs fine.values.yaml
My
$KITE_KUBECONFIG_CLOUDsecret renders as a normal kubeconfig file. I can import it without issue in the UI.