Created
November 24, 2016 14:55
-
-
Save aborilov/3d80f26b3a60cd6bdfadb722dfce8570 to your computer and use it in GitHub Desktop.
apply_edit
This file contains 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
http --verify no PATCH https://95.164.68.50/api/podapi/a448d88b-649f-420e-8fb0-e4e7da30fb3a X-Auth-Token:`http --verify no https://95.164.68.50/api/auth/token2 username=test password=admin | jq -r '.token'` < redeploy.json | |
{ | |
"command": "edit", | |
"edited_config": { | |
"containers": [ | |
{ | |
"args": [ | |
"nginx", | |
"-g", | |
"daemon off;" | |
], | |
"command": [], | |
"env": [ | |
{ | |
"name": "PATH", | |
"value": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
}, | |
{ | |
"name": "NGINX_VERSION", | |
"value": "1.11.4-1~jessie" | |
} | |
], | |
"image": "nginx", | |
"imagePullPolicy": "Always", | |
"kubes": 1, | |
"lastState": {}, | |
"limits": { | |
"cpu": "0.25 Cores", | |
"memory": "128 MB" | |
}, | |
"name": "f5e1lyrr", | |
"ports": [ | |
{ | |
"containerPort": 443, | |
"hostPort": 443, | |
"isPublic": false, | |
"protocol": "tcp" | |
}, | |
{ | |
"containerPort": 80, | |
"hostPort": 80, | |
"isPublic": true, | |
"protocol": "tcp" | |
} | |
], | |
"ready": true, | |
"restartCount": 0, | |
"sourceUrl": "hub.docker.com/_/nginx", | |
"startedAt": "2016-11-22T12:04:30Z", | |
"state": "running", | |
"terminationMessagePath": "/dev/termination-log", | |
"volumeMounts": [], | |
"workingDir": "" | |
} | |
], | |
"k8s_status": null, | |
"kube_type": 1, | |
"name": "Nameless", | |
"replicas": 10, | |
"restartPolicy": "Always", | |
"volumes": [] | |
} | |
} | |
{ | |
"command": "redeploy", | |
"commandOptions": {"applyEdit": true} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment