Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
d0d99674
Unverified
Commit
d0d99674
authored
5 years ago
by
Woohyung Han
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix to Vagrant config.rb apply correctly (#5525)
parent
b51b52ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Vagrantfile
+25
-25
25 additions, 25 deletions
Vagrantfile
with
25 additions
and
25 deletions
Vagrantfile
+
25
−
25
View file @
d0d99674
...
...
@@ -30,42 +30,42 @@ SUPPORTED_OS = {
"oraclelinux"
=>
{
box:
"generic/oracle7"
,
user:
"vagrant"
},
}
if
File
.
exist?
(
CONFIG
)
require
CONFIG
end
# Defaults for config options defined in CONFIG
$num_instances
=
3
$instance_name_prefix
=
"k8s"
$vm_gui
=
false
$vm_memory
=
2048
$vm_cpus
=
1
$shared_folders
=
{}
$forwarded_ports
=
{}
$subnet
=
"172.17.8"
$os
=
"ubuntu1804"
$network_plugin
=
"flannel"
$num_instances
||
=
3
$instance_name_prefix
||
=
"k8s"
$vm_gui
||
=
false
$vm_memory
||
=
2048
$vm_cpus
||
=
1
$shared_folders
||
=
{}
$forwarded_ports
||
=
{}
$subnet
||
=
"172.17.8"
$os
||
=
"ubuntu1804"
$network_plugin
||
=
"flannel"
# Setting multi_networking to true will install Multus: https://github.com/intel/multus-cni
$multi_networking
=
false
$multi_networking
||
=
false
# The first three nodes are etcd servers
$etcd_instances
=
$num_instances
$etcd_instances
||
=
$num_instances
# The first two nodes are kube masters
$kube_master_instances
=
$num_instances
==
1
?
$num_instances
:
(
$num_instances
-
1
)
$kube_master_instances
||
=
$num_instances
==
1
?
$num_instances
:
(
$num_instances
-
1
)
# All nodes are kube nodes
$kube_node_instances
=
$num_instances
$kube_node_instances
||
=
$num_instances
# The following only works when using the libvirt provider
$kube_node_instances_with_disks
=
false
$kube_node_instances_with_disks_size
=
"20G"
$kube_node_instances_with_disks_number
=
2
$override_disk_size
=
false
$disk_size
=
"20GB"
$local_path_provisioner_enabled
=
false
$local_path_provisioner_claim_root
=
"/opt/local-path-provisioner/"
$kube_node_instances_with_disks
||
=
false
$kube_node_instances_with_disks_size
||
=
"20G"
$kube_node_instances_with_disks_number
||
=
2
$override_disk_size
||
=
false
$disk_size
||
=
"20GB"
$local_path_provisioner_enabled
||
=
false
$local_path_provisioner_claim_root
||
=
"/opt/local-path-provisioner/"
$playbook
=
"cluster.yml"
host_vars
=
{}
if
File
.
exist?
(
CONFIG
)
require
CONFIG
end
$box
=
SUPPORTED_OS
[
$os
][
:box
]
# if $inventory is not set, try to use example
$inventory
=
"inventory/sample"
if
!
$inventory
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment