云原生系列

2020-11-03  本文已影响0人  泥人冷风

1. DevOps+持续交付+微服务+容器:实践路径

1.1 首先,独立安装各自集群

Gitlab 安装-》Jenkins 安装配置-》Harbor 2.1.2安装 -》k8s1.20.1 集群安装

1.2 其次,持续集成各个集群

持续集成GitLab+Jenkins-》持续集成Jenkins+Harbor-》持续集成Harbor+Helm(Kmaster)

可以达到IDEA编写微服务,上传到GitLab;Jenkins拉取代码编译,上传镜像到Harbor,K8s拉取镜像执行看到结果

架构过程中,查看k8s和docker版本信息时发现开发语言都是Go语言

[root@kmaster ~]# docker version
Client: Docker Engine - Community
 Version:           20.10.1
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        831ebea
 Built:             Tue Dec 15 04:37:17 2020
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.1
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       f001486
  Built:            Tue Dec 15 04:35:42 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc:
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

[root@kmaster ~]# kubectl version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1", GitCommit:"c4d752765b3bbac2237bf87cf0b1c2e307844666", GitTreeState:"clean", BuildDate:"2020-12-18T12:09:25Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.1", GitCommit:"c4d752765b3bbac2237bf87cf0b1c2e307844666", GitTreeState:"clean", BuildDate:"2020-12-18T12:00:47Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}

如果想读懂Go语言,可以参考以下进行简易学习:
-》Go初探
-》Go数据类型、关键字、标识符
-》Go变量 、常量、枚举
-》Go运算符、控制语句
-》Go字典、字符串
-》Go数组、切片
-》Go函数
-》Go结构体、方法、接口
-》Go包管理
-》Go 异常处理
-》Go 反射机制
-》Go 单元测试
-》Go 并发编程

2. K8S 制作成chart,上传到Harbor chart repo(计划中)

上一篇 下一篇

猜你喜欢

热点阅读