Skip to content

Kube config provided in Helm values.yaml causes pod crash #552

@kenlasko

Description

@kenlasko

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions