harbor
摘要:wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/
阅读全文
软件源
摘要:wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/
阅读全文
pymongo工具类
摘要:from itemadapter import ItemAdapter import pymongo class Mongo_Client(object): def __init__(self,collection_name): self.clinet = pymongo.MongoClient("
阅读全文
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 0: invalid start byte
摘要:“'Accept-Encoding': 'gzip, deflate'” 这一条是我从Fiddler直接复制过来的,为什么用浏览器可以正常浏览,而用Python模仿就不行呢? 综合网上的解释: 这句话的意思是本地接收压缩格式的数据,服务器传过来压缩格式gzip的文件,而解压这种gzip文件只能用de
阅读全文
python 相关
摘要:python判断文件是否存在 os.path.exists(file_path): python多线程 p1 = threading.Thread(target=down) t1 = threading.Thread(target=crawl) print("启动") p1.start() t1.s
阅读全文
kubernetes tekton
摘要:https://tekton.dev/docs/getting-started/ 官网 kubectl cluster-info Kubernetes control plane is running at https://192.168.14.132:6443 CoreDNS is running
阅读全文
使用nginx做反向代理解决jenkins插件下载的问题
摘要:yum -y install nginx cp /etc/nginx/nginx.conf{,.bak} vim /etc/nginx/nginx.conf server { listen 80; listen [::]:80; server_name updates.jenkins.io; roo
阅读全文
kubernetes jenkins
摘要:https://updates.jenkins.io/update-center.json https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json docker pull jenkins/jenkins:lts
阅读全文
helm部署gitea
摘要:helm部署gitea helm repo add gitea-charts https://dl.gitea.io/charts/ helm repo update helm repo list 创建secrets cat secret1.yaml apiVersion: v1 kind: Sec
阅读全文
kubernetes gitea
摘要:kubectl create deploy nginx --image nginx --dry-run -o yaml > gitea.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: gitea1 name: gite
阅读全文
基于cpu和内存进行pod扩容,创建hpa
摘要:基于cpu和内存进行pod扩容,创建hpa 创建镜像 mkdir php cd php touch dockerfile touch index.php vim dockerfile FROM php:5-apache ADD index.php /var/www/html/index.php RU
阅读全文
kubernetes metrics-server安装
摘要:k8s版本 [root@master v60]# kubectl versionWARNING: This version information is deprecated and will be replaced with the output from kubectl version --sh
阅读全文