<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                命令行太長了,不容易記住,使用alias命令用來設置指令的別名。 ~~~ alias etcdctl="ETCDCTL_API=3 /usr/local/bin/etcdctl --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/healthcheck-client.crt --key=/etc/kubernetes/pki/etcd/healthcheck-client.key" ~~~ 1\. 查看所有etcd的所有key,執行以下命令: ~~~ root@k8s-master:~# etcdctl get / --prefix --keys-only。。。 /registry/services/specs/kube-system/kube-dns /registry/services/specs/kube-system/tiller-deploy /registry/services/specs/manually/sleep/registry/validatingwebhookconfigurations/istio-galley root@k8s-master:~# ~~~ 2\. 查看指定key的內容,如果您的系統用的是flannel網絡插件,可以執行以下命令查看相關數據: ~~~ root@k8s-master:~# etcdctl get /registry/configmaps/kube-system/kube-flannel-cfg/registry/configmaps/kube-system/kube-flannel-cfgk8s v1 ConfigMap ? kube-flannel-cfg kube-system"*$2a0899cc-5dd7-42d6-9302-dbda856997532?ZappflannelZtiernodeb20kubectl.kubernetes.io/last-applied-configuration??iVersion":"v1","data":{"cni-conf.json":"{\n \"name\": \"cbr0\",\n \"cniVersion\": \"0.3.1\",\n \"plugins\": [\n {\n \"type\": \"flannel\",\n \"delegate\": {\n \"hairpinMode\": true,\n \"isDefaultGateway\": true\n }\n },\n {\n \"type\": \"portmap\",\n \"capabilities\": {\n \"portMappings\": true\n }\n }\n ]\n}\n","net-conf.json":"{\n \"Network\": \"10.244.0.0/16\",\n \"Backend\": {\n \"Type\": \"vxlan\"\n }\n}\n"},"kind":"ConfigMap","metadata":{"annotations":{},"labels":{"app":"flannel","tier":"node"},"name":"kube-flannel-cfg","namespace":"kube-system"}}z? cni-conf.json¤{ "name": "cbr0", "cniVersion": "0.3.1", "plugins": [ { "type": "flannel", "delegate": { "hairpinMode": true, "isDefaultGateway": true } }, { "type": "portmap", "capabilities": { "portMappings": true } } ]}Znet-conf.jsonI{ "Network": "10.244.0.0/16", "Backend": { "Type": "vxlan" }}"XshellXshellroot@k8s-master:~# ~~~ 如上所示,有少量不可見字符,這是因為etcd中存儲的并不是json的原文,而是protocol buffer序列化后的數據,不過還是有部分內容是可讀的; 3\. 查看節點信息,如下所示,當前環境有master和node0兩個節點: ~~~ root@k8s-master:~# etcdctl get /registry/minions/ --prefix --keys-only/registry/minions/k8s-master/registry/minions/k8s-node root@k8s-master:~# ~~~ 1. 執行以下命令可以查看node0節點的信息,由于結果中有很多序列化之后的不可讀字符,就不把結果貼出來了: ~~~ etcdctl get /registry/minions/k8s-node ~~~ ## etcd中的key及其含義
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看