minishift / minishift-addons

A repository for the community to exchange Minishift add-ons
Apache License 2.0
71 stars 86 forks source link

addon helm fails to install with openshift v3.10, still working with openshift 3.9.0 #161

Open tiraboschi opened 5 years ago

tiraboschi commented 5 years ago

addon helm fails to install with openshift v3.10, still working with openshift 3.9.0

It seams a port configuration issue between 8080 and 8443:

[stirabos@t470s add-ons]$ minishift addons apply helm
-- Applying addon 'helm':..Error applying the add-on: Error executing command 'ssh command error:
command : docker run --rm -v /home/docker:/root:z -v /var/lib/minishift/openshift.local.config:/var/lib/minishift/openshift.local.config:z --net=host --env KUBECONFIG=/var/lib/minishift/openshift.local.config/master/admin.kubeconfig --env HELM_HOST=localhost:8443 lachlanevenson/k8s-helm:v2.8.1 init
err     : exit status 1
output  : Creating /root/.helm 
Creating /root/.helm/repository 
Creating /root/.helm/repository/cache 
Creating /root/.helm/repository/local 
Creating /root/.helm/plugins 
Creating /root/.helm/starters 
Creating /root/.helm/cache/archive 
Creating /root/.helm/repository/repositories.yaml 
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com 
Adding local repo with URL: http://127.0.0.1:8879/charts 
$HELM_HOME has been configured at /root/.helm.
Error: error installing: Post http://localhost:8080/apis/extensions/v1beta1/namespaces/kube-system/deployments: dial tcp [::1]:8080: getsockopt: connection refused
':

While if I start minishift with minishift start --openshift-version v3.9.0 it works.

ivekpi commented 5 years ago

Same problem, with openshift v3.11

simbo1905 commented 5 years ago

Trying --openshift-version v3.9.0 gives me:

Minishift does not support OpenShift version v3.9.0. You need to use a version >= v3.10.0

michael-wirth commented 5 years ago

same problem. is there any solution of workaround?

simbo1905 commented 5 years ago

don't know a work around for 3.9 but 3.11 works fine using these instructions https://github.com/ocd-scm/ocd-meta/wiki/Minishift#helm-tiller-on-minishift

bdobsonca commented 4 years ago

Another interested party looking for a solution to this issue which is a blocker. Is there any ETA for when this will be working?

psimonski commented 4 years ago

Helm will figure out where to install Tiller by reading your Kubernetes configuration file (usually $HOME/.kube/config). This is the same file that kubectl uses. Source: https://helm.sh/docs/using_helm/

In my Minishift add-on script (helm.addon) it's: --env KUBECONFIG=/var/lib/minishift/openshift.local.config/master/admin.kubeconfig Create the file if it does not exists.

pancudaniel7 commented 4 years ago

I have the same problem running this on mac using minishift version v3.10.0

guntutur commented 4 years ago

is there any workaround for this? v3.11.0 still facing the same issue

rishi871 commented 4 years ago

I am also facing the same issue with v3.11.0? any help appreciated

Bennyweasl commented 4 years ago

Still and open issue