forked from christian-posta/vagrant-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
centos71-kubernetes-virtualbox.json
107 lines (107 loc) · 2.65 KB
/
centos71-kubernetes-virtualbox.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "./artifacts/centos71/centos71.ovf",
"ssh_password": "{{ user `ssh_password` }}",
"ssh_username": "{{ user `ssh_username` }}",
"ssh_wait_timeout": "180s",
"shutdown_command": "echo 'vagrant'|sudo -S /sbin/halt -h -p",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"1024"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"1"
]
],
"vm_name": "centos71-kubernetes",
"output_directory": "./artifacts/centos71-kubernetes"
}
],
"provisioners": [
{
"type": "file",
"source": "kubernetes-configs/kubeconfig",
"destination": "/tmp/kubeconfig"
},
{
"type": "file",
"source": "kubernetes-configs/ca.pem",
"destination": "/tmp/ca.pem"
},
{
"type": "file",
"source": "kubernetes-configs/apiserver.crt",
"destination": "/tmp/apiserver.crt"
},
{
"type": "file",
"source": "kubernetes-configs/apiserver.key",
"destination": "/tmp/apiserver.key"
},
{
"type": "file",
"source": "kubernetes-configs/kubesystem-namespace.yaml",
"destination": "/tmp/kubesystem-namespace.yaml"
},
{
"type": "file",
"source": "kubernetes-configs/skydns.yaml",
"destination": "/tmp/skydns.yaml"
},
{
"type": "file",
"source": "kubernetes-configs/config",
"destination": "/tmp/config"
},
{
"type": "file",
"source": "kubernetes-configs/apiserver",
"destination": "/tmp/apiserver"
},
{
"type": "file",
"source": "kubernetes-configs/controller-manager",
"destination": "/tmp/controller-manager"
},
{
"type": "file",
"source": "kubernetes-configs/kubelet",
"destination": "/tmp/kubelet"
},
{
"environment_vars": [
"UPDATE={{user `update`}}",
"INSTALL_VAGRANT_KEY={{user `install_vagrant_key`}}",
"SSH_USERNAME={{user `ssh_username`}}",
"SSH_PASSWORD={{user `ssh_password`}}"
],
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"script/kubernetes.sh"
],
"type": "shell"
}
],
"post-processors": [
{
"keep_input_artifact": true,
"output": "box/{{.Provider}}/centos71-kubernetes-x64-{{user `version`}}.box",
"type": "vagrant"
}
],
"variables": {
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"version": "1.0.0",
"update": "true",
"install_vagrant_key": "true"
}
}