07 2020 档案

摘要:一、K8s编排yaml文件 1.1 如何通过Yaml文件创建deployment自动关联NodePort服务呢? a. 命令行方式关联 参考资料:K8S拉取Django项目创建pod 文章中通过命令行方式关联,还需要手动修改svc参数 b. yaml文件编排方式 apiVersion: apps/v 阅读全文
posted @ 2020-07-24 14:02 Pythia丶陌乐 阅读(2558) 评论(0) 推荐(0)
摘要:一、环境配置 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 阅读全文
posted @ 2020-07-24 11:11 Pythia丶陌乐 阅读(569) 评论(0) 推荐(0)
摘要:1. Go结构体嵌套 1.1 嵌套别的结构体 package main import ( "encoding/json" "fmt" ) type addr struct { Province string City string } type info struct { Age int Email 阅读全文
posted @ 2020-07-17 10:22 Pythia丶陌乐 阅读(1351) 评论(0) 推荐(0)