Skip to content

feat(helm): add kubeconfig context switching to init command - #1359

Merged
adamreese merged 1 commit into
helm:masterfrom
adamreese:feat/kube-context-init
Oct 13, 2016
Merged

adamreese merged 1 commit into
helm:masterfrom
adamreese:feat/kube-context-init

Conversation

@adamreese

@adamreese adamreese commented Oct 13, 2016 •

Copy link
Copy Markdown
Member
  • decouple tunnel from kube client
  • add context switching for init cmd
  • add unit tests for installer and init command
  • refactor installer and remove unused code

This change is Reviewable

- decouple tunnel from kube client
- add context switching for init cmd
- add unit tests for installer and init command
- refactor installer and remove unused code
@rimusz

rimusz commented Oct 13, 2016

Copy link
Copy Markdown
Contributor

Adam awesome feature, thanks for it

@technosophos

Copy link
Copy Markdown
Member

Manually verified:

⇒  ./scripts/local-cluster.sh restart
Deleting all resources in kubernetes...
Stopping kubelet...
Stopping remaining kubernetes containers...
Verifying Prerequisites....
Adding iptables hackery for docker-machine...
Wrote config for kubeconfig using context: 'docker'
Starting kubelet
....
Started master components in 20 seconds.
Kubernetes master is running at http://192.168.99.100:8080
KubeDNS is running at http://192.168.99.100:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns
kubernetes-dashboard is running at http://192.168.99.100:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
☃ @ENG001590 ~/Code/Go/src/k8s.io/helm «/Users/mattbutcher/Code» ‹0f5990f*›
⇒  helm init
$HELM_HOME has been configured at /Users/mattbutcher/Code/helm_home.

Tiller (the helm server side component) has been installed into your Kubernetes Cluster.
Happy Helming!
☃ @ENG001590 ~/Code/Go/src/k8s.io/helm «/Users/mattbutcher/Code» ‹0f5990f*›
⇒  k get po -n kube-system
NAME                                READY     STATUS    RESTARTS   AGE
k8s-etcd-127.0.0.1                  1/1       Running   0          41s
k8s-master-127.0.0.1                4/4       Running   1          41s
kube-dns-v20-21eti                  3/3       Running   0          39s
kubernetes-dashboard-v1.4.0-16nf9   1/1       Running   0          39s
tiller-deploy-637859184-47tmh       0/1       Running   0          8s
☃ @ENG001590 ~/Code/Go/src/k8s.io/helm «/Users/mattbutcher/Code» ‹0f5990f*›
⇒  helm install docs/examples/alpine
listening-duck
Last Deployed: Thu Oct 13 16:15:43 2016
Namespace: default
Status: DEPLOYED

Resources:
==> v1/Pod
NAME                       READY     STATUS              RESTARTS   AGE
listening-duck-my-alpine   0/1       ContainerCreating   0          0s


☃ @ENG001590 ~/Code/Go/src/k8s.io/helm «/Users/mattbutcher/Code» ‹0f5990f*›
⇒  k get po
NAME                       READY     STATUS    RESTARTS   AGE
listening-duck-my-alpine   1/1       Running   0          6s

@adamreese
adamreese merged commit fb5c098 into helm:master Oct 13, 2016
@adamreese
adamreese deleted the feat/kube-context-init branch October 13, 2016 22:37
MichaelMorrisEst pushed a commit to Nordix/helm that referenced this pull request Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants