DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
| CLI command |
|
| Description | Add a new network partition. |
| Command format |
The path to the JSON file that defines the network partition needs to be defined as the |
Short option | Long option | Description | Required | Example value |
|---|---|---|---|---|
-p | --resource-path | Folder path where the JSON file that defines the network partition is stored. | yes | <STRATOS_SOURCE_HOME>/samples/network-partitions/kubernetes/network-partition-1.json |
{
"id":"network-partition-1",
"provider":"ec2",
"partitions":[
{
"id":"partition-1",
"property":[
{
"name":"region",
"value":"default"
}
]
}
]
}
{
"id": "network-partition-1",
"provider": "mock",
"partitions": [
{
"id": "partition-1",
"property": [
{
"name": "region",
"value": "default"
}
]
}
]
}
{
"id":"network-partition-1",
"provider":"kubernetes",
"partitions":[
{
"id":"partition-1",
"property":[
{
"name":"cluster",
"value":"kubernetes-cluster-1"
}
]
}
]
}
For information on all the properties that can be used in a network partition definition, see the Network Partition Resource Definition.
Use case: Add the network partition that has been defined in the <STRATOS_SOURCE_HOME>/samples/network-partitions/kubernetes/network-partition-1.json file.
add-network-partition -p <STRATOS_SOURCE_HOME>/samples/network-partitions/kubernetes/network-partition-1.json
Successfully added network partition.