k8s操作手册 2.3取消挂载 # vi /etc/fstab # swapoff -a #取消所有swap挂载 ⑥NTP服务需要开启,使用集群内的ntp server,确保集群时间的一致性 # yum install chrony -y # systemctl enable chronyd # systemctl start chronyd # cat > /etc/chrony ip_vs_wrr # modprobe nf_conntrack_ipv4 #一般默认只用ip_vs_rr # lsmod | grep -e ip_vs -e nf_conntrack #检查是否已加载ip_vs模块 ★最后重启操作系统 # reboot ★第1章、部署k8s版本<=1.23 k8s在1.23及之前版本默认是调用docker作为底层的容器运行时,从1 --service-cidr=10.7.0.0/16 \ # service网段,即cluster ip网段 --ignore-preflight-errors=Swap \ #忽略swap未关闭而导致的检查错误 --image-repository="cof- lee.com:5443/k8s" #指定为集群内部的docker镜像源 如果指定使用集群内部的docker镜像仓库,要提前在docker的daemon0 码力 | 126 页 | 4.33 MB | 1 年前3
python3学习手册#这里可执行python代码,类似shell脚本 >>> print("hello") >>> exit() #退出交互模式 ②执行一次性代码 # python3 -c "要执行的代码,多个语句之间用;分号隔开" ③执行脚本 # vi test.py #内容如下3行 #!/usr/bin/env 合适的主题 ★显示空白字符 File → Se�ngs → Editor → General → Appearance → 选 中 Show whitespaces ★不进行拼写检查 File → Se�ngs → Editor → Inspec�ons → Proofreading → Type 取消勾选 ★设置项目的python解释器 File → Se�ngs → xxA�r 使用函数来访问属性 geta�r( obj, a�rName ) #获取对象的属性 hasa�r( obj, a�rName ) #检查对象是否存在这个属性 seta�r( obj, a�rName, valuex ) #设置属性的值,若属性不存在,则 创建 dela�r( obj, a�rName )0 码力 | 213 页 | 3.53 MB | 1 年前3
共 2 条
- 1













