摘要: kubectl delete ServiceInstance <instance> -n <ns> -o=json |jq '.metadata.finalizers = null' | kubectl apply -f - kubectl get ServiceInstance <instance 阅读全文
posted @ 2020-09-25 10:45 建小国 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: k8s dashboard部署、ing配置后,访问是报500 如下问题 http: TLS handshake error from 10.233.96.165:53192: remote error: tls: bad certificate 因为k8s-dashboard后台监听8443,需要配 阅读全文
posted @ 2019-12-20 15:28 建小国 阅读(2171) 评论(0) 推荐(0) 编辑
摘要: In [1]: all([""]) Out[1]: False In [2]: all([]) # 空列表,为True Out[2]: True In [3]: all(['a', 'b', 'c', 'd']) # 列表list,元素都不为空或0 Out[3]: True In [4]: all( 阅读全文
posted @ 2017-10-25 19:55 建小国 阅读(4647) 评论(0) 推荐(0) 编辑
摘要: 修改配置文件_config.yml,添加deploy时,‘:’后边一定要加空格; 否则hexo d 不能将本地blog部署到github的仓库,应该时固定语法。 欢迎访问我的github博客:jianxiaoguo.github.io 哈哈哈 ———————————————————————————— 阅读全文
posted @ 2017-10-23 16:47 建小国 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 百度招聘都是通过ajax返回的数据,用scrapy爬就很尴尬了。建模,items文件: 1 # -*- coding: utf-8 -*- 2 3 # Define here the models for your scraped items 4 # 5 # See documentation in 阅读全文
posted @ 2017-10-14 15:42 建小国 阅读(724) 评论(0) 推荐(0) 编辑
摘要: # -*-coding:utf-8-*-# 2017-10-11 建小国from selenium import webdriverimport json, time, xlwtclass Zhilian(object): def __init__(self): # 第一页 智联 北京 python 阅读全文
posted @ 2017-10-11 16:25 建小国 阅读(2438) 评论(0) 推荐(0) 编辑
摘要: # -*-coding:utf-8-*-from lxml import etreeimport requestsimport sys, os, reclass Meizitu(object): def __init__(self): # 设置序号为图片名 self.i = 1 # 构建url se 阅读全文
posted @ 2017-10-10 17:40 建小国 阅读(340) 评论(0) 推荐(0) 编辑
摘要: # -*-coding:utf-8-*-import requestsimport xlwtclass Lagou_job(object): def __init__(self): self.url = 'https://www.lagou.com/jobs/positionAjax.json?ci 阅读全文
posted @ 2017-10-08 20:18 建小国 阅读(229) 评论(0) 推荐(0) 编辑
摘要: # -*-coding:utf-8-*-import requestsimport jsonclass Douban(object): def __init__(self): self.url = "https://m.douban.com/rexxar/api/v2/subject_collect 阅读全文
posted @ 2017-10-07 20:11 建小国 阅读(2081) 评论(1) 推荐(0) 编辑