Skip to main content
Skip table of contents

Kubernetes Secret Ref Usage

If you want to save the Mavrrik K8s API key as a secret and use it as a SecretRef, please follow the steps below:

  1. Pull the helm charts on your local and untar it

CODE
 helm pull oci://us-central1-docker.pkg.dev/cloudwiz-io/public-charts/dx-k8s-appliance --untar
  1. Edit the values.yaml from the values from

    1. Go to Mavvrik k8s Onboarding Landing Page

    2. Mavvrik Console > Admin Tab > Accounts > Kubernetes

    3. If it's a new cluster click +Cluster Icon on left top

    4. Then from step 3 from the side panel copy the values.

image-20250320-124111.png
  1. The API key is a base64-encoded string; you’ll need to convert it to get the original value first using https://www.base64decode.org/ or any other utility

  2. Create your k8s secret and pass the ref in apiKeySecretRef

    1. Eg:

      CODE
      kubectl create secret generic my-super-secret \
        --from-literal=my-super-secret='mJJ6VBYvU8zHfreiHlKEkerGVRwrNCE0-9_oIfHXzUav-C27Y2MAIJH67yoCrTtw' \
        -n digitalex
  3. Similarly, fill in the required values in values.yaml

    CODE
    config:
      tenantId: "sozgbk1slg_tvxe0"
      apiUrl: "https://api.digitalex.io"
      apiKeySecretRef:
        name: "my-super-secret"
        key: "my-super-secret"
      apiKey: ""
      clusterId: "prn4xqar51" 
      prometheusEndpoint: "" Enter your Prometheus URL
      provider: "k8s"
      development: false
  4. Install mavrrick k8s appliance using if you are inside

CODE
helm upgrade --install dx-k8s-appliance dx-k8s-appliance/ -f dx-k8s-appliance/values.yaml -n digitalex
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.