Skip to content

Instantly share code, notes, and snippets.

@ipedrazas
Created July 27, 2016 10:23
Show Gist options
  • Save ipedrazas/4ec14d9ecddce6e65769164f53af16f8 to your computer and use it in GitHub Desktop.
Save ipedrazas/4ec14d9ecddce6e65769164f53af16f8 to your computer and use it in GitHub Desktop.
Update kubernetes node using the api server - PATCH
curl -k \
--header "Content-Type:application/merge-patch+json" \
--header "Accept: application/json" \
--header "Authorization: Bearer $TOKEN" \
--request PATCH \
--data '{ "metadata": {"labels": {"base": "coreOS"}}}' \
$API_SERVER/api/v1/nodes/172.17.4.202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment