{"id":1424,"date":"2022-10-13T04:06:52","date_gmt":"2022-10-13T04:06:52","guid":{"rendered":"https:\/\/www.liutianfeng.com\/?p=1424"},"modified":"2022-10-13T04:13:52","modified_gmt":"2022-10-13T04:13:52","slug":"calico","status":"publish","type":"post","link":"https:\/\/www.liutianfeng.com\/?p=1424","title":{"rendered":"calico"},"content":{"rendered":"<p><strong>\u5e2e\u52a9\uff1a<\/strong><\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\"># calicoctl -h # \u4e00\u7ea7\u5e2e\u52a9\r\nUsage:\r\n  calicoctl [options] &lt;command&gt; [&lt;args&gt;...]\r\n\r\n    create    Create a resource by filename or stdin.\r\n    replace   Replace a resource by filename or stdin.\r\n    apply     Apply a resource by filename or stdin.  This creates a resource\r\n              if it does not exist, and replaces a resource if it does exists.\r\n    delete    Delete a resource identified by file, stdin or resource type and\r\n              name.\r\n    get       Get a resource identified by file, stdin or resource type and\r\n              name.\r\n    config    Manage system-wide and low-level node configuration options.\r\n    ipam      IP address management.\r\n    node      Calico node management.\r\n    version   Display the version of calicoctl.\r\n\r\nOptions:\r\n  -h --help               Show this screen.\r\n  -l --log-level=&lt;level&gt;  Set the log level (one of panic, fatal, error,\r\n                          warn, info, debug) [default: panic]\r\n\r\nDescription:\r\n  The calicoctl command line tool is used to manage Calico network and security\r\n  policy, to view and manage endpoint configuration, and to manage a Calico\r\n  node instance.\r\n\r\n  See 'calicoctl &lt;command&gt; --help' to read about a specific subcommand.\r\n\r\n# calicoctl node -h  # \u4e8c\u7ea7\u5e2e\u52a9\r\nSet the Calico datastore access information in the environment variables or\r\nor supply details in a config file.\r\n\r\nUsage:\r\n  calicoctl node &lt;command&gt; [&lt;args&gt;...]\r\n\r\n    run          Run the Calico node container image.\r\n    status       View the current status of a Calico node.\r\n    diags        Gather a diagnostics bundle for a Calico node.\r\n    checksystem  Verify the compute host is able to run a Calico node instance.\r\n\r\nOptions:\r\n  -h --help      Show this screen.\r\n\r\nDescription:\r\n  Node specific commands for calicoctl.  These commands must be run directly on\r\n  the compute host running the Calico node instance.\r\n\r\n  See 'calicoctl node &lt;command&gt; --help' to read about a specific subcommand.<\/code><\/pre>\n<p><strong>\u5e38\u7528\u547d\u4ee4\uff1a<\/strong><\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\"># calicoctl get nodes  \/\/ \u83b7\u53d6nodes\u5217\u8868\r\n#\u00a0calicoctl\u00a0node\u00a0status\u00a0\/\/\u00a0\u67e5\u770b\u72b6\u6001<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.liutianfeng.com\">liutianfeng.com<\/a> &raquo; <a href=\"https:\/\/www.liutianfeng.com\/?p=1424\">calico<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5e2e\u52a9\uff1a # calicoctl -h # \u4e00\u7ea7\u5e2e\u52a9 Usage: calicoctl [options] &#038;l [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[48],"tags":[],"_links":{"self":[{"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=\/wp\/v2\/posts\/1424"}],"collection":[{"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1424"}],"version-history":[{"count":5,"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=\/wp\/v2\/posts\/1424\/revisions"}],"predecessor-version":[{"id":1430,"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=\/wp\/v2\/posts\/1424\/revisions\/1430"}],"wp:attachment":[{"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liutianfeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}