码迷,mamicode.com
首页 > 其他好文 > 详细

k8s debug

时间:2018-02-17 10:28:06      阅读:313      评论:0      收藏:0      [点我收藏+]

标签:ext   provider   ctr   min   sign   eset   roles   insecure   extra   

debug info

在实际使用中,通常通过kubectl来访问apiserver,也可以通过Kubernetes各个语言的client库来访问apiserver。在使用kubectl时,打开调试日志也可以看到每个API调用的格式,比如

$ kubectl --v=8 get pods

I0216 16:55:39.336234 11813 round_trippers.go:383] GET http://localhost:8080/api [434/568]
I0216 16:55:39.336291 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.336298 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.336304 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.349718 11813 round_trippers.go:408] Response Status: 200 OK in 13 milliseconds
I0216 16:55:39.349764 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.349776 11813 round_trippers.go:414] Content-Length: 132
I0216 16:55:39.349785 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.349795 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.356188 11813 request.go:873] Response Body: {"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{
"clientCIDR":"0.0.0.0/0","serverAddress":"localhost:6443"}]}
I0216 16:55:39.357957 11813 round_trippers.go:383] GET http://localhost:8080/apis
I0216 16:55:39.357997 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.358009 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.358020 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.364869 11813 round_trippers.go:408] Response Status: 200 OK in 6 milliseconds
I0216 16:55:39.364890 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.364896 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.364904 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.377872 11813 request.go:873] Response Body: {"kind":"APIGroupList","apiVersion":"v1","groups":[{"name":"apiregistra
tion.k8s.io","versions":[{"groupVersion":"apiregistration.k8s.io/v1beta1","version":"v1beta1"}],"preferredVersion":{"groupVersion":"
apiregistration.k8s.io/v1beta1","version":"v1beta1"},"serverAddressByClientCIDRs":null},{"name":"extensions","versions":[{"groupVers
ion":"extensions/v1beta1","version":"v1beta1"}],"preferredVersion":{"groupVersion":"extensions/v1beta1","version":"v1beta1"},"server
AddressByClientCIDRs":null},{"name":"apps","versions":[{"groupVersion":"apps/v1","version":"v1"},{"groupVersion":"apps/v1beta2","ver
sion":"v1beta2"},{"groupVersion":"apps/v1beta1","version":"v1beta1"}],"preferredVersion":{"groupVersion":"apps/v1","version":"v1"},"
serverAddressByClientCIDRs":null},{"name":"events.k8s.io","versions":[{"groupVersion":"events.k8s.io/v1beta1","version":"v1beta1"}],
"preferredVersion":{"groupVersion":"events.k8s.io/v1beta1","version":"v1beta1"},"serverAddressByClientCIDRs":null},{"name":"authentication.k8s.io","versions":[{" [truncated 2973 chars]

I0216 16:55:39.384095 11813 round_trippers.go:383] GET http://localhost:8080/apis/apiregistration.k8s.io/v1beta1 [406/568]
I0216 16:55:39.384116 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.384129 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.384142 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.388905 11813 round_trippers.go:408] Response Status: 200 OK in 4 milliseconds
I0216 16:55:39.389920 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.390163 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.390566 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.390813 11813 round_trippers.go:414] Content-Length: 378
I0216 16:55:39.401720 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"apiregistra
tion.k8s.io/v1beta1","resources":[{"name":"apiservices","singularName":"","namespaced":false,"kind":"APIService","verbs":["create","
delete","deletecollection","get","list","patch","update","watch"]},{"name":"apiservices/status","singularName":"","namespaced":false
,"kind":"APIService","verbs":["update"]}]}
I0216 16:55:39.404752 11813 round_trippers.go:383] GET http://localhost:8080/apis/extensions/v1beta1
I0216 16:55:39.404785 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.405344 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.405358 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.420389 11813 round_trippers.go:408] Response Status: 200 OK in 14 milliseconds
I0216 16:55:39.420420 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.420434 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.420443 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT

