kubernetes-helm

k8s, RabbitMQ, and Peer Discovery

≡放荡痞女 提交于 2019-12-08 06:28:02
问题 We are trying to run an instance of the RabbitMQ chart with Helm from the helm/charts/stable/rabbit project. I had it running perfect but then I had to restart k8s for some maintenance. Now we are completely unable to launch the RabbitMQ chart in any way shape or form. I am not even trying to run the chart with any variables, i.e. just the default values. Here is all I am doing: helm install stable/rabbitmq I have confirmed I can simply run the default right on my local k8s which I'm running

adding quotes around shellscript parameter from Jenkins/groovy

穿精又带淫゛_ 提交于 2019-12-08 03:23:27
I'm building a pipeline in Jenkins, and in this pipeline, I call a shellscript: sh "helm upgrade --install $app --set myVar=$myVar" now, after trying this in the terminal on my local machine, I've discovered that for some values of myVar , it needs to be quoted on the commandline. (specifically I'm passing a YAML list, example: "{foo,bar,baz}" ) Now it turns out this is not as simple as it would seem. my first attempt was: sh "helm upgrade --install $app --set myVar='$myVar'" but in the logs, we see that the command that was ultimately ran looks like sh helm upgrade --install appname --set

IBM Cloud Private Catalog doesn't display Helm charts

大憨熊 提交于 2019-12-08 03:22:29
问题 The catalog page in IBM Cloud Private is empty, and the following error message is in the helm-api pod logs: 'ERROR' 'getChartsFromRepo(recursive) error: getaddrinfo EAI_AGAIN raw.githubusercontent.com:443’ How do I fix this? 回答1: There might be a bad IP Address for the DNS server in the /etc/resolv.conf and /etc/network/interfaces files. In the /etc/network/interfaces file, replace the dns-nameservers parameter value with 8.8.8.8, or your DNS server's IP address. in In the /etc/resolv.conf

Is there a way to get ordinal index of a pod with in kubernetes statefulset configuration file?

99封情书 提交于 2019-12-07 15:03:33
问题 We are on Kubernetes 1.9.0 and wonder if there is way to access an "ordinal index" of a pod with in its statefulset configuration file. We like to dynamically assign a value (that's derived from the ordinal index) to the pod's label and later use it for setting pod affinity (or antiaffinity) under spec. Alternatively, is the pod's instance name available with in statefulset configfile? If so, we can hopefully extract ordinal index from it and dynamically assign to a label (for later use for

Starting an Ingress service on Docker for Mac

五迷三道 提交于 2019-12-07 05:04:16
问题 Update: Using: kubectl expose deployment <Name-Of-Servce> --name=loadbalancer --port=8080 --target-port=8080 --type=LoadBalancer The kubectl get services is showing pending: loadbalancer LoadBalancer <x.x.x.x> <pending> 8080:32670/TCP 2m Before Docker surported Kubernetes, I could use MiniKube and Helm: helm install stable/jenkins kubectl get services // To get the service name minikube service original-llama-jenkins // << The service name Now that we have Docker for Mac(Edge) supporting

How to fix “Kibana server is not ready yet” error when using AKS

♀尐吖头ヾ 提交于 2019-12-06 11:08:45
I'm setting up ELK services in Azure Kubernetes Service. But I only see this error: "Kibana server is not ready yet" I'm using Helm to install the stable/elastic-stack release without any changes (default for everything) in AKS. helm install --name elk stable/elastic-stack And I also added an ingress controller to expose the Kibana server to public. However, I only see "Kibana server is not ready yet" error. I've checked the Kibana pod is running, as well as the ElasticSearch. As a newbie in Kubernetes, I have no idea about how to find the error log in Kibana instance. Can anyone help me on

Get array of strings from helm config

纵然是瞬间 提交于 2019-12-06 09:50:41
Ultimately i'm trying to get an array of strings e.g. ['foo', 'bar'] in my js app from my helm config. ./vars/dev/organizations.yaml ... organizations: - 'foo' - 'bar' ... ./templates/configmap.yaml ... data: organizations.yaml: | organizations: "{{ toYaml .Values.organizations | indent 4 }}" ... ./templates/deployment.yaml ... containers: args: - "--organizations-config" - "/etc/app/cfg/organizations.yaml" ... index.js ... const DEFAULT_ORGANIZATIONS_PATH = './vars/local/organizations.yaml' const program = require('commander') program .option( '--organizations-config <file path>', 'The path

How to uninstall / remove tiller from Kubernetes manually?

不羁岁月 提交于 2019-12-06 08:15:04
问题 I've by mistake installed an unsecured configuration of tiller. I've tried helm reset but something must have corrupted because now when I try to install helm: $HELM_HOME has been configured at /home/chris/.helm. Warning: Tiller is already installed in the cluster. (Use --client-only to suppress this message, or --upgrade to upgrade Tiller to the current version.) Happy Helming! However if I try helm ls I get: Error: could not find tiller . So because helm reset is insufficient, or there is

Set value in dependency of Helm chart

旧巷老猫 提交于 2019-12-06 07:48:35
问题 I want to use the postgresql chart as a requirements for my Helm chart. My requirements.yaml file hence looks like this: dependencies: - name: "postgresql" version: "3.10.0" repository: "@stable" In the postgreSQL Helm chart I now want to set the username with the property postgresqlUsername (see https://github.com/helm/charts/tree/master/stable/postgresql for all properties). Where do I have to specify this property in my project so that it gets propagated to the postgreSQL dependency? 回答1:

Should I use configMap for every environment variable?

南笙酒味 提交于 2019-12-06 02:58:12
I am using helm right now. My project is like that: values.yaml: environmentVariables: KEY1: VALUE1 KEY2: VALUE2 configmap.yaml: apiVersion: v1 kind: ConfigMap metadata: name: {{ template "myproject.fullname" . }} data: {{- range $k, $v := .Values.environmentVariables }} {{ $k }}: {{ $v | quote }} {{- end }} deployment.yaml: apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "myproject.fullname" . }} spec: template: spec: containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: {{-