cmd_logic

cmd_logic
//dot -Tpng xx.dot -o xx.png
digraph G {
    rankdir=TB;
    fontname = "Microsoft YaHei";
    fontsize = 14;
    penwidth = 3;
    compound=true;
    rankdir=LR;

    node [shape = record];
    edge [fontname = "Arial", fontsize = 12, color="darkgreen" ];

    image[label="Image",color=blue];
    registry[label="Registry",color=blue];
    tar[label="Tar files",color=blue];

    subgraph cluster_container {
		label = "Container";
        style = "bold";
        color = blue;
        edge [fontname = "Arial", fontsize = 11, color="skyblue" ];
		//node [style=filled];
        run[label="Running",shape=circle, style=filled, fillcolor=green];
        stop[label="Stopped",shape=circle, style=filled, fillcolor=red];
        pause[label="Paused",shape=circle, style=filled, fillcolor=blue];

        run->pause[label="pause"];
        pause->run[label="unpause"];
        run->run[label="restart"];
        run->stop[label="kill"];
        stop->run[label="start"];
	}

    run->image[label="commit",ltail=cluster_container];
    image->run[label="start"];

    image->tar[label="export|save"];
    tar->image[label="import"];

    image->registry[label="push"];
    registry->image[label="pull"];

    //heat[label="heat commands",color=blue];
    //heatshell[label="heatclient.shell.HeatShell",color=blue];
    //shell[label="{heatclient.v1.shell|+do_stack_create\l+do_stack_show\l+do_stack_update\l...\l+do_event_list\l...\l+do_resource_list\l...\l+do_resource_type_show\l...\l+do_template_show\l...\l}",color=blue];
    //heatclient[label="heatclient.client.Client",color=blue];
    //client[label="heatclient.v1.client.Client",color=blue];
    //httpclient[label="heatclient.common.http.HTTPClient",color=blue];



    //openstackservices[label="{OpenStack Services|+Nova\l+Neutron\l+Keystone\l...}",color=blue];

    //{rank=same; image cluster_container}
    //{rank=same; rpcproxy apimixin}
}

💻 配套实训环境与动手练习

本文涉及的相关命令操作、开发环境与容器编排已内置在我们的在线脱机环境中,无需安装依赖,随时在浏览器中实践体验:

文章版权声明:除非注明,否则均为边学边练网络文章,版权归原作者所有
  • 上一篇:
  • 下一篇: