2023年12月3日
摘要: 一、任务平台演示(不带参数) 1)创建不带参数的命令 指定强制主机会强制在该机器执行 2) 创建执行用户,在模板添加的执行的命令里面需要选择执行用户 3)创建不带参数模板 id需要记录下来,需要授权给相关用户,用户才能对该模板进行操作 4)创建标签树。标签树也就是组的改连,平台操作任务发布的时候需要 阅读全文
posted @ 2023-12-03 11:56 可口_可乐 阅读(44) 评论(0) 推荐(0) 编辑
  2022年9月23日
摘要: 一、基于jenkins和gitlab的ci cd 1)基于docker安装gitlab 1.1)pull镜像 docker pull gitlab/gitlab-ce:latest 官方镜像 docker pull registry.cn-hangzhou.aliyuncs.com/imooc/gi 阅读全文
posted @ 2022-09-23 18:22 可口_可乐 阅读(635) 评论(0) 推荐(0) 编辑
  2022年8月1日
摘要: 一、安装gitlab服务器 1)创建测试组 2)基于组创建项目 3)用git 工具测试拉取代码 二、搭建gitlab-ci服务器 1)安装docker curl -sSL https://get.docker.com/ | sh 2)安装gitlab ci runner curl -L https: 阅读全文
posted @ 2022-08-01 11:14 可口_可乐 阅读(1311) 评论(0) 推荐(0) 编辑
  2022年1月5日
摘要: https://www.bilibili.com/video/av66617940?p=36 一、域名访问设置 1)获取ingress的pod。添加的路由规则都记录在里面 kubectl apply -f https://raw.githubusercontent.com/kubernetes/in 阅读全文
posted @ 2022-01-05 16:17 可口_可乐 阅读(3346) 评论(0) 推荐(0) 编辑
  2021年8月20日
摘要: 一、token生成 相关文档 https://python-gitlab.readthedocs.io/en/master/api-usage.html https://blog.csdn.net/xie_0723/article/details/75215869 代码演示 import gitla 阅读全文
posted @ 2021-08-20 17:43 可口_可乐 阅读(1103) 评论(0) 推荐(0) 编辑
  2021年8月12日
摘要: 一、安装jenkins库 pip install python-jenkins 使用用户名方式访问 import jenkins server = jenkins.Jenkins('http://10.212.82.86:8080', username='admin', password='admi 阅读全文
posted @ 2021-08-12 16:33 可口_可乐 阅读(2269) 评论(0) 推荐(0) 编辑
  2021年2月16日
摘要: 一、数据结构 1)数据结构的定义 我们如何把现实中大量而且非常复杂的问题以特定的数据类型(个体)和特定的存储结构(个体的关系)保存到相应的相应的主存储器(内存)中, 以及在此基础上为实现某个功能而执行的相应操作,这个相应的操作也叫做算法 数据结构 == 个体 + 个体的关系 算法 == 对存储数据的 阅读全文
posted @ 2021-02-16 20:50 可口_可乐 阅读(110) 评论(0) 推荐(0) 编辑
  2020年12月31日
摘要: 一、python通过config文件执行api操作 https://www.cnblogs.com/zhangb8042/p/11444756.html https://github.com/kubernetes-client/python/tree/master/examples 1)准备环境 c 阅读全文
posted @ 2020-12-31 12:02 可口_可乐 阅读(3647) 评论(0) 推荐(0) 编辑
  2020年5月8日
摘要: 一、做好镜像文件 1、编辑脚本 pull.sh #!/bin/bash if [ $# -ne 1 ];then echo "Usage:$0 filename" exit 1 fi file=$1 if [ ! -f $file ];then echo "the $file is not a fi 阅读全文
posted @ 2020-05-08 18:37 可口_可乐 阅读(609) 评论(0) 推荐(0) 编辑
  2020年5月6日
摘要: 一、安装dns服务 1)yum安装 yum install dnsmasq -y 2)配置本地的 dns 解析 # 设置上游DNS,毕竟你的Dns只是个代理 cat >/etc/resolv.dnsmasq <<EOF nameserver 114.114.114.114 nameserver 8. 阅读全文
posted @ 2020-05-06 16:42 可口_可乐 阅读(1179) 评论(0) 推荐(0) 编辑