49 lines
1.8 KiB
JSON
49 lines
1.8 KiB
JSON
{
|
|
"name": "<%= template_name %>",
|
|
"deployment": "straight",
|
|
"description": "Cluster Kubernetes (k8s)",
|
|
"roles": [
|
|
{
|
|
"name": "leader",
|
|
"cardinality": 1,
|
|
"vm_template": <%= getTemplateByName(oneCli, vm_name).id %>,
|
|
"shutdown_action": "terminate",
|
|
"vm_template_contents": "NIC = [\n NAME = \"NIC0\",\n NETWORK_ID = \"$main\",\n RDP = \"YES\" ]\nNIC = [\n NAME = \"NIC1\",\n NETWORK_ID = \"$internal\" ]\n",
|
|
"elasticity_policies": [],
|
|
"scheduled_policies": []
|
|
},
|
|
{
|
|
"name": "master",
|
|
"cardinality": 2,
|
|
"vm_template": <%= getTemplateByName(oneCli, vm_name).id %>,
|
|
"shutdown_action": "terminate",
|
|
"vm_template_contents": "NIC = [\n NAME = \"NIC0\",\n NETWORK_ID = \"$main\",\n RDP = \"YES\" ]\nNIC = [\n NAME = \"NIC1\",\n NETWORK_ID = \"$internal\" ]\n",
|
|
"elasticity_policies": [],
|
|
"scheduled_policies": []
|
|
},
|
|
{
|
|
"name": "worker",
|
|
"cardinality": 4,
|
|
"vm_template": <%= getTemplateByName(oneCli, vm_name).id %>,
|
|
"shutdown_action": "terminate",
|
|
"parents": [
|
|
"leader"
|
|
],
|
|
"vm_template_contents": "NIC = [\n NAME = \"NIC0\",\n NETWORK_ID = \"$main\",\n RDP = \"YES\" ]\nNIC = [\n NAME = \"NIC1\",\n NETWORK_ID = \"$internal\" ]\n",
|
|
"elasticity_policies": [],
|
|
"scheduled_policies": []
|
|
}
|
|
],
|
|
"networks": {
|
|
"main": "M|network|Main network| |id:",
|
|
"internal": "M|network|Internal network| |id:"
|
|
},
|
|
"custom_attrs": {
|
|
"KUBEAPPS_DNS_NAME": "M|text|DNS Name for kubeapps service| |kubeapps.k3s-eole.local",
|
|
"INGRESS_PROVIDER": "O|list|Default ingress to install|nginx, traefik, |",
|
|
"LE_EMAIL": "M|text|Email | |"
|
|
},
|
|
"shutdown_action": "terminate",
|
|
"ready_status_gate": true
|
|
}
|