9
10
11
12
13
14
15
16
17
|
# File 'lib/kuber_kit/service_deployer/strategies/kubernetes.rb', line 9
def deploy(shell, service)
service_config = reader.read(shell, service)
config_path = "#{configs.service_config_dir}/#{service.name}.yml"
shell.write(config_path, service_config)
kubeconfig_path = KuberKit.current_configuration.kubeconfig_path
kubectl_commands.apply_file(shell, config_path, kubeconfig_path: kubeconfig_path)
kubectl_commands.rolling_restart(shell, service.uri, kubeconfig_path: kubeconfig_path)
end
|