#helm (2020-12)

Archive: https://archive.sweetops.com/helm/

2020-12-09

s_slack avatar
s_slack

As @Erik Osterman (Cloud Posse) suggested, not sure if anyone has any experience with this ->https://sweetops.slack.com/archives/CQCDCLA1M/p1607475676220800

Just wondering if anyone has any insight on how to efficiently manage configuration in micro-services environment where each service/repo has its own helm configuration values. So if you need to support countryA on serviceA but not on countryB then you can configure in serviceA repo only. But this scales very poorly with hundreds of services. Is there any way to manage this when each service is maintained by specific teams.

2020-12-10

wannafly37 avatar
wannafly37

I’m trying to read an HTML file in and include it in a string as an annotation but having a difficult time due to what I assume is quotes/single quotes. Anyone done this before? Basically I’m including a static maintenance page as a ALB rule

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
YAML Tutorial: Everything You Need to Get Started - Rollout Blog

YAML Ain’t Markup Language (YAML) has a risen in popularity over the past few years. Here’s a YAML tutorial to get you started quickly.

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Look into multi-line values

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
bar: |-
  this is not a normal string it
  spans more than
  one line
  see?
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

(almost like YAML HEREDOC)

wannafly37 avatar
wannafly37

Thanks, Erik. I figured it out but it was definitely some line break/quoting problems - ended up having to take all double quotes and line breaks out of the HTML

2020-12-11

2020-12-12

zeid.derhally avatar
zeid.derhally

We have a 3rd party helm chart that we are working with. it is an umbrella chart that has other umbrella charts. Probably like 3 levels of charts…many of the settings from the subcharts are not exposed in the root values.yaml. Was looking for a tool/script that will generate a values.yaml with all the values from subcharts

2020-12-14

2020-12-18

Joaquin Menchaca avatar
Joaquin Menchaca

Is there a way to see the badly rendered values, so I can see where I made the mistake?

Error: YAML parse error on dgraph-lambda/templates/deployment.yaml: error converting YAML to JSON: yaml: line 34: did not find expected key
helm.go:81: [debug] error converting YAML to JSON: yaml: line 34: did not find expected key
YAML parse error on dgraph-lambda/templates/deployment.yaml
...

Doesn’t help. I want to see how it was rendered so that I know how to fix it. Sometimes it’s just a matter of indentation.

Joaquin Menchaca avatar
Joaquin Menchaca

And it was… grrr… this is such a frustrating part of helm, makes it so painful to debug.

2020-12-21

Joaquin Menchaca avatar
Joaquin Menchaca

I’m not sure how to get this to work:

{{- if .Values.script.enabled -}}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "dgraph-lambda.fullname" . }}-config
  labels:
    {{- include "dgraph-lambda.labels" . | nindent 4 }}
data:
  script.js: {{ .Values.script.script }}
{{- end -}}

This get me:

[ERROR] templates/config.yaml: unable to parse YAML: error converting YAML to JSON: yaml: line 13: mapping values are not allowed in this context

2020-12-22

bradym avatar

The --debug flag should show you the bad yaml.

    keyboard_arrow_up