I0216 16:55:39.423127 11813 request.go:873] Response Body: {"kind":"APIResourceList","groupVersion":"extensions/v1beta1","resources":[{"name":"daemonsets","singularName":"","namespaced":true,"kind":"DaemonSet","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ds"],"categories":["all"]},{"name":"daemonsets/status","singularName":"","namespaced":true,"kind":"DaemonSet","verbs":["get","patch","update"]},{"name":"deployments","singularName":"","namespaced":true,"kind":"Deployment","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["deploy"],"categories":["all"]},{"name":"deployments/rollback","singularName":"","namespaced":true,"kind":"DeploymentRollback","verbs":["create"]},{"name":"deployments/scale","singularName":"","namespaced":true,"group":"extensions","version":"v1beta1","kind":"Scale","verbs":["get","patch","update"]},{"name":"deployments/status","singularName":"","namespaced":true,"kind":"Deployment","verbs":["get","patch","update"]},{"name":"ingresses","singularNam [truncated 1379 chars]
I0216 16:55:39.424798 11813 round_trippers.go:383] GET http://localhost:8080/apis/apps/v1
I0216 16:55:39.424819 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.424826 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.424836 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.425836 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.425852 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.425861 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.425867 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.425875 11813 round_trippers.go:414] Content-Length: 2016
I0216 16:55:39.426894 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"apps/v1","resources":[{"name":"controllerrevisions","singularName":"","namespaced":true,"kind":"ControllerRevision","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"daemonsets","singularName":"","namespaced":true,"kind":"DaemonSet","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ds"],"categories":["all"]},{"name":"daemonsets/status","singularName":"","namespaced":true,"kind":"DaemonSet","verbs":["get","patch","update"]},{"name":"deployments","singularName":"","namespaced":true,"kind":"Deployment","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["deploy"],"categories":["all"]},{"name":"deployments/scale","singularName":"","namespaced":true,"group":"autoscaling","version":"v1","kind":"Scale","verbs":["get","patch","update"]},{"name":"deployments/status","singularName":"","namespaced":true,"kind":"Deployment [truncated 992 chars]

I0216 16:55:39.428432 11813 round_trippers.go:383] GET http://localhost:8080/apis/apps/v1beta2 [358/568]
I0216 16:55:39.428471 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.428482 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.428491 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.430582 11813 round_trippers.go:408] Response Status: 200 OK in 2 milliseconds
I0216 16:55:39.430915 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.431085 11813 round_trippers.go:414] Content-Length: 2015
I0216 16:55:39.431262 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.431512 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.433986 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"apps/v1beta2","resources":[{"name":"controllerrevisions","singularName":"","namespaced":true,"kind":"ControllerRevision","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"daemonsets","singularName":"","namespaced":true,"kind":"DaemonSet","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ds"],"categories":["all"]},{"name":"daemonsets/status","singularName":"","namespaced":true,"kind":"DaemonSet","verbs":["get","patch","update"]},{"name":"deployments","singularName":"","namespaced":true,"kind":"Deployment","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["deploy"],"categories":["all"]},{"name":"deployments/scale","singularName":"","namespaced":true,"group":"apps","version":"v1beta2","kind":"Scale","verbs":"get","patch","update"]},{"name":"deployments/status","singularName":"","namespaced":true,"kind":"Deploym [truncated 991 chars]
I0216 16:55:39.436429 11813 round_trippers.go:383] GET http://localhost:8080/apis/apps/v1beta1
I0216 16:55:39.436770 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.436949 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.437597 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.438788 11813 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I0216 16:55:39.438814 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.438830 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.438846 11813 round_trippers.go:414] Content-Length: 1338
I0216 16:55:39.438862 11813 round_trippers.go:414] Content-Type: application/json

