随笔:120 文章:0 评论:7 阅读: 35156

04 2023 档案

 
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/ 阅读全文
posted @ 2023-04-30 05:41 lzjasd 阅读(62) 评论(0) 推荐(0) 编辑
软件源
摘要: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/ 阅读全文
posted @ 2023-04-30 05:38 lzjasd 阅读(92) 评论(0) 推荐(0) 编辑
pymongo工具类
摘要:from itemadapter import ItemAdapter import pymongo class Mongo_Client(object): def __init__(self,collection_name): self.clinet = pymongo.MongoClient(" 阅读全文
posted @ 2023-04-27 11:03 lzjasd 阅读(28) 评论(0) 推荐(0) 编辑
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 0: invalid start byte
摘要:“'Accept-Encoding': 'gzip, deflate'” 这一条是我从Fiddler直接复制过来的,为什么用浏览器可以正常浏览,而用Python模仿就不行呢? 综合网上的解释: 这句话的意思是本地接收压缩格式的数据,服务器传过来压缩格式gzip的文件,而解压这种gzip文件只能用de 阅读全文
posted @ 2023-04-26 15:42 lzjasd 阅读(57) 评论(0) 推荐(0) 编辑
python 相关
摘要:python判断文件是否存在 os.path.exists(file_path): python多线程 p1 = threading.Thread(target=down) t1 = threading.Thread(target=crawl) print("启动") p1.start() t1.s 阅读全文
posted @ 2023-04-25 14:10 lzjasd 阅读(46) 评论(0) 推荐(0) 编辑
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 阅读全文
posted @ 2023-04-23 04:26 lzjasd 阅读(15) 评论(0) 推荐(0) 编辑
使用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 阅读全文
posted @ 2023-04-21 02:23 lzjasd 阅读(287) 评论(0) 推荐(0) 编辑
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 阅读全文
posted @ 2023-04-20 03:39 lzjasd 阅读(14) 评论(0) 推荐(0) 编辑
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 阅读全文
posted @ 2023-04-19 20:54 lzjasd 阅读(68) 评论(0) 推荐(0) 编辑
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 阅读全文
posted @ 2023-04-19 00:44 lzjasd 阅读(63) 评论(0) 推荐(0) 编辑
基于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 阅读全文
posted @ 2023-04-07 17:48 lzjasd 阅读(334) 评论(0) 推荐(0) 编辑
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 阅读全文
posted @ 2023-04-07 03:28 lzjasd 阅读(539) 评论(0) 推荐(0) 编辑

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