Created
August 10, 2017 12:45
-
-
Save frankscholten/3d989579c032473ec3847e134983e93a to your computer and use it in GitHub Desktop.
Unreserve a port range in Mesos or DC/OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -i \ | |
-u xyz-principal \ | |
-d slaveId=af5abbb4-da24-4591-8529-8cb62f15108b-S0 \ | |
-d resources='[ | |
{ | |
"name": "ports", | |
"type": "RANGES", | |
"ranges": { | |
"range": [ | |
{ | |
"begin": 27017, | |
"end": 27017 | |
} | |
] | |
}, | |
"role": "xyz-role", | |
"reservation": { | |
"principal": "xyz-principal", | |
"labels": { | |
"labels": [ | |
{ | |
"key": "resource_id", | |
"value": "928fb3d0-d0aa-4b30-a2a0-879b3a1fe157" | |
} | |
] | |
} | |
} | |
} | |
]' \ | |
-X POST http://master.mesos:5050/master/unreserve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For unreserve cpu