Class: Porkadot::Cmd::Install::Kubernetes::Cli

Inherits:
SubCommandBase show all
Includes:
Utils
Defined in:
lib/porkadot/cmd/install/kubernetes.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Utils

#config, #logger

Methods inherited from SubCommandBase

banner

Constructor Details

#initialize(*arg) ⇒ Cli

Returns a new instance of Cli.



6
7
8
# File 'lib/porkadot/cmd/install/kubernetes.rb', line 6

def initialize(*arg)
  super
end

Class Method Details

.subcommand_prefixObject



60
61
62
# File 'lib/porkadot/cmd/install/kubernetes.rb', line 60

def self.subcommand_prefix
  'install kubernetes'
end

Instance Method Details

#allObject



27
28
29
30
# File 'lib/porkadot/cmd/install/kubernetes.rb', line 27

def all
  logger.info "Installing kubernetes"
  self.install
end

#apiserverObject



34
35
36
37
# File 'lib/porkadot/cmd/install/kubernetes.rb', line 34

def apiserver
  logger.info "Installing kube-apiserver"
  self.install 'kube-apiserver'
end

#controller_managerObject



41
42
43
44
# File 'lib/porkadot/cmd/install/kubernetes.rb', line 41

def controller_manager
  logger.info "Installing kube-controller-manager"
  self.install 'kube-controller-manager'
end

#proxyObject



55
56
57
58
# File 'lib/porkadot/cmd/install/kubernetes.rb', line 55

def proxy
  logger.info "Installing kube-proxy"
  self.install 'kube-proxy'
end

#schedulerObject



48
49
50
51
# File 'lib/porkadot/cmd/install/kubernetes.rb', line 48

def scheduler
  logger.info "Installing kube-scheduler"
  self.install 'kube-scheduler'
end