kubernetes-helm

How to pass entire JSON string to Helm chart value?

Deadly 提交于 2019-12-22 08:30:50
问题 How can I pass the entire JSON string to a Helm chart value? I have values.yml where the config value should contain entire JSON with a configuration of an application ... config: some JSON here ... and I need to pass this value to a secret template and then mount it as a volume to a Kubernetes pod. {{- $env := default "integration" .Values.env}} apiVersion: v1 kind: Secret metadata: name: {{ .Release.Name }}-{{ $env }} type: Opaque data: config.json: {{ .Values.config | b64enc | quote }}

Helm install or upgrade release failed on Kubernetes cluster: the server could not find the requested resource or UPGRADE FAILED: no deployed releases

怎甘沉沦 提交于 2019-12-22 07:53:19
问题 Using helm for deploying chart on my Kubernetes cluster, since one day, I can't deploy a new one or upgrading one existed. Indeed, each time I am using helm I have an error message telling me that it is not possible to install or upgrade ressources. If I run helm install --name foo . -f values.yaml --namespace foo-namespace I have this output: Error: release foo failed: the server could not find the requested resource If I run helm upgrade --install foo . -f values.yaml --namespace foo

Helm install or upgrade release failed on Kubernetes cluster: the server could not find the requested resource or UPGRADE FAILED: no deployed releases

时间秒杀一切 提交于 2019-12-22 07:53:08
问题 Using helm for deploying chart on my Kubernetes cluster, since one day, I can't deploy a new one or upgrading one existed. Indeed, each time I am using helm I have an error message telling me that it is not possible to install or upgrade ressources. If I run helm install --name foo . -f values.yaml --namespace foo-namespace I have this output: Error: release foo failed: the server could not find the requested resource If I run helm upgrade --install foo . -f values.yaml --namespace foo

Upgrading from Helm stable/cert-manager to jetstack/cert-manager

久未见 提交于 2019-12-22 07:46:30
问题 We have a production AKS cluster that has a stable/cert-manager helm chart installed to allow using Let's Encrypt certificates. The current version installed is cert-manager-v0.6.0 in the kube-system namespace. Let's Encrypt is to stop support for traffic from cert-manager pre 8.0 version from 1st of November 2019. I would like to upgrade but the latest available stable chart version is v0.6.7 . Seems like the way to go is to switch to jetstack/cert-manager . How do I best approach this?

How to get the name of a child chart with Helm?

大憨熊 提交于 2019-12-22 03:57:20
问题 I have a helm chart that requires stable/redis as a child chart. The parent chart needs to expose the redis service as an environment variable. The redis chart includes a template called redis.fullname . How can I refer to this in my parent chart? I.e. I want something like this in my parent deployment but it doesn't work: kind: Deployment spec: template: containers: env: - name: REDIS_CLUSTER_SERVICE_HOST value: {{ template "redis.fullname" . }} 回答1: You can use '{{ .Release.Name }}-redis'

How to get the name of a child chart with Helm?

落花浮王杯 提交于 2019-12-22 03:56:29
问题 I have a helm chart that requires stable/redis as a child chart. The parent chart needs to expose the redis service as an environment variable. The redis chart includes a template called redis.fullname . How can I refer to this in my parent chart? I.e. I want something like this in my parent deployment but it doesn't work: kind: Deployment spec: template: containers: env: - name: REDIS_CLUSTER_SERVICE_HOST value: {{ template "redis.fullname" . }} 回答1: You can use '{{ .Release.Name }}-redis'

Helm V3 - Cannot find the official repo

那年仲夏 提交于 2019-12-21 03:41:27
问题 I have been trying to install nginx ingress using helm version 3 helm install my-ingress stable/nginx-ingress But Helm doesn't seem to be able to find it's official stable repo. It gives the message: Error: failed to download "stable/nginx-ingress" (hint: running helm repo update may help) I tried helm repo update . But it doesn't help. I tried listing the repos helm repo list but it is empty. I tried to add the stable repo: helm repo add stable https://github.com/helm/charts/tree/master

How can you call a helm 'helper' template from a subchart with the correct context?

房东的猫 提交于 2019-12-20 12:35:23
问题 Helm charts define helper templates in _helpers.tpl which are used to create normalized names for the services. The standard form of the template for a service (DNS) name is: {{- define "postgresql.fullname" -}} {{- $name := default .Chart.Name .Values.nameOverride -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} {{- end -}} If using postgresql as a subchart, how are you supposed to use DNS-based service discovery to refer to it? A common pattern seems to be to copy

helm list : cannot list configmaps in the namespace “kube-system”

我是研究僧i 提交于 2019-12-20 08:19:08
问题 I have installed helm 2.6.2 on the kubernetes 8 cluster. helm init worked fine. but when I run helm list it giving this error. helm list Error: configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list configmaps in the namespace "kube-system" How to fix this RABC error message? 回答1: Once these commands: kubectl create serviceaccount --namespace kube-system tiller kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount

Can someone explain me some use cases of helm?

試著忘記壹切 提交于 2019-12-13 20:11:16
问题 I’m currently using kubernetes and I came across of helm. Let’s say I don’t like the idea of “infecting” my kubernetes cluster with a process that is not related to my applications but I would gladly accept it if it could be beneficial. So I made some researches but I still can’t find anything I can’t easily do by using my yaml descriptor and kubectl so for now I can’t find an use except,maybe, for the environizing. For example (taking it from guides I read: you can easily install application