07 2020 档案
摘要:一、K8s编排yaml文件 1.1 如何通过Yaml文件创建deployment自动关联NodePort服务呢? a. 命令行方式关联 参考资料:K8S拉取Django项目创建pod 文章中通过命令行方式关联,还需要手动修改svc参数 b. yaml文件编排方式 apiVersion: apps/v
阅读全文
摘要:一、环境配置 1.1 系统信息 CentOS Linux release 7.6.1810 (Core) 3.10.0-957.27.2.el7.x86_64 2.2 准备环境 a. 关闭防火墙 systemctl stop firewalld systemctl disable firewalld
阅读全文
摘要:1. Go结构体嵌套 1.1 嵌套别的结构体 package main import ( "encoding/json" "fmt" ) type addr struct { Province string City string } type info struct { Age int Email
阅读全文