I0216 16:55:39.439880 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"apps/v1beta1","resources":[{"name":"controllerrevisions","singularName":"","namespaced":true,"kind":"ControllerRevision","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"deployments","singularName":"","namespaced":true,"kind":"Deployment","verbs":"create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["deploy"],"categories":["all"]},{"name":"deployments/rollback","singularName":"","namespaced":true,"kind":"DeploymentRollback","verbs":["create"]},{"name":"deployments/scale","singularName":"","namespaced":true,"group":"apps","version":"v1beta1","kind":"Scale","verbs":["get","patch","update"]},{"name":"deployments/status","singularName":"","namespaced":true,"kind":"Deployment","verbs":["get","patch","update"]},{"name":"statefulsets","singularName":"","namespaced":true,"kind":"StatefulSet","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]," [truncated 314 chars]
I0216 16:55:39.441954 11813 round_trippers.go:383] GET http://localhost:8080/apis/events.k8s.io/v1beta1
I0216 16:55:39.441974 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.441990 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.442000 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.442898 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.442924 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.442937 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.442945 11813 round_trippers.go:414] Content-Length: 272
I0216 16:55:39.442951 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.443861 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"events.k8s.
io/v1beta1","resources":[{"name":"events","singularName":"","namespaced":true,"kind":"Event","verbs":["create","delete","deletecolle
ction","get","list","patch","update","watch"],"shortNames":["ev"]}]}
I0216 16:55:39.445456 11813 round_trippers.go:383] GET http://localhost:8080/apis/authentication.k8s.io/v1
I0216 16:55:39.445477 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.445490 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.445498 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.446472 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.446695 11813 round_trippers.go:411] Response Headers:

I0216 16:55:39.446888 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.447120 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.447322 11813 round_trippers.go:414] Content-Length: 202
I0216 16:55:39.448618 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"authentication.k8s.io/v1","resources":[{"name":"tokenreviews","singularName":"","namespaced":false,"kind":"TokenReview","verbs":["create"]}]}
I0216 16:55:39.450912 11813 round_trippers.go:383] GET http://localhost:8080/apis/authentication.k8s.io/v1beta1
I0216 16:55:39.451150 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.451338 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.451557 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.452701 11813 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I0216 16:55:39.452722 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.452728 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.452737 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.452747 11813 round_trippers.go:414] Content-Length: 207
I0216 16:55:39.453821 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"authentication.k8s.io/v1beta1","resources":[{"name":"tokenreviews","singularName":"","namespaced":false,"kind":"TokenReview","verbs":["create"]}]}
I0216 16:55:39.455094 11813 round_trippers.go:383] GET http://localhost:8080/apis/authorization.k8s.io/v1
I0216 16:55:39.455112 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.455121 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.455130 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.456237 11813 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I0216 16:55:39.456253 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.456262 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.456270 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.456276 11813 round_trippers.go:414] Content-Length: 591

I0216 16:55:39.458231 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"authorization.k8s.io/v1","resources":[{"name":"localsubjectaccessreviews","singularName":"","namespaced":true,"kind":"LocalSubjectAccessReview","verbs":["create"]},{"name":"selfsubjectaccessreviews","singularName":"","namespaced":false,"kind":"SelfSubjectAccessReview","verbs":["create"]},{"name":"selfsubjectrulesreviews","singularName":"","namespaced":false,"kind":"SelfSubjectRulesReview","verbs":["create"]},{"name":"subjectaccessreviews","singularName":"","namespaced":false,"kind":"SubjectAccessReview","verbs":["create"]}]}
I0216 16:55:39.459369 11813 round_trippers.go:383] GET http://localhost:8080/apis/authorization.k8s.io/v1beta1
I0216 16:55:39.459386 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.459396 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.459404 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.460193 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.460214 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.460531 11813 round_trippers.go:414] Content-Length: 596
I0216 16:55:39.460693 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.460926 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.462260 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"authorization.k8s.io/v1beta1","resources":[{"name":"localsubjectaccessreviews","singularName":"","namespaced":true,"kind":"LocalSubjectAccessReview","verbs":["create"]},{"name":"selfsubjectaccessreviews","singularName":"","namespaced":false,"kind":"SelfSubjectAccessReview","verbs":["create"]},{"name":"selfsubjectrulesreviews","singularName":"","namespaced":false,"kind":"SelfSubjectRulesReview","verbs":["create"]},{"name":"subjectaccessreviews","singularName":"","namespaced":false,"kind":"SubjectAccessReview","verbs":["create"]}]}
I0216 16:55:39.464066 11813 round_trippers.go:383] GET http://localhost:8080/apis/autoscaling/v1
I0216 16:55:39.464229 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.464354 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.464483 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.465731 11813 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I0216 16:55:39.465746 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.465759 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.465767 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT

