摘要: 服务是一种为一组功能相同的pod提供单一不变的接入点的资源,当服务存在时,他的IP地址和端口不会变. `apiVersion: v1 kind: Service metadata: name: kubia spec: ports: port: 80 targetPort: 8080 selector 阅读全文
posted @ 2021-05-26 21:27 PhilXu 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 在每个节点上创建一个pod(守护进程) apiVersion: apps/v1 kind: DaemonSet metadata: name: ssd-monitor spec: selector: matchLabels: app: ssd-monitor template: metadata: 阅读全文
posted @ 2021-05-24 15:30 PhilXu 阅读(51) 评论(0) 推荐(0) 编辑
摘要: RC(ReplicationController)的三个部分 label selector 标签选择器 replica count 副本个数 pod template pod 模板 RC的好处 确保pod持续运行 pod的水平收缩 kubectl edit rc kubia //修改Replicat 阅读全文
posted @ 2021-05-24 14:47 PhilXu 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 探活指针(liveness probe) 1 http get 2 尝试与容器指定端口建立tcp链接 3 exec 指针在容器内执行任意命令 `apiVersion: v1 kind: Pod metadata: name: "kubia-liveness" spec: containers: na 阅读全文
posted @ 2021-05-24 13:35 PhilXu 阅读(69) 评论(0) 推荐(0) 编辑
摘要: kubectl create -f .\kubia-manual.yaml `apiVersion: v1 kind: Pod metadata: name: "kubia-manual" spec: containers: name: kubia image: "luksa/kubia" port 阅读全文
posted @ 2021-05-24 13:17 PhilXu 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 安装minikube。配置环境Path系统环境变量 下载kubectl.exe。 配置环境Path系统环境变量 启动docker desktop 执行minikube start 阅读全文
posted @ 2021-05-24 10:57 PhilXu 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 不能在pycharm目录操作 阅读全文
posted @ 2020-04-25 11:22 PhilXu 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 复制 C:\Users\Administrator\Anaconda3\pkgs\qt-5.12.5-h7ef1ec2_0\Library\plugins\platforms的文件到dert目录 阅读全文
posted @ 2020-02-07 20:24 PhilXu 阅读(985) 评论(0) 推荐(0) 编辑
摘要: def tag(name, *content, cls=None, **attrs): if cls is not None: attrs['class'] = cls if attrs: attr_str = ''.join(' %s="%s"' % (attr,value ) for attr, 阅读全文
posted @ 2020-02-05 21:33 PhilXu 阅读(121) 评论(0) 推荐(0) 编辑
摘要: deb http://mirrors.aliyun.com/ubuntu/ xenial main deb-src http://mirrors.aliyun.com/ubuntu/ xenial main deb http://mirrors.aliyun.com/ubuntu/ xenial-u 阅读全文
posted @ 2020-01-29 22:27 PhilXu 阅读(242) 评论(0) 推荐(0) 编辑