Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

Commit 747f1a0

Browse files
committed
0.1.27: Proving out dashboard and helm paths
1 parent 6836724 commit 747f1a0

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |spec|
22
spec.name = 'kubinator'
3-
spec.version = '0.1.26'
3+
spec.version = '0.1.27'
44
spec.summary = "Deployment automation for Kubernetes"
55
spec.authors = ["Patrick Crummett"]
66
spec.homepage = 'https://github.com/phR0ze/kubinator'

kubinator

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,16 +375,18 @@ class Kubinator
375375
# (Idempotent) Install dashboard and helm
376376
#---------------------------------------------------------------------------
377377
Net::SSH.start(ips.first, @user, password:@pass, verify_host_key: :never){|ssh|
378-
podready!('etcd', ssh:ssh)
379-
podready!('apiserver', ssh:ssh)
380-
podready!('controller', ssh:ssh)
381-
podready!('scheduler', ssh:ssh)
378+
if (all || init) && (dashboard || helm)
379+
podready!('etcd', ssh:ssh)
380+
podready!('apiserver', ssh:ssh)
381+
podready!('controller', ssh:ssh)
382+
podready!('scheduler', ssh:ssh)
383+
end
382384

383385
# Install dashboard
384386
if all or dashboard
385387
if not getpods(pod:'dashboard', ssh:ssh)
386388
puts("#{ips.first}: Installing dashboard".colorize(:cyan))
387-
url = "https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml"
389+
url = "https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml"
388390
puts(ssh.exec!("kubectl create -f #{url}"))
389391
else
390392
puts("#{ips.first}: Installing dashboard...skipped".colorize(:cyan))
@@ -401,6 +403,9 @@ class Kubinator
401403
puts("#{ips.first}: Initializing/updating helm...skipped".colorize(:cyan))
402404
end
403405
end
406+
407+
podready!('dashboard', ssh:ssh) if all or dashboard
408+
podready!('tiller', ssh:ssh) if all or helm
404409
}
405410

406411
puts("Cluster creation took: #{Time.now - elapse} sec".colorize(:light_yellow))

0 commit comments

Comments
 (0)