Hello @crisj , yes I can share.
Basically are needed to adjust 2 files.
First file located at /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/kubernetes/helm.rb
Original file:
# frozen_string_literal: true
module Gitlab
module Kubernetes
module Helm
HELM_VERSION = '2.16.6'
KUBECTL_VERSION = '1.13.12'
NAMESPACE = 'gitlab-managed-apps'
NAMESPACE_LABELS = { 'app.gitlab.com/managed_by' => :gitlab }.freeze
SERVICE_ACCOUNT = 'tiller'
CLUSTER_ROLE_BINDING = 'tiller-admin'
CLUSTER_ROLE = 'cluster-admin'
end
end
end
Adjusted file:
# frozen_string_literal: true
module Gitlab
module Kubernetes
module Helm
HELM_VERSION = '2.16.6'
KUBECTL_VERSION = '1.13.12'
HTTP_PROXY= 'http://<proxy-ip>:3128'
HTTPS_PROXY= 'http://<proxy-ip>:3128'
NO_PROXY= "172.19.0.0/16, 172.20.0.0/16, <my-network-ip-range>/16, localhost, 127.0.0.1"
NAMESPACE = 'gitlab-managed-apps'
NAMESPACE_LABELS = { 'app.gitlab.com/managed_by' => :gitlab }.freeze
SERVICE_ACCOUNT = 'tiller'
CLUSTER_ROLE_BINDING = 'tiller-admin'
CLUSTER_ROLE = 'cluster-admin'
end
end
end
for the NO_PROXY, the 1st and 2nd ip-range are the internal k8s network range, it’s really important to keep the space after the comma, without this space it’s doesn’t work. I worked hard to identify this space.
Second file located at /opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/kubernetes/helm/pod.rd
Original part of the file that need to be adjusted:
def generate_pod_env(command)
{
HELM_VERSION: Gitlab::Kubernetes::Helm::HELM_VERSION,
TILLER_NAMESPACE: namespace_name,
COMMAND_SCRIPT: command.generate_script
}.map { |key, value| { name: key, value: value } }
end
Adjusted part of the file:
def generate_pod_env(command)
{
HELM_VERSION: Gitlab::Kubernetes::Helm::HELM_VERSION,
HTTP_PROXY: Gitlab::Kubernetes::Helm::HTTP_PROXY,
HTTPS_PROXY: Gitlab::Kubernetes::Helm::HTTPS_PROXY,
NO_PROXY: Gitlab::Kubernetes::Helm::NO_PROXY,
TILLER_NAMESPACE: namespace_name,
COMMAND_SCRIPT: command.generate_script
}.map { |key, value| { name: key, value: value } }
end
With this adjustments I can deploy the helm tiller and all other applications with success.
Now I’m testing the deploy.
Anibal