I0216 16:55:39.465776 11813 round_trippers.go:414] Content-Length: 468
I0216 16:55:39.466701 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"autoscaling/v1","resources":[{"name":"horizontalpodautoscalers","singularName":"","namespaced":true,"kind":"HorizontalPodAutoscaler","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["hpa"],"categories":["all"]},{"name":"horizontalpodautoscalers/status","singularName":"","namespaced":true,"kind":"HorizontalPodAutoscaler","verbs":["get","patch","update"]}]}
I0216 16:55:39.467850 11813 round_trippers.go:383] GET http://localhost:8080/apis/autoscaling/v2beta1
I0216 16:55:39.467867 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.467873 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.467882 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.468869 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.468883 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.468895 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.468903 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.468910 11813 round_trippers.go:414] Content-Length: 473
I0216 16:55:39.470169 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"autoscaling/v2beta1","resources":[{"name":"horizontalpodautoscalers","singularName":"","namespaced":true,"kind":"HorizontalPodAutoscaler","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["hpa"],"categories":["all"]},{"name":"horizontalpodautoscalers/status","singularName":"","namespaced":true,"kind":"HorizontalPodAutoscaler","verbs":["get","patch","update"]}]}
I0216 16:55:39.471262 11813 round_trippers.go:383] GET http://localhost:8080/apis/batch/v1
I0216 16:55:39.471279 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.471288 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.471296 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.472239 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.472253 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.472275 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.472282 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT

I0216 16:55:39.472287 11813 round_trippers.go:414] Content-Length: 361 [224/568]
I0216 16:55:39.473873 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"batch/v1","resources":[{"name":"jobs","singularName":"","namespaced":true,"kind":"Job","verbs":"create","delete","deletecollection","get","list","patch","update","watch"],"categories":["all"]},{"name":"jobs/status","singularName":"","namespaced":true,"kind":"Job","verbs":["get","patch","update"]}]}
I0216 16:55:39.475384 11813 round_trippers.go:383] GET http://localhost:8080/apis/batch/v1beta1
I0216 16:55:39.475405 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.475418 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.475427 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.478412 11813 round_trippers.go:408] Response Status: 200 OK in 2 milliseconds
I0216 16:55:39.478430 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.478443 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.478454 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.478460 11813 round_trippers.go:414] Content-Length: 382
I0216 16:55:39.479588 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"batch/v1beta1","resources":[{"name":"cronjobs","singularName":"","namespaced":true,"kind":"CronJob","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"categories":["all"]},{"name":"cronjobs/status","singularName":"","namespaced":true,"kind":"CronJob","verbs":["get","patch","update"]}]}
I0216 16:55:39.480757 11813 round_trippers.go:383] GET http://localhost:8080/apis/certificates.k8s.io/v1beta1
I0216 16:55:39.480773 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.480782 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.480791 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.482028 11813 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I0216 16:55:39.482042 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.482055 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.482064 11813 round_trippers.go:414] Content-Length: 594
I0216 16:55:39.482071 11813 round_trippers.go:414] Content-Type: application/json

]
I0216 16:55:39.483016 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"certificates.k8s.io/v1beta1","resources":[{"name":"certificatesigningrequests","singularName":"","namespaced":false,"kind":"CertificateSigningrequest","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["csr"]},{"name":"certificatesigningrequests/approval","singularName":"","namespaced":false,"kind":"CertificateSigningRequest","verbs":["update"]},{"name":"certificatesigningrequests/status","singularName":"","namespaced":false,"kind":"CertificateSigningRequest","verbs":["update"]}]}
I0216 16:55:39.484099 11813 round_trippers.go:383] GET http://localhost:8080/apis/networking.k8s.io/v1
I0216 16:55:39.484116 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.484124 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.484134 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.492547 11813 round_trippers.go:408] Response Status: 200 OK in 8 milliseconds
I0216 16:55:39.492584 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.492598 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.492608 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.492634 11813 round_trippers.go:414] Content-Length: 292
I0216 16:55:39.494399 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"networking.k8s.io/v1","resources":[{"name":"networkpolicies","singularName":"","namespaced":true,"kind":"NetworkPolicy","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["netpol"]}]}
I0216 16:55:39.495750 11813 round_trippers.go:383] GET http://localhost:8080/apis/policy/v1beta1
I0216 16:55:39.495769 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.495778 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.495786 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.516945 11813 round_trippers.go:408] Response Status: 200 OK in 21 milliseconds
I0216 16:55:39.517719 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.517732 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.517742 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.517750 11813 round_trippers.go:414] Content-Length: 431

