k8s操作手册 2.3
10及以上,服务器规格2核cpu,2G内存及以上,可以装在虚拟机 里,也可以装在实体机上 ②规划主机名及ip k8s的服务器使用固定ip地址,配置主机名,要求能解析相应的主机名(master 结点)到对应的ip地址,可以使用内网集群的dns服务器或写入/etc/hosts文件 里。如: 主机名 ip地址 k8s-master1.cof-lee.com 10.99.1.51 k8s-master2 /etc/sysctl.conf <ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 net.bridge.bridge-nf-call-arptables = 1 net.ipv4.ip_forward = 1 EOF #前3行表示bridge设备在二层转发时也去调用iptables配置的三层规则(包含 conf < ip_vs ip_vs_sh ip_vs_rr ip_vs_wrr nf_conntrack_ipv4 EOF # modprobe ip_vs # modprobe ip_vs_sh # modprobe ip_vs_rr # modprobe ip_vs_wrr # modprobe nf_conntrack_ipv4 #一般默认只用ip_vs_rr # lsmod 0 码力 | 126 页 | 4.33 MB | 1 年前3The DevOps Handbook
changes, never mutate existing ii. Remove application assumptions about DB version iii. The Canary & Cluster Immune System Release Patterns 1. Canary Strategy a. Automates the release process of promoting environments b. Successful application behavior moves to the next group; failure stops or rolls back 2. Cluster Immune Strategy a. Expands upon Canary. Links production monitoring with release process to automatically0 码力 | 8 页 | 23.08 KB | 5 月前3python3学习手册
listen 7788; loca�on / { root /pypi; } } #测试,在浏览器打开以下地址(10.99.1.248为web server的ip) h�p://10.99.1.248:7788/simple/ ★客户端使用此pipy源 # pip3 install paramiko -i h�p://10.99.1.248:7788/simple/ IPPROTO_TCP, socket.TCP_MAXSEG, 1300) # 设置tcp_mss为 1300 sock1.bind((host, port)) # 监听的服务端ip,port,为一个元 组 sock1.listen(5) # 等待客户端连接 while True: con, addr = sock1.accept() IPPROTO_TCP, socket.TCP_MAXSEG, 1300) # 设置tcp_mss 为1300 sock1.connect((host, port)) # 连接服务端ip,port, 为一个元组 recv = sock1.recv(1024) # 接收对端发来的数据, 最多收1024字节,返回bytes sock1.close()0 码力 | 213 页 | 3.53 MB | 1 年前3postgresql操作手册
_pg/data/ # systemctl daemon-reload # systemctl restart postgresql ★第3章、设置监听ip及端口号 pg默认监听127.0.0.1的ip及5432/tcp端口 ★PG-13版本 # vi /var/lib/pgsql/13/data/postgresql.conf #pg-13版本 # listen_addresses = '*' port = 5432 # vi /var/lib/pgsql/13/data/pg_hba.conf #pg-13版本,添加以下一行表示允 许所有客户端ip远程连接 #若修改了存储路径,则在新的路径下/data_pg/data/pg_hba.conf host all all 0.0.0.0/0 listen_addresses = '*' port = 5432 # vi /var/lib/pgsql/data/pg_hba.conf #pg-10版本,添加以下一行表示允许 所有客户端ip远程连接 #若修改了存储路径,则在新的路径下/data_pg/data/pg_hba.conf host all all 0.0.0.0/00 码力 | 17 页 | 445.84 KB | 1 年前3
共 4 条
- 1