Hot answers tagged

8 votes
Accepted

How to pull a docker image from a private docker registry using Helm?

Based on this Github documentation it is possible to pull a docker image from a private docker registry: values.yaml imageCredentials: name: credentials-name registry: private-docker-registry ...
user avatar
  • 12.6k
5 votes

What is the impact of using Helm Deployments instead of StatefulSets for Databases like MongoDB or MySQL?

Back when Kubernetes announced the new StatefulSet feature with K8s v1.5 (converting it from the old PetSet name), they put out a really good blog post walking through an example of its usage: https://...
user avatar
  • 1,332
5 votes

How to make Tiller highly available?

Running two tillers does not make it HA. There is an open issue at the moment.
user avatar
  • 12.6k
5 votes

Kubernetes on k3s can't resolve domains from custom dns server (fritz.box with dnsmasq)

ibuildthecloud9 gave me the right hint. Since the github issue doesn't describe how to midify the dns, I figured it out and want to document it here in case someone need to change it, too. It's stored ...
user avatar
  • 191
5 votes
Accepted

Use one Helm chart for ALL microservices?

Generally, a Helm chart would cover all your microservices - ideally, you should be able to deploy whole application in one chart. It may get a little messy if you include external 3rd party ...
user avatar
  • 747
4 votes

Kubernetes on k3s can't resolve domains from custom dns server (fritz.box with dnsmasq)

I believe this is an current bug in k3s that upstream DNS is hardcoded to 1.1.1.1. this should be resolved shortly https://github.com/rancher/k3s/issues/53
user avatar
4 votes

helm - cannot get resource "namespaces" in API group

Check https://github.com/helm/helm/issues/3130, this might help. I followed the instruction in the post: kubectl --namespace kube-system create serviceaccount tiller kubectl create ...
user avatar
3 votes

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

Yes this happens frequently when debugging helm releases. The problem happens when a previously failed release is preventing you from updating it. If you run helm ls you should see a release in ...
user avatar
  • 1,162
3 votes
Accepted

Why does Helm time out on almost every action?

The problem was that nodes, while registered with kubeadm init were providing their private IPs to the cluster master. This caused problems, because master was trying to reach 192.0.*.* addresses ...
user avatar
  • 201
3 votes

Why does Helm time out on almost every action?

You have found a Kubernetes issue #22770, where there is a workaround mentioned here and it goes like follows: What you're experiencing is a known issue with k8s where for some operations it expects ...
user avatar
  • 525
3 votes

How is it a good practice to version your helm charts for each deployment?

Approach you are describing - where app version is substituted at helm upgrade command - is pretty popular as well. Maybe it's not well documented - I'm not sure about that. Yet another approach that ...
user avatar
  • 747
3 votes
Accepted

How to add timeout to a helm chart?

Since the timeout is a Helm option and not a Kubernetes object attribute, it can't be embedded in the chart itself. The --timeout option is the amount of time the Helm utility will wait for Kubernetes ...
user avatar
  • 718
3 votes

Use one Helm chart for ALL microservices?

Subcharts are the way to go. I've done a very similar thing as follows: Create one or more base charts which cover microservices that have similar configuration (e.g. one for backend microservices, ...
user avatar
  • 131
2 votes

Deploy helm chart from Jenkins to Kubernetes

Use a docker image within your pipeline that has helm and other tools installed. To quote the docs: Pipeline is designed to easily use Docker images as the execution environment for a single ...
user avatar
  • 1,162
2 votes

Tfs octopus migration to k8s and docker

Helm is a Kubernetes tool so this answer assumes you are deploying to Kubernetes or OpenShift not Docker Swarm. If you are using Helm well then I don't think it is particularly important what build ...
user avatar
  • 1,162
2 votes
Accepted

Stolon vs CrunchyData for HA Postgresql

I ended up using stolon for its automatic leader election and fail over handling. Crunchy Data offers small building blocks so there is a lot of work to do to put them all together while stolon has a ...
user avatar
2 votes
Accepted

How to use same Helm dependency in many charts?

Finnaly, I found the solution, thanks to @simbo1905. All that I need to fix that problem: values.yaml Child Chart 1 (or two) postgresql: nameOverride: chart-1-postgres In the Child Chart 2 ...
user avatar
2 votes

Original Helm chart gone - how can I find / get it from the cluster?

You can use helm get manifest <RELEASE_NAME> to fetch the kubernets manifests and you can use helm get values <RELEASE_NAME> to get the values.yaml from the cluster. But I don't think ...
user avatar
2 votes

Getting permission denied with docker pipeline on jenkins

You need to add the jenkins user to the docker group: # run the following command as root usermod -aG docker jenkins
user avatar
  • 706
2 votes

GitLab CI/CD page listing many gitlab runners that no longer exist

Just unregister offline runners: As per GitLab Runner commands manual: To delete the old and removed from GitLab runners, execute the following command. gitlab-runner verify --delete You are ...
user avatar
  • 552
2 votes
Accepted

How is it a good practice to version your helm charts for each deployment?

So, I actually ended up with the following strategy. I separated the charts from the source code. Basically, I have a repository that tracks all the helm charts only Why? I wanted to have a ...
user avatar
  • 191
2 votes
Accepted

Is there a way to combine helm with some other tool for k8s configuration management without conflicts?

Helm isn't made to be used this way. If you'd prefer to use a static deployment, you're better off using a plain Kubernetes manifest. Then, people changing the image field won't break your release. ...
user avatar
  • 676
2 votes

Use one Helm chart for ALL microservices?

I believe what you're asking is: "Is there any way to create just one helm chart that can be used for all microservices in my application?". If so, then you can just use the values.yaml file ...
user avatar
2 votes

Terrafrom to declare both infra and application deployment in one state

I tend to prefer infra code living separately from application deployment code. Multiple reasons for this: You want your infra team to make infra changes. You want your app team to make application ...
user avatar
  • 676
2 votes
Accepted

helm upgrade not working

This is not a Helm issue. You are probably trying to update the LabelSelector fields which are immutable. This is expected behaviour as per the kubernetes.
user avatar
1 vote

Unable to get Helm to work with ECR

Why are you adding the image tag to the pull policy? you dont need it there, just leave it like this: imagePullPolicy: {{ .Values.image.pullPolicy }}
user avatar
  • 111
1 vote

What's the way to deploy a resource once on a helm chart that is deployed multiple times?

I've eventually created an umbrella chart with alias: dependencies: - name: app repository: file://./app version: 1.0.0 alias: child1 - name: app repository: file://./app ...
user avatar
  • 121
1 vote

"Error: forwarding ports: Upgrade request required" Error in helm of a kubernetes cluster

See my answer here: Ran into this today when trying to use Garden.io for a cluster running in Jelastic. Found the solution in this Github comment: First acquire a local binary for Tiller (server-...
user avatar
  • 111
1 vote

Deploying Anchore to Kubernetes Cluster using Helm

A co-worker ended up taking over deploying this a few days ago and managed to get it working. I'm not certain what he did differently, but I know discovered very similar issues I was facing with other ...
user avatar
  • 21
1 vote

Increase Kubernetes Nginx Ingress limits for large images in Docker registry

I learned that it's not required to set the ingress class to nginx as I did in kubernetes.io/ingress.class: nginx. All annotations prefixed with nginx.ingress.kubernetes.io apply to the default ...
user avatar
  • 211

Only top scored, non community-wiki answers of a minimum length are eligible