摘要: 官方文档 https://docs.rancher.cn/docs/k3s/quick-start/_index/ 安装命令 curl -sfL http://rancher-mirror.cnrancher.com/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=c 阅读全文
posted @ 2021-04-30 17:42 yangxl-dev 阅读(237) 评论(0) 推荐(0)
摘要: # tr 大小写替换payload=$(echo ${payload} | tr '[a-z]' '[A-Z]')version_tag=$(echo ${version_tag} | tr '[a-z]' '[A-Z]')video_card=$(echo ${video_card} | tr ' 阅读全文
posted @ 2021-04-28 14:22 yangxl-dev 阅读(1456) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/qq243348167/article/details/105745990?ops_request_misc=&request_id=&biz_id=102&utm_term=novnc&utm_medium=distribute.pc_search_re 阅读全文
posted @ 2021-04-15 17:15 yangxl-dev 阅读(142) 评论(0) 推荐(0)
摘要: sshd_config 添加如下配置 ClientAliveInterval 30ClientAliveCountMax 3 阅读全文
posted @ 2021-04-15 14:04 yangxl-dev 阅读(82) 评论(0) 推荐(0)
摘要: 119.29.39.77 https://www.pianshen.com/article/9641862527/ 阅读全文
posted @ 2021-04-08 18:14 yangxl-dev 阅读(48) 评论(0) 推荐(0)
摘要: import requests import json url='https://api.github.com/user'#这个网址返回的不是html,而是标准json格式header={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) Apple 阅读全文
posted @ 2021-03-26 10:42 yangxl-dev 阅读(45) 评论(0) 推荐(0)
摘要: _ckIPaddr () { ckStep1=`echo $1 | awk -F"." '{print NF}'` if [ $ckStep1 -eq 4 ] || [ $ckStep1 -eq 6 ] then ckStep2=`echo $1 | awk -F"." '{if ($1!=0 && 阅读全文
posted @ 2021-02-07 17:20 yangxl-dev 阅读(377) 评论(0) 推荐(0)
摘要: argo-cd jobcd脚本拉去初始化chart,sed替换对应微服务chart文件参数,并提交到新环境的chart仓库label = "master" node(label) { stage('env info'){ echo sh(returnStdout: true, script: "en 阅读全文
posted @ 2021-02-07 09:49 yangxl-dev 阅读(309) 评论(0) 推荐(0)
摘要: job命名 ci_project_service_dev ci_project_service_qa 参数化构建 branch,dev构建是参数化分支,qa构建只有qa分支 丢弃旧的构建 保留3个 def label = "master" node(label) { stage('Checkout 阅读全文
posted @ 2021-02-04 10:46 yangxl-dev 阅读(56) 评论(0) 推荐(0)
摘要: package main import( "os/exec" "fmt") func main(){ cmd := exec.Command("/bin/bash", "-c", "./tool 1.jpg") buf, err := cmd.Output() if err != nil{ fmt. 阅读全文
posted @ 2021-01-29 16:46 yangxl-dev 阅读(381) 评论(0) 推荐(0)