{"action":"closed","issue":{"url":"https://api.github.com/repos/maxwell92/k8sapi/issues/2","repository_url":"https://api.github.com/repos/maxwell92/k8sapi","labels_url":"https://api.github.com/repos/maxwell92/k8sapi/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/maxwell92/k8sapi/issues/2/comments","events_url":"https://api.github.com/repos/maxwell92/k8sapi/issues/2/events","html_url":"https://github.com/maxwell92/k8sapi/issues/2","id":170633667,"number":2,"title":"Deployment的Json样例","user":{"login":"lth2015","id":12841814,"avatar_url":"https://avatars.githubusercontent.com/u/12841814?v=3","gravatar_id":"","url":"https://api.github.com/users/lth2015","html_url":"https://github.com/lth2015","followers_url":"https://api.github.com/users/lth2015/followers","following_url":"https://api.github.com/users/lth2015/following{/other_user}","gists_url":"https://api.github.com/users/lth2015/gists{/gist_id}","starred_url":"https://api.github.com/users/lth2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lth2015/subscriptions","organizations_url":"https://api.github.com/users/lth2015/orgs","repos_url":"https://api.github.com/users/lth2015/repos","events_url":"https://api.github.com/users/lth2015/events{/privacy}","received_events_url":"https://api.github.com/users/lth2015/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-11T12:26:29Z","updated_at":"2016-08-11T13:48:58Z","closed_at":"2016-08-11T13:48:58Z","body":"```json\r\n\t{\r\n    \"kind\": \"Deployment\",\r\n    \"apiVersion\": \"extensions/v1beta1\",\r\n    \"metadata\": {\r\n        \"name\": \"nginx-deploy-k8sclient\",\r\n        \"namespace\": \"default\",\r\n        \"labels\": {\r\n            \"app\": \"nginx\",\r\n           \t\"version\": \"1.7.9\"\r\n        },\r\n        \"annotations\": {\r\n            \"deployment.kubernetes.io/revision\": \"1353\"\r\n        }\r\n    },\r\n    \"spec\": {\r\n        \"replicas\": 3,\r\n        \"selector\": {\r\n            \"matchLabels\": {\r\n                \"app\": \"nginx\",\r\n\t\t\t\t\"version\": \"1.7.9\"\r\n            }\r\n        },\r\n        \"template\": {\r\n            \"metadata\": {\r\n                \"creationTimestamp\": null,\r\n                \"labels\": {\r\n                    \"app\": \"nginx\",\r\n\t\t\t\t\t\"version\": \"1.7.9\"\r\n                }\r\n            },\r\n            \"spec\": {\r\n                \"containers\": [\r\n                    {\r\n                        \"name\": \"nginx\",\r\n                        \"image\": \"registry.test.com:5000/nginx:1.7.9\",\r\n                        \"ports\": [\r\n                            {\r\n                                \"containerPort\": 80,\r\n                                \"protocol\": \"TCP\"\r\n                            }\r\n                        ],\r\n                        \"resources\": {},\r\n                        \"terminationMessagePath\": \"/dev/termination-log\",\r\n                        \"imagePullPolicy\": \"IfNotPresent\"\r\n                    }\r\n                ],\r\n                \"restartPolicy\": \"Always\",\r\n                \"terminationGracePeriodSeconds\": 30,\r\n                \"dnsPolicy\": \"ClusterFirst\",\r\n                \"securityContext\": {}\r\n            }\r\n        },\r\n        \"strategy\": {\r\n            \"type\": \"RollingUpdate\",\r\n            \"rollingUpdate\": {\r\n                \"maxUnavailable\": 1,\r\n                \"maxSurge\": 1\r\n            }\r\n        }\r\n    }\r\n}\r\n`"}}
{"actor":{"display_login":"lth2015"}}