zoukankan      html  css  js  c++  java
  • Linux常用命令--跟K8S相关

    最近在搭集群,学习到了很多平时不用的Linux命令,运维大法好啊

    1.登陆远程仓库。

    docker login xxx.com

    2.将某个镜像导出到本地(第一个参数是输出位置以及输出镜像名字、第二个参数指的是要导出的镜像名称和tag)

    docker save > images/web-ui.tar registry.cn-beijing.aliyuncs.com/aisinobot/web-ui:generic-cf1badb-3a6747d

    3.将本地的镜像上传

    docker load --input test.tar

    4.两台服务器之间上传文件(第一个参数是当前机器的文件、第二个参数是目的主机的用户名、ip和文件夹)

    scp  /home/helpteach/project/mallupload/1509681299449.png root@10.127.40.25:/home/test

    5.生成某个pod、secret、job的命令

    kubectl apply -f myjob.yml

    6.查找某个相关的进程

     ps -ef | grep firefox

    smx       1827     1  4 11:38 ?        00:27:33 /usr/lib/firefox-3.6.18/firefox-bin
    smx      12029  1824  0 21:54 pts/0    00:00:00 grep --color=auto firefox

    7.杀死某个进程

    kill -9 pid

    8.跟k8s相关的常用命令总结(很全面的一条命令)

    https://blog.csdn.net/cyfblog/article/details/97639312

     

  • 相关阅读:
    codeforces-1144 (div3)
    codeforces-1142 (div1)
    codeforces-1131 (div2)
    codeforces-1132 (div2)
    [HAOI2006]均分数据
    Ellipsoid
    [JSOI2004]平衡点 / 吊打XXX
    CF208E Blood Cousins
    CF570D Tree Requests
    CF600E Lomsat gelral
  • 原文地址:https://www.cnblogs.com/maowuyu-xb/p/12024575.html
Copyright © 2011-2022 走看看