发布一个k8s部署视频:https://edu.csdn.net/course/detail/26967
课程内容:各种k8s部署方式。包括minikube部署,kubeadm部署,kubeasz部署,rancher部署,k3s部署。包括开发测试环境部署k8s,和生产环境部署k8s。
腾讯课堂连接地址https://ke.qq.com/course/478827?taid=4373109931462251&tuin=ba64518
第二个视频发布 https://edu.csdn.net/course/detail/27109
腾讯课堂连接地址https://ke.qq.com/course/484107?tuin=ba64518
介绍主要的k8s资源的使用配置和命令。包括configmap,pod,service,replicaset,namespace,deployment,daemonset,ingress,pv,pvc,sc,role,rolebinding,clusterrole,clusterrolebinding,secret,serviceaccount,statefulset,job,cronjob,podDisruptionbudget,podSecurityPolicy,networkPolicy,resourceQuota,limitrange,endpoint,event,conponentstatus,node,apiservice,controllerRevision等。
第三个视频发布:https://edu.csdn.net/course/detail/27574
详细介绍helm命令,学习helm chart语法,编写helm chart。深入分析各项目源码,学习编写helm插件
————————————————
http://topic.csdn.net/t/20060920/16/5035915.html
最近看到一个用于读取Rar压缩文件的库,比较有意思,解决python不能解压rar文件的问题。
下面这个地址是下载链接:
http://grue.l-t.ee/~marko/src/rarfile/
下载解压后会有一个rarfile.py的文件,可以直接引用。下面是一个简单的示例。
# add the rarfile path
import sys
import os
sys.path.insert(1, os.path.join(sys.path[0], './rarfile-1.0'))
from rarfile import RarFile
'''
RarFile(archive)
Creates new RarFile instance and reads Rar directory from archive.
namelist()
Return list of filenames.
infolist()
Return list of RarInfo items.
getinfo(filename)
Returns a RarInfo instance for specific file.
read(filename)
Read file contents.
close(filename)
Free open resources. Currently it does nothing.
'''
def openRarFile(filename):
rar=RarFile(filename)
print 'the file list',rar.namelist()
print 'the info list',rar.infolist()
for file in rar.namelist():
print 'the content of file %s' % file
print rar.read(file)
rar.close()
def main():
openRarFile('zipfiles.py.rar')
return 0
if __name__ == '__main__': main()