I0216 16:55:39.519028 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"po[171/568]
ta1","resources":[{"name":"poddisruptionbudgets","singularName":"","namespaced":true,"kind":"PodDisruptionBudget","verbs":["create",
"delete","deletecollection","get","list","patch","update","watch"],"shortNames":["pdb"]},{"name":"poddisruptionbudgets/status","singularName":"","namespaced":true,"kind":"PodDisruptionBudget","verbs":["get","patch","update"]}]}
I0216 16:55:39.520364 11813 round_trippers.go:383] GET http://localhost:8080/apis/rbac.authorization.k8s.io/v1
I0216 16:55:39.520393 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.520406 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.520414 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.521966 11813 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I0216 16:55:39.521984 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.521997 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.522005 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.522014 11813 round_trippers.go:414] Content-Length: 771
I0216 16:55:39.522905 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"rbac.authorization.k8s.io/v1","resources":[{"name":"clusterrolebindings","singularName":"","namespaced":false,"kind":"ClusterRoleBinding","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"clusterroles","singularName":"","namespaced":false,"kind":"ClusterRole","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"rolebindings","singularName":"","namespaced":true,"kind":"RoleBinding","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"roles","singularName":"","namespaced":true,"kind":"Role","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]}]}
I0216 16:55:39.560504 11813 round_trippers.go:383] GET http://localhost:8080/apis/rbac.authorization.k8s.io/v1beta1
I0216 16:55:39.560533 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.560543 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.560552 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.561865 11813 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I0216 16:55:39.561897 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.561908 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.561918 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT

I0216 16:55:39.561927 11813 round_trippers.go:414] Content-Length: 776 [143/568]
I0216 16:55:39.563224 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"rbac.authorization.k8s.io/v1beta1","resources":[{"name":"clusterrolebindings","singularName":"","namespaced":false,"kind":"ClusterRoleBinding",
"verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"clusterroles","singularName":"","namespaced":false,"kind":"ClusterRole","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"rolebindings","singularName":"","namespaced":true,"kind":"RoleBinding","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"roles","singularName":"","namespaced":true,"kind":"Role","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]}]}
I0216 16:55:39.564782 11813 round_trippers.go:383] GET http://localhost:8080/apis/settings.k8s.io/v1alpha1
I0216 16:55:39.564814 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.564827 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.564835 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.565999 11813 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I0216 16:55:39.566040 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.566053 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.566063 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.566073 11813 round_trippers.go:414] Content-Length: 263
I0216 16:55:39.567252 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"settings.k8s.io/v1alpha1","resources":[{"name":"podpresets","singularName":"","namespaced":true,"kind":"PodPreset","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]}]}
I0216 16:55:39.568654 11813 round_trippers.go:383] GET http://localhost:8080/apis/storage.k8s.io/v1
I0216 16:55:39.568688 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.568704 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.568714 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.569404 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.569423 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.569433 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.569444 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT 

I0216 16:55:39.569452 11813 round_trippers.go:414] Content-Length: 284 [115/568]
I0216 16:55:39.570345 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"storage.k8s.io/v1","resources":[{"name":"storageclasses","singularName":"","namespaced":false,"kind":"StorageClass","verbs":["create","delete",
"deletecollection","get","list","patch","update","watch"],"shortNames":["sc"]}]}
I0216 16:55:39.571456 11813 round_trippers.go:383] GET http://localhost:8080/apis/storage.k8s.io/v1beta1
I0216 16:55:39.571473 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.571482 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.571490 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.572043 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.572064 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.572075 11813 round_trippers.go:414] Content-Length: 289
I0216 16:55:39.572085 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.572095 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.572921 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"storage.k8s.io/v1beta1","resources":[{"name":"storageclasses","singularName":"","namespaced":false,"kind":"StorageClass","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["sc"]}]}
I0216 16:55:39.574629 11813 round_trippers.go:383] GET http://localhost:8080/apis/admissionregistration.k8s.io/v1beta1
I0216 16:55:39.574653 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.574660 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.574671 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.578815 11813 round_trippers.go:408] Response Status: 200 OK in 4 milliseconds
I0216 16:55:39.578834 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.578864 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.578882 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.578899 11813 round_trippers.go:414] Content-Length: 519

