随笔分类 - DevOps
摘要:String workspace = "/opt/jenkins/workspace/${JOB_NAME}" def v = 'v' env.e1 = 'v1' pipeline { agent { node { label 'master' customWorkspace "${workspac
阅读全文
摘要:1. push.default https://www.fleekitsolutions.com/difference-between-push-default-matching-simple/ Set your push.default to upstream to push branches t
阅读全文
摘要:Snippet Generator => steps (place into the steps) 只有脚本script{}可声明变量,String,def声明的变量只有script{}可用 # # Plugins # # Organization and Administration Config
阅读全文
摘要:env in jenkins controller Jenkins dynamic slave agent Pod Template in Jenkins UI Example from git pipeline { agent { kubernetes { cloud 'kubernetes' d
阅读全文
摘要: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
阅读全文
摘要:apiVersion: v1 Kind: pod apiVersion: v1 kind: Pod metadata: annotations: kubeadm.kubernetes.io/kube-apiserver.advertise-address.endpoint: 192.168.8.11
阅读全文
摘要:imagePullSecrets # using config.json kubectl create secret generic secret-docker \ --from-file=.dockerconfigjson=<path/to/.docker/config.json> \ --typ
阅读全文
摘要:两个rpm包: ansible ansible-core 安装两个pip依赖: ansible ansible-core dnf repoquery --requires ansible dnf repoquery --requires ansible-core rpm -q --requires
阅读全文
摘要:init.gradle allprojects { repositories { maven { url 'file:///E:/Java/Repository'} mavenLocal() maven { name "Alibaba" ; url "https://maven.aliyun.com
阅读全文
摘要:https://prometheus.io/download/#prometheus https://packagecloud.io/app/prometheus-rpm/release/search Install: tar xvzf prometheus-2.36.1.linux-amd64.t
阅读全文
摘要: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
阅读全文
摘要:服务器为gitlab, 使用docker搭建, 首先确定是宿主机被感染,还是容器被感染 使用top , ps aux --sort -pcpu查找占用cpu明显过高进程 容器外使用 ps H -fFjlp $PID, ps -LfFljp $PID观察进程 docker stats --all --
阅读全文
摘要:Terminologies: DSA Directory System Agent 目录代理系统,x.500术语,支持LDAP协议的服务(OpenLDAP) DSE DSA Specific Entry 目录系统中特定条目或记录项因此,rootDSE是一个目录信箱服务器的DIT (Directory
阅读全文
摘要:Service Discovery: file discoveryprometheus.yaml scrape_configs: - job_name: "prometheus" metrics_path: /metrics static_configs: file_sd_configs: - fi
阅读全文
摘要:AptConfiguration - Debian Wiki /etc/apt/preferences /etc/apt/preferences.d (fragement files) man apt_preferences apt-cache madison nginx apt-cache pol
阅读全文
摘要: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.
阅读全文
摘要: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 #
阅读全文
摘要:Docs: Installing GitLab with Omnibus packages | GitLab Download and install GitLab | GitLab Read first dnf install postfix && systemctl enable --now p
阅读全文
摘要:SSH 公钥私钥分 主机 和用户, 主机用来验证主机身份, 是openssl-server安装时生成 位于 /etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key.pub 当 B 主机 已经存有 A 主机的 主机 公钥, A主机主机公钥发生改变,会提示如下 根
阅读全文