kubernetes-helm

How to set multiple values with helm?

痞子三分冷 提交于 2020-06-13 13:53:22
问题 Use helm install can set value when install a chart like: helm install --set favoriteDrink=slurm ./mychart Now want to set value like: helm install --set aws.subnets="subnet-123456, subnet-654321" ./mychart But failed: Error: failed parsing --set data: key " subnet-654321" has no value It seems that helm 's --set know comma , and check the next string as a key. So can't use in this case when set such string? Tested this way helm install charts/mychart \ --set aws.subnets={subnet-123456,subnet

Convert YAML string to dict in Helm template

半城伤御伤魂 提交于 2020-06-01 03:00:50
问题 I am creating a chart for a project that has a binary that when executed generates a configuration file in YAML format that looks like this: --- PARAM_1: value1 PARAM_2: value2 My chart needs to read this file and and load all of its values into environment variables in a container, so I created a variable config in my values.yaml file and when the chart is installed I am passing the file content using --set-file : helm install <CHART> --set-file config=/path/to/yaml/config/file Next I create

Convert YAML string to dict in Helm template

半世苍凉 提交于 2020-06-01 03:00:28
问题 I am creating a chart for a project that has a binary that when executed generates a configuration file in YAML format that looks like this: --- PARAM_1: value1 PARAM_2: value2 My chart needs to read this file and and load all of its values into environment variables in a container, so I created a variable config in my values.yaml file and when the chart is installed I am passing the file content using --set-file : helm install <CHART> --set-file config=/path/to/yaml/config/file Next I create

Convert YAML string to dict in Helm template

馋奶兔 提交于 2020-06-01 03:00:04
问题 I am creating a chart for a project that has a binary that when executed generates a configuration file in YAML format that looks like this: --- PARAM_1: value1 PARAM_2: value2 My chart needs to read this file and and load all of its values into environment variables in a container, so I created a variable config in my values.yaml file and when the chart is installed I am passing the file content using --set-file : helm install <CHART> --set-file config=/path/to/yaml/config/file Next I create

How to fail a helm release based on inputs in values.yaml

折月煮酒 提交于 2020-05-27 05:17:47
问题 I'm installing up a helm chart using helm install command. I have values.yaml which takes a few inputs from the user. One of the keys in values.yaml is action , which can only take three predefined values (let's say action1 , action2 and action3 ) as an input. Any other value other than this is invalid. When a user provides the value to action field in values.yaml and trigger the helm install command, the first thing I need to check is that if the action key has a valid value or not. If the

How to fail a helm release based on inputs in values.yaml

纵然是瞬间 提交于 2020-05-27 05:17:41
问题 I'm installing up a helm chart using helm install command. I have values.yaml which takes a few inputs from the user. One of the keys in values.yaml is action , which can only take three predefined values (let's say action1 , action2 and action3 ) as an input. Any other value other than this is invalid. When a user provides the value to action field in values.yaml and trigger the helm install command, the first thing I need to check is that if the action key has a valid value or not. If the

Using https ssl url of Artifactory while connecting from Jfrog xray

非 Y 不嫁゛ 提交于 2020-05-16 09:01:02
问题 I Just installed Jfrog Xray using Helm chart on our GKE cluster. The Artifactory Instance I want to connect to has SSL enabled (https://jfrog.<>/artifactory) and Xray is not able to connect to artifactory. I understand that artifactory cert needs to be installed on the Xray server container. My question is, should I directly install the certificate of artifactory and what is the process to do so. Also, if i'm using a different cert for Xray later, how can i install it on my server container

Using https ssl url of Artifactory while connecting from Jfrog xray

陌路散爱 提交于 2020-05-16 09:00:01
问题 I Just installed Jfrog Xray using Helm chart on our GKE cluster. The Artifactory Instance I want to connect to has SSL enabled (https://jfrog.<>/artifactory) and Xray is not able to connect to artifactory. I understand that artifactory cert needs to be installed on the Xray server container. My question is, should I directly install the certificate of artifactory and what is the process to do so. Also, if i'm using a different cert for Xray later, how can i install it on my server container

Terraform: Deploying a Docker Compose app on EKS/ECS

℡╲_俬逩灬. 提交于 2020-05-14 19:46:50
问题 TL;DR I use an open-source server application running on Docker Compose . It has a few services, including PostgreSQL DB and Redis. How can I best deploy this application to AWS in full IaC with Terraform? Solutions so far 1. AWS ecs-cli ecs-cli now supports sending docker compose configs in Amazon ECS. However, I do not think it could be integrated with the Terraform workflow (which is maybe not a big fuss). What I know for sure is that ecs-cli is not supported in CloudFormation , as per

Adding Nginx-Ingress/Certmanager as Dependency in Helm Charts

孤者浪人 提交于 2020-05-13 07:33:26
问题 I have a Kubernetes cluster(Azure) with nginx-ingress, certmanager and one application, and I was wondering if there's a way of making the whole system as one single package so if there's any problem with the cluster it'd be easier to spin up another one. My main idea is to make the manual configuration of nginx-ingress and certmanager automatic, but I'm not sure how it'd included in a helm chart, if possible. If not possible, is there a way(or tool) for minimising the manual configuration of