I0216 16:55:39.579908 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"admissionregistration.k8s.io/v1beta1","resources":[{"name":"mutatingwebhookconfigurations","singularName":"","namespaced":false,"kind":"MutatingWebhookConfiguration","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"validatingwebh
ookconfigurations","singularName":"","namespaced":false,"kind":"ValidatingWebhookConfiguration","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]}]}
I0216 16:55:39.581235 11813 round_trippers.go:383] GET http://localhost:8080/apis/admissionregistration.k8s.io/v1alpha1
I0216 16:55:39.581273 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.581289 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.581299 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.581905 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.581929 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.581939 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.581946 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.581954 11813 round_trippers.go:414] Content-Length: 307
I0216 16:55:39.582791 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"admissionregistration.k8s.io/v1alpha1","resources":[{"name":"initializerconfigurations","singularName":"","namespaced":false,"kind":"InitializerConfiguration","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]}]}
I0216 16:55:39.583904 11813 round_trippers.go:383] GET http://localhost:8080/apis/apiextensions.k8s.io/v1beta1
I0216 16:55:39.583921 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.583930 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.583940 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.584505 11813 round_trippers.go:408] Response Status: 200 OK in 0 milliseconds
I0216 16:55:39.584526 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.584534 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.584542 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.584550 11813 round_trippers.go:414] Content-Length: 453

I0216 16:55:39.585889 11813 request.go:873] Response Body: {"kind":"APIResourceList","apiVersion":"v1","groupVersion":"apiextensions.k8s.io/v1beta1","resources":[{"name":"customresourcedefinitions","singularName":"","namespaced":false,"kind":"CustomResourceDefinition","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["crd"]},{"name":"customresourcedefinitions/status","singularName":"","namespaced":false,"kind":"CustomResourceDefinition","verbs":["update"]}]}
I0216 16:55:39.587164 11813 round_trippers.go:383] GET http://localhost:8080/api/v1
I0216 16:55:39.587184 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.587195 11813 round_trippers.go:393] Accept: application/json, */*
I0216 16:55:39.587205 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.588361 11813 round_trippers.go:408] Response Status: 200 OK in 1 milliseconds
I0216 16:55:39.588378 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.588388 11813 round_trippers.go:414] Content-Type: application/json
I0216 16:55:39.588398 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT
I0216 16:55:39.605602 11813 request.go:873] Response Body: {"kind":"APIResourceList","groupVersion":"v1","resources":[{"name":"bindings","singularName":"","namespaced":true,"kind":"Binding","verbs":["create"]},{"name":"componentstatuses","singularName":"","namespaced":false,"kind":"ComponentStatus","verbs":["get","list"],"shortNames":["cs"]},{"name":"configmaps","singularName":"","namespaced":true,"kind":"ConfigMap","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["cm"]},
{"name":"endpoints","singularName":"","namespaced":true,"kind":"Endpoints","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ep"]},{"name":"events","singularName":"","namespaced":true,"kind":"Event","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ev"]},{"name":"limitranges","singularName":"","namespaced":true,"kind":"LimitRange","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["limits"]},{"name":"names [truncated 4134 chars]
I0216 16:55:39.617626 11813 round_trippers.go:383] GET http://localhost:8080/api/v1/namespaces/default/pods?limit=500
I0216 16:55:39.617655 11813 round_trippers.go:390] Request Headers:
I0216 16:55:39.617675 11813 round_trippers.go:393] Accept: application/json
I0216 16:55:39.617685 11813 round_trippers.go:393] User-Agent: kubectl/v1.10.0 (linux/amd64) kubernetes/09cf6c9
I0216 16:55:39.619934 11813 round_trippers.go:408] Response Status: 200 OK in 2 milliseconds
I0216 16:55:39.619951 11813 round_trippers.go:411] Response Headers:
I0216 16:55:39.619975 11813 round_trippers.go:414] Content-Type: application/json

I0216 16:55:39.619993 11813 round_trippers.go:414] Date: Fri, 16 Feb 2018 16:55:39 GMT [36/568]
I0216 16:55:39.620009 11813 round_trippers.go:414] Content-Length: 134
I0216 16:55:39.620077 11813 request.go:873] Response Body: {"kind":"PodList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/nam
espaces/default/pods","resourceVersion":"1132478"},"items":[]}
No resources found.

 

8080端口

$ sudo netstat -lpn |grep 8080
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 13648/hyperkube
ubuntu@jf-k8s:~$ ps -p 13648

 

6443端口

$ sudo netstat -lpn |grep 6443
tcp6 0 0 :::6443 :::* LISTEN 13648/hyperkube

 

开发环境启动的进程

$ ps -ef |grep hyperkube 

root 13642 23585 0 Jan13 pts/1 00:00:00 sudo -E /home/ubuntu/kubernetes/_output/local/bin/linux/amd64/hyperkube apiserver --authorization-mode=Node,RBAC --runtime-config=admissionregistration.k8s.io/v1alpha1,settings.k8s.io/v1alpha1 --cloud-provider= --cloud-config= --v=3 --vmodule= --cert-dir=/var/run/kubernetes --client-ca-file=/var/run/kubernetes/client-ca.crt --service-account-key-file=/tmp/kube-serviceaccount.key --service-account-lookup=true --admission-control=Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,SecurityContextDeny,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,PodPreset --admission-control-config-file= --bind-address=0.0.0.0 --secure-port=6443 --tls-cert-file=/var/run/kubernetes/serving-kube-apiserver.crt --tls-private-key-file=/var/run/kubernetes/serving-kube-apiserver.key --tls-ca-file=/var/run/kubernetes/server-ca.crt --insecure-bind-address=127.0.0.1 --insecure-port=8080 --storage-backend=etcd3 --etcd-servers=http://127.0.0.1:2379 --service-cluster-ip-range=10.0.0.0/24 --feature-gates=AllAlpha=false --external-hostname=localhost --requestheader-username-headers=X-Remote-User --requestheader-group-headers=X-Remote-Group --requestheader-extra-headers-prefix=X-Remote-Extra- --requestheader-client-ca-file=/var/run/kubernetes/request-header-ca.crt --requestheader-allowed-names=system:auth-proxy --proxy-client-cert-file=/var/run/kubernetes/client-auth-proxy.crt --proxy-client-key-file=/var/run/kubernetes/client-auth-proxy.key --cors-allowed-origins=/127.0.0.1(:[0-9]+)?$,/localhost(:[0-9]+)?$
root 13648 13642 99 Jan13 pts/1 80-21:17:41 /home/ubuntu/kubernetes/_output/local/bin/linux/amd64/hyperkube apiserver --authorization-mode=Node,RBAC --runtime-config=admissionregistration.k8s.io/v1alpha1,settings.k8s.io/v1alpha1 --cloud-provider= --cloud-config= --v=3 --vmodule= --cert-dir=/var/run/kubernetes --client-ca-file=/var/run/kubernetes/client-ca.crt --service-account-key-file=/tmp/kube-serviceaccount.key --service-account-lookup=true --admission-control=Initializers,NamespaceLifecycle,LimitRanger,ServiceAccount,SecurityContextDeny,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota,PodPreset --admission-control-config-file= --bind-address=0.0.0.0 --secure-port=6443 --tls-cert-file=/var/run/kubernetes/serving-kube-apiserver.crt --tls-private-key-file=/var/run/kubernetes/serving-kube-apiserver.key --tls-ca-file=/var/run/kubernetes/server-ca.crt --insecure-bind-address=127.0.0.1 --insecure-port=8080 --storage-backend=etcd3 --etcd-servers=http://127.0.0.1:2379 --service-cluster-ip-range=10.0.0.0/24 --feature-gates=AllAlpha=false --external-hostname=localhost --requestheader-username-headers=X-Remote-User --requestheader-group-headers=X-Remote-Group --requestheader-extra-headers-prefix=X-Remote-Extra- --requestheader-client-ca-file=/var/run/kubernetes/request-header-ca.crt --requestheader-allowed-names=system:auth-proxy --proxy-client-cert-file=/var/run/kubernetes/client-auth-proxy.crt --proxy-client-key-file=/var/run/kubernetes/client-auth-proxy.key --cors-allowed-origins=/127.0.0.1(:[0-9]+)?$,/localhost(:[0-9]+)?$

root 13896 23585 0 Jan13 pts/1 00:00:00 sudo /home/ubuntu/kubernetes/_output/local/bin/linux/amd64/hyperkube proxy --config=/tmp/kube-proxy.yaml --master=https://localhost:6443 --v=3
root 13897 23585 0 Jan13 pts/1 00:00:00 sudo -E /home/ubuntu/kubernetes/_output/local/bin/linux/amd64/hyperkube scheduler --v=3 --kubeconfig /var/run/kubernetes/scheduler.kubeconfig --feature-gates=AllAlpha=false --master=https://localhost:6443
root 13938 13896 0 Jan13 pts/1 01:13:54 /home/ubuntu/kubernetes/_output/local/bin/linux/amd64/hyperkube proxy --config=/tmp/kube-proxy.yaml --master=https://localhost:6443 --v=3
root 13941 13897 99 Jan13 pts/1 35-19:27:12 /home/ubuntu/kubernetes/_output/local/bin/linux/amd64/hyperkube scheduler --v=3 --kubeconfig /var/run/kubernetes/scheduler.kubeconfig --feature-gates=AllAlpha=false --master=https://localhost:6443
root 14035 23585 0 Jan13 pts/1 00:00:00 sudo -E /home/ubuntu/kubernetes/_output/local/bin/linux/amd64/hyperkube kubelet --v=3 --vmodule= --chaos-chance=0.0 --container-runtime=docker --rkt-path= --rkt-stage1-image= --hostname-override=127.0.0.1 --cloud-provider= --cloud-config= --address=127.0.0.1 --kubeconfig /var/run/kubernetes/kubelet.kubeconfig --feature-gates=AllAlpha=false --cpu-cfs-quota=true --enable-controller-attach-detach=true --cgroups-per-qos=true --cgroup-driver=cgroupfs --keep-terminated-pod-volumes=true --eviction-hard=memory.available<100Mi,nodefs.available<10%,nodefs.inodesFree<5% --eviction-soft= --eviction-pressure-transition-period=1m --pod-manifest-path=/var/run/kubernetes/static-pods --fail-swap-on=false --cluster-dns=10.0.0.10 --cluster-domain=cluster.local --port=10250
root 14069 14035 1 Jan13 pts/1 14:58:11 /home/ubuntu/kubernetes/_output/local/bin/linux/amd64/hyperkube kubelet --v=3 --vmodule= --chaos-chance=0.0 --container-runtime=docker --rkt-path= --rkt-stage1-image= --hostname-override=127.0.0.1 --cloud-provider= --cloud-config= --address=127.0.0.1 --kubeconfig /var/run/kubernetes/kubelet.kubeconfig --feature-gates=AllAlpha=false --cpu-cfs-quota=true --enable-controller-attach-detach=true --cgroups-per-qos=true --cgroup-driver=cgroupfs --keep-terminated-pod-volumes=true --eviction-hard=memory.available<100Mi,nodefs.available<10%,nodefs.inodesFree<5% --eviction-soft= --eviction-pressure-transition-period=1m --pod-manifest-path=/var/run/kubernetes/static-pods --fail-swap-on=false --cluster-dns=10.0.0.10 --cluster-domain=cluster.local --port=10250

 

开发环境,证书位置:

/var/run/kubernetes

$ openssl x509 -noout -text -in /var/run/kubernetes/client-ca.crt

$ sudo openssl rsa -noout -text -in /var/run/kubernetes/client-ca.key

$ openssl req -noout -text -in your.csr  #CSR

k8s debug

标签:ext   provider   ctr   min   sign   eset   roles   insecure   extra   

原文地址:https://www.cnblogs.com/shaohef/p/8451350.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!