上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: 文件系统格式 windows: FAT, NTFS; Linux: ext, ext1/2/3/4, xfs; 网络: NFS, SMB(samba SMB/CIFS) 云: VFS: Linux & Mac OS 在文件系统之上虚拟出一层文件系统,Virtual FS; POSIX: portab 阅读全文
posted @ 2024-06-23 14:02 vivi~ 阅读(265) 评论(3) 推荐(1)
摘要: pathlib.Path("a.crt").write_text(a[0]) p.chmod(0o444) Path.cwd() p.write_bytes(b'Binary file contents') p.read_bytes() Path('setup.py').exists() class 阅读全文
posted @ 2024-06-07 15:33 vivi~ 阅读(27) 评论(0) 推荐(0)
摘要: k8s-ConfigMap Configure a Pod to Use a ConfigMap Create a ConfigMap Create a ConfigMap from a directory 读取configmap内容并以yaml格式输出 create configmap from 阅读全文
posted @ 2024-01-28 20:55 vivi~ 阅读(56) 评论(0) 推荐(0)
摘要: Scale the app Scaling will increase the number of Pods to the new desired state. Pre-config: expose the app publicly kubectl get services NAME TYPE CL 阅读全文
posted @ 2024-01-24 21:45 vivi~ 阅读(67) 评论(0) 推荐(0)
摘要: k8s kubelet (Kubernetes node agent): 是运行在每个节点上的代理,负责管理该节点上的容器, 它从 Kubernetes Master 接收 Pod 的描述,并确保节点上运行的容器与描述一致。不能跨节点。 kubelet 的主要作用是保证节点上的容器按照期望的状态运行 阅读全文
posted @ 2024-01-24 15:17 vivi~ 阅读(102) 评论(0) 推荐(0)
摘要: RKEv2: rolling upgrades, zero downtime upgrade, and automatic etcd backups. Variety of network plugins and has built-in support for the Helm package m 阅读全文
posted @ 2024-01-21 20:46 vivi~ 阅读(25) 评论(0) 推荐(0)
摘要: MetalLB: route TCP or UDP traffic (layer 4). Ingress: is based on the HTTP or HTTPS (layer 7), using NGINX or HAProxy. Once MetalLB is installed, the 阅读全文
posted @ 2024-01-21 19:52 vivi~ 阅读(45) 评论(0) 推荐(0)
摘要: tox.ini 来做配置文件, 在tox.ini配置[testenv:dev],可以执行tox -e dev,完成指定虚拟环境dev的test。 tox -e pep8 #对代码进行检查 tox -e py27 #构建测试环境 环境切换 _MAPPING = { 'dev': DevConfig, 阅读全文
posted @ 2022-12-30 19:24 vivi~ 阅读(209) 评论(0) 推荐(0)
摘要: strace -o 可以把log 写入一个文件 root@DTSEACLI1302348:/tmp # strace -o trace.log ls testdir/ file1 file2 wc -l filename 输出文件行数 wc -w filename 输出文件word wc -c/m 阅读全文
posted @ 2022-07-24 21:22 vivi~ 阅读(114) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/damontive/article/details/89856958 在Windows系统下编辑过的文本文件通常都会在行尾留下 "^M"符号,在Linux下使用 cat -v filename 可以查看文件中的 ^M 符号。 多出的 ^M 符号是由于Win 阅读全文
posted @ 2022-03-23 13:34 vivi~ 阅读(921) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 14 下一页