随笔分类 -  DevOps

摘要:String workspace = "/opt/jenkins/workspace/${JOB_NAME}" def v = 'v' env.e1 = 'v1' pipeline { agent { node { label 'master' customWorkspace "${workspac 阅读全文
posted @ 2023-04-24 19:53 ascertain 阅读(41) 评论(0) 推荐(0) 编辑
摘要:1. push.default https://www.fleekitsolutions.com/difference-between-push-default-matching-simple/ Set your push.default to upstream to push branches t 阅读全文
posted @ 2023-04-24 19:53 ascertain 阅读(14) 评论(0) 推荐(0) 编辑
摘要:Snippet Generator => steps (place into the steps) 只有脚本script{}可声明变量,String,def声明的变量只有script{}可用 # # Plugins # # Organization and Administration Config 阅读全文
posted @ 2023-04-24 19:52 ascertain 阅读(50) 评论(0) 推荐(0) 编辑
摘要:env in jenkins controller Jenkins dynamic slave agent Pod Template in Jenkins UI Example from git pipeline { agent { kubernetes { cloud 'kubernetes' d 阅读全文
posted @ 2023-04-15 21:53 ascertain 阅读(135) 评论(0) 推荐(0) 编辑
摘要:escape inputs 阅读全文
posted @ 2023-04-04 13:24 ascertain 阅读(17) 评论(0) 推荐(0) 编辑
摘要:Disable all auth (in case of Security Realm wrong configuration) Go to $JENKINS_HOME, modify config.xml REST API # acquire crumb curl -fsSL -XGET -uje 阅读全文
posted @ 2023-04-03 22:58 ascertain 阅读(7) 评论(0) 推荐(0) 编辑
摘要:apiVersion: v1 Kind: pod apiVersion: v1 kind: Pod metadata: annotations: kubeadm.kubernetes.io/kube-apiserver.advertise-address.endpoint: 192.168.8.11 阅读全文
posted @ 2023-04-02 19:05 ascertain 阅读(22) 评论(0) 推荐(0) 编辑
摘要:imagePullSecrets # using config.json kubectl create secret generic secret-docker \ --from-file=.dockerconfigjson=<path/to/.docker/config.json> \ --typ 阅读全文
posted @ 2023-04-01 00:40 ascertain 阅读(10) 评论(0) 推荐(0) 编辑
摘要:两个rpm包: ansible ansible-core 安装两个pip依赖: ansible ansible-core dnf repoquery --requires ansible dnf repoquery --requires ansible-core rpm -q --requires 阅读全文
posted @ 2023-01-25 12:33 ascertain 阅读(15) 评论(0) 推荐(0) 编辑
摘要:init.gradle allprojects { repositories { maven { url 'file:///E:/Java/Repository'} mavenLocal() maven { name "Alibaba" ; url "https://maven.aliyun.com 阅读全文
posted @ 2022-02-10 14:57 ascertain 阅读(20) 评论(0) 推荐(0) 编辑
摘要:https://prometheus.io/download/#prometheus https://packagecloud.io/app/prometheus-rpm/release/search Install: tar xvzf prometheus-2.36.1.linux-amd64.t 阅读全文
posted @ 2021-11-07 23:04 ascertain 阅读(87) 评论(0) 推荐(0) 编辑
摘要:Services Record (SRV) Defined in RFC 2782. The SRV RR identifies the host(s) that will support a particular service. The MX RR is a specialised exampl 阅读全文
posted @ 2021-11-05 17:24 ascertain 阅读(560) 评论(0) 推荐(0) 编辑
摘要:服务器为gitlab, 使用docker搭建, 首先确定是宿主机被感染,还是容器被感染 使用top , ps aux --sort -pcpu查找占用cpu明显过高进程 容器外使用 ps H -fFjlp $PID, ps -LfFljp $PID观察进程 docker stats --all -- 阅读全文
posted @ 2021-11-05 16:02 ascertain 阅读(475) 评论(0) 推荐(0) 编辑
摘要:Terminologies: DSA Directory System Agent 目录代理系统,x.500术语,支持LDAP协议的服务(OpenLDAP) DSE DSA Specific Entry 目录系统中特定条目或记录项因此,rootDSE是一个目录信箱服务器的DIT (Directory 阅读全文
posted @ 2021-10-28 16:04 ascertain 阅读(94) 评论(0) 推荐(0) 编辑
摘要:Service Discovery: file discoveryprometheus.yaml scrape_configs: - job_name: "prometheus" metrics_path: /metrics static_configs: file_sd_configs: - fi 阅读全文
posted @ 2021-10-26 14:39 ascertain 阅读(231) 评论(0) 推荐(0) 编辑
摘要:AptConfiguration - Debian Wiki /etc/apt/preferences /etc/apt/preferences.d (fragement files) man apt_preferences apt-cache madison nginx apt-cache pol 阅读全文
posted @ 2021-09-28 16:19 ascertain 阅读(144) 评论(0) 推荐(0) 编辑
摘要:linux系统 1.准备环境 云服务器 193.112.1.43(公)172.16.0.23(内) 云数据库pgsql 内网 172.16.32.98:5432 同一私有网络,默认内网互通 2.云服务器上做如下转发 iptables -t nat -A PREROUTING -d 172.16.0. 阅读全文
posted @ 2021-09-24 14:43 ascertain 阅读(446) 评论(0) 推荐(0) 编辑
摘要:frps.init [common] bind_addr = 0.0.0.0 bind_port = 7000 bind_udp_port = 7000 subdomain_host = ibm.com vhost_http_port = 8080 vhost_https_port = 443 # 阅读全文
posted @ 2021-09-10 15:21 ascertain 阅读(58) 评论(0) 推荐(0) 编辑
摘要:Docs: Installing GitLab with Omnibus packages | GitLab Download and install GitLab | GitLab Read first dnf install postfix && systemctl enable --now p 阅读全文
posted @ 2021-09-06 16:08 ascertain 阅读(65) 评论(0) 推荐(0) 编辑
摘要:SSH 公钥私钥分 主机 和用户, 主机用来验证主机身份, 是openssl-server安装时生成 位于 /etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key.pub 当 B 主机 已经存有 A 主机的 主机 公钥, A主机主机公钥发生改变,会提示如下 根 阅读全文
posted @ 2021-08-23 14:22 ascertain 阅读(996) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示