mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
demo: Use IP addresses as Logical IDs in etcd infrakit config
Instead of specifying the number of instances, provide a list of IP addresses for instances. These are passed to the instance plugin as LogicalID. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
ea3bfccf5e
commit
df5c858d38
@ -2,7 +2,13 @@
|
|||||||
"ID": "cattle",
|
"ID": "cattle",
|
||||||
"Properties": {
|
"Properties": {
|
||||||
"Allocation": {
|
"Allocation": {
|
||||||
"Size": 5
|
"LogicalIDs": [
|
||||||
|
"192.168.65.200",
|
||||||
|
"192.168.65.201",
|
||||||
|
"192.168.65.202",
|
||||||
|
"192.168.65.203",
|
||||||
|
"192.168.65.204"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"Instance": {
|
"Instance": {
|
||||||
"Plugin": "instance-hyperkit",
|
"Plugin": "instance-hyperkit",
|
||||||
@ -10,7 +16,7 @@
|
|||||||
"Moby": "etcd",
|
"Moby": "etcd",
|
||||||
"Disk" : 0,
|
"Disk" : 0,
|
||||||
"CPUs" : 1,
|
"CPUs" : 1,
|
||||||
"Memory" : 512
|
"Memory" : 512,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Flavor": {
|
"Flavor": {
|
||||||
|
Loading…
Reference in New Issue
Block a user