成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專欄INFORMATION COLUMN

kube-apiserver啟動(dòng)時(shí)報(bào)錯(cuò)并且不能操作etcd

blastz / 1482人閱讀

摘要:?jiǎn)?dòng)時(shí)報(bào)錯(cuò),錯(cuò)誤信息如下此時(shí)查看,也沒(méi)有。經(jīng)過(guò)一些參數(shù)的研究,最后發(fā)現(xiàn)是版本的問(wèn)題。修改參數(shù),再啟動(dòng)可以正常使用。

kube-apiserver啟動(dòng)時(shí)報(bào)錯(cuò),錯(cuò)誤信息如下:

Flag --kubelet-port has been deprecated, kubelet-port is deprecated and will be removed.
W0914 15:57:18.574093   29704 authentication.go:362] AnonymousAuth is not allowed with the AllowAll authorizer.  Resetting AnonymousAuth to false. You should use a different authorizer
E0914 15:57:19.164301   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.LimitRange: Get https://localhost:6443/api/v1/limitranges?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
E0914 15:57:19.164904   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Namespace: Get https://localhost:6443/api/v1/namespaces?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
E0914 15:57:19.165363   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Secret: Get https://localhost:6443/api/v1/secrets?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
E0914 15:57:19.165826   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.ResourceQuota: Get https://localhost:6443/api/v1/resourcequotas?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
[restful] 2017/09/14 15:57:19 log.go:30: [restful/swagger] listing is available at https://192.168.246.205:6443/swaggerapi/
[restful] 2017/09/14 15:57:19 log.go:30: [restful/swagger] https://192.168.246.205:6443/swaggerui/ is mapped to folder /swagger-ui/
I0914 15:57:19.311924   29704 serve.go:79] Serving securely on 0.0.0.0:6443
I0914 15:57:19.312350   29704 serve.go:94] Serving insecurely on 0.0.0.0:8080
W0914 15:58:19.360647   29704 storage_extensions.go:127] third party resource sync failed: the server cannot complete the requested operation at this time, try again later (get thirdpartyresources.extensions)
E0914 15:58:20.172521   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.LimitRange: the server cannot complete the requested operation at this time, try again later (get limitranges)
E0914 15:58:20.217171   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Namespace: the server cannot complete the requested operation at this time, try again later (get namespaces)
E0914 15:58:20.237223   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Secret: the server cannot complete the requested operation at this time, try again later (get secrets)
E0914 15:58:20.288630   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.ResourceQuota: the server cannot complete the requested operation at this time, try again later (get resourcequotas)
E0914 15:59:21.174936   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.LimitRange: the server cannot complete the requested operation at this time, try again later (get limitranges)
E0914 15:59:21.220406   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Namespace: the server cannot complete the requested operation at this time, try again later (get namespaces)
E0914 15:59:21.241277   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Secret: the server cannot complete the requested operation at this time, try again later (get secrets)
E0914 15:59:21.292228   29704 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.ResourceQuota: the server cannot complete the requested operation at this time, try again later (get resourcequotas)
W0914 15:59:29.363806   29704 storage_extensions.go:127] third party resource sync failed: the server cannot complete the requested operation at this time, try again later (get thirdpartyresources.extensions)

此時(shí)查看etcd,也沒(méi)有/registry。經(jīng)過(guò)一些參數(shù)的研究,最后發(fā)現(xiàn)是etcd版本的問(wèn)題。

--storage-backend string                                  The storage backend for persistence. Options: "etcd3" (default), "etcd2".

修改參數(shù),再啟動(dòng)kube-apiserver,可以正常使用。搞定!

W0914 16:13:16.067598   30094 authentication.go:362] AnonymousAuth is not allowed with the AllowAll authorizer.  Resetting AnonymousAuth to false. You should use a different authorizer
W0914 16:13:16.403210   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.408058   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.408428   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.408972   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.409507   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.412534   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.413109   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.413742   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.414275   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.414856   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.415388   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.417098   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.418250   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.419170   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.419871   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.420374   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.469806   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.470232   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.470989   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.471696   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.472371   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.472779   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.473057   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.417098   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.418250   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.419170   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.419871   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.420374   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.469806   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.470232   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.470989   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.471696   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.472371   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.472779   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.473057   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.473751   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.474703   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.475538   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.476526   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.477211   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.477906   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.479327   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.480063   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.480658   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.481126   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.481728   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.482141   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.482550   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.482831   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.483082   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.483445   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.483768   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.484033   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
W0914 16:13:16.484276   30094 storage_codec.go:52] storage type "etcd2" does not support media type "application/vnd.kubernetes.protobuf", using "application/json"
E0914 16:13:16.575205   30094 reflector.go:201] k8s.io/kubernetes/pkg/client/informers/informers_generated/internalversion/factory.go:70: Failed to list *api.Secret: Get https://localhost:6443/api/v1/secrets?resourceVersion=0: dial tcp 127.0.0.1:6443: getsockopt: connection refused
[restful] 2017/09/14 16:13:16 log.go:30: [restful/swagger] listing is available at https://192.168.246.205:6443/swaggerapi/
[restful] 2017/09/14 16:13:16 log.go:30: [restful/swagger] https://192.168.246.205:6443/swaggerui/ is mapped to folder /swagger-ui/
I0914 16:13:16.735123   30094 serve.go:79] Serving securely on 0.0.0.0:6443
I0914 16:13:16.735605   30094 serve.go:94] Serving insecurely on 0.0.0.0:8080

參考資料:https://github.com/kubernetes...

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/32575.html

相關(guān)文章

  • Kubernetes v1.0特性解析

    摘要:?jiǎn)栴}是不是定義的一個(gè)的容器集群是只部署在同一個(gè)主機(jī)上楊樂(lè)到目前是,同一個(gè)里的是部署在同一臺(tái)主機(jī)的。問(wèn)題這個(gè)圖里的是安裝在哪里的所有的客戶端以及會(huì)連接這個(gè)嘛楊樂(lè)可以任意地方,只要能訪問(wèn)到集群,會(huì)作為的出口。 kubernetes1.0剛剛發(fā)布,開源社區(qū)400多位貢獻(xiàn)者一年的努力,多達(dá)14000多次的代碼提交,最終達(dá)到了之前預(yù)計(jì)的milestone, 并意味著這個(gè)開源容器編排系統(tǒng)可以正式在...

    HackerShell 評(píng)論0 收藏0
  • 循序漸進(jìn)的手動(dòng)安裝k8s筆記-2

    摘要:?jiǎn)?dòng)并設(shè)置為開機(jī)自啟動(dòng)安裝服務(wù)這部分配置與上一篇筆記完全相同。我們創(chuàng)建這個(gè)文件并填入如下內(nèi)容安裝完和之后將其啟動(dòng)并設(shè)置為開機(jī)自啟動(dòng)以上,角色的功能已經(jīng)安裝完成。 上一篇筆記中,我嘗試了使用 k8s 1.6 版本安裝一個(gè)最簡(jiǎn)單的集群。這一次,我希望能夠增加 node 的數(shù)量并且安裝網(wǎng)絡(luò)插件,然后配置內(nèi)部的域名解析功能。 在起初的設(shè)想中,我仍然希望不配置各個(gè)組件間的認(rèn)證,只關(guān)心功能的正常運(yùn)...

    pingink 評(píng)論0 收藏0
  • k8s :kube-apiserver 啟動(dòng)流程 - 1

    摘要:前言看源代碼有一段時(shí)間,總感覺(jué)在迷宮里亂竄,有時(shí)候覺(jué)得終于找到出口了,一下子又撞墻了,總結(jié)下來(lái)還是自己的內(nèi)功不夠深厚,本文是對(duì)遺留,即將廢棄初始化流程以及數(shù)據(jù)結(jié)構(gòu)的一個(gè)梳理,算是做個(gè)路標(biāo),便于以后在迷宮中還能找到回來(lái)的路主要功能是提供接 前言 看 k8s 源代碼有一段時(shí)間,總感覺(jué)在迷宮里亂竄,有時(shí)候覺(jué)得終于找到出口了,一下子又撞墻了,總結(jié)下來(lái)還是自己的內(nèi)功不夠深厚,本文是對(duì) kube-...

    wwolf 評(píng)論0 收藏0
  • k8s :kube-apiserver 啟動(dòng)流程 - 1

    摘要:前言看源代碼有一段時(shí)間,總感覺(jué)在迷宮里亂竄,有時(shí)候覺(jué)得終于找到出口了,一下子又撞墻了,總結(jié)下來(lái)還是自己的內(nèi)功不夠深厚,本文是對(duì)遺留,即將廢棄初始化流程以及數(shù)據(jù)結(jié)構(gòu)的一個(gè)梳理,算是做個(gè)路標(biāo),便于以后在迷宮中還能找到回來(lái)的路主要功能是提供接 前言 看 k8s 源代碼有一段時(shí)間,總感覺(jué)在迷宮里亂竄,有時(shí)候覺(jué)得終于找到出口了,一下子又撞墻了,總結(jié)下來(lái)還是自己的內(nèi)功不夠深厚,本文是對(duì) kube-...

    RayKr 評(píng)論0 收藏0
  • 循序漸進(jìn)的手動(dòng)安裝k8s筆記-1

    摘要:日志級(jí)別通過(guò)啟動(dòng)并設(shè)置為開機(jī)自啟動(dòng)之后可以通過(guò)來(lái)檢查服務(wù)器運(yùn)行狀態(tài)安裝服務(wù)編輯服務(wù)文件環(huán)境變量文件中定義了啟動(dòng)參數(shù)。 不知道有沒(méi)有人和我一樣,在手動(dòng)安裝時(shí)因?yàn)楹芏嘣驔](méi)有成功(主要還是知識(shí)儲(chǔ)備不夠),被各種高可用配置和各種證書權(quán)限弄得迷迷糊糊。這個(gè)筆記是我在嘗試了很多種手動(dòng)安裝Kubernetes集群教程中的方法失敗后產(chǎn)生的想法,希望能夠?qū)?fù)雜的配置化繁為簡(jiǎn),呈現(xiàn)出一個(gè)基本功能的Kub...

    CoderDock 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<