4 replies
November 2022

Bluemerlin

Thanks for this, there’s a display error with the last yaml file on the site but I managed to figure it out.

November 2022

Bluemerlin

Unfortuntely for me, it just won’t deploy, I think it’s to do with the configmap-cert-manager-helm-chart-value-overrides.yaml file. I’ve copied the values in, but I get a security context error upon deployment.

1 reply
November 2022 ▶ Bluemerlin

funkypenguin Chef

Sorry about the delayed response - can you paste the error you get?

April 2023

cannfoddr

I’m loving these articles on Flux it has opened up a whole new way of working with K8s and k3s for me thanks.

However I am really struggling with turning values.yaml into configmaps. I needed several attempts with external-dns before I got things working.

I have now helm uninstalled cert-manager from my test cluster and I am trying to migrate to a flux based setup. Flux is telling me:

cert-manager helmrelease/cert-manager False False unable to read values from key ‘values.yaml’ in ConfigMap ‘cert-manager/cert-manager-helm-chart-value-overrides’: error converting YAML to JSON: yaml: line 230: did not find expected key

I have been using yamllint to check my yaml files but I cannot for the life of me find the problem with cert-manager ConfigMaps.

I can view the ConfigMaps that flux has created with lens. Line 230 according to lens is the annotations: {}, I simply took the raw GitHub of values.yaml for the helm chart and pasted it in to your template:

service:
  ## @param service.type Sealed Secret service type
  ##
  type: ClusterIP
  ## @param service.port Sealed Secret service HTTP port
  ##
  port: 8080
  ## @param service.nodePort Node port for HTTP
  ## Specify the nodePort value for the LoadBalancer and NodePort service types
  ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
  ## NOTE: choose port between <30000-32767>
  ##
  nodePort: ""
  ## @param service.annotations [object] Additional custom annotations for Sealed Secret service
  ##
  annotations: {}
## Sealed Secret ingress parameters
## ref: http://kubernetes.io/docs/user-guide/ingress/
##
ingress:

Is there an easy way to insert values.yaml into a ConfigMap for this to work?