k8s笔记14--初次体验 开源云原生软件交付平台zadig

k8s笔记14--初次体验 开源云原生软件交付平台zadig

  • 1 介绍
  • 2 部署&测试
    • 2.1 部署
    • 2.2 测试
  • 3 注意事项
  • 4 说明

1 介绍

Zadig 是 KodeRover 公司基于 Kubernetes 自主设计、研发的开源分布式持续交付 (Continuous Delivery) 产品,为开发者提供云原生运行环境,支持开发者本地联调、微服务并行构建和部署、集成测试等。Zadig 内置了面向 Kubernetes、Helm、云主机/物理机、大体量微服务等复杂业务场景的最佳实践,为工程师一键生成自动化工作流 (workflow)。Zadig 不改变现有习惯和流程,几乎兼容所有软件架构,无缝集成 GitHub/GitLab、Jenkins、多家云厂商等,运维成本极低。

目标是通过云原生技术的运用和工程产品赋能,打造极致、高效、愉悦的开发者工作体验,让工程师成为企业创新的核心引擎。

业务架构如下图所示:
k8s笔记14--初次体验 开源云原生软件交付平台zadig_第1张图片

2 部署&测试

2.1 部署

1 软硬件环境
硬件:
4CPU 8G内存 32G存储
软件:
Ubuntu 18.04 x86 Server
K8S 1.19.3

2 部署

wget curl -SsL https://github.com/koderover/zadig/releases/latest/download/all_in_one_install_quickstart.sh

export IP="192.168.2.21" # 此处 ip 填写部署节点的IP即可
export PORT=30000
./all_in_one_install_quickstart.sh 

部署主要步骤如下:

main() {
  printLogo
  logSuccess "Welcome to the Koderover Installer"
  logInfo "Checking system for requirements..."
  setTimer
  checkForRoot
  getSystemInfos
  preflightCheck
  reportTime "preflight check"
  setTimer
  mkdir -p ${KR_HOME}/mypkg
  reportTime "install preparation"
  setTimer
  installCri
  installKubernetesHost
  prepareKubernetes
  reportTime "infrastructure installation"
  setTimer
  installZadig
  postInstallZadig
  reportTime "zadig installation"
}

部署过程会检查系统环境, 主要输出:

 infrastructure installation completed in 15 minute(s) and 23 second(s)
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
NO ENCRYPTION KEY PROVIDED, ZADIG HAS GENERATED AN ENCRYPTION KEY
1E3BEAC7ADC9C6EF3A50B7E432BD6AA6
THIS KEY WILL BE USED FOR POSSIBLE FUTURE REINSTALLATION, PLEASE SAVE THIS KEY CAREFULLY\n


 infrastructure installation completed in 15 minute(s) and 23 second(s)
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
NO ENCRYPTION KEY PROVIDED, ZADIG HAS GENERATED AN ENCRYPTION KEY
1E3BEAC7ADC9C6EF3A50B7E432BD6AA6
THIS KEY WILL BE USED FOR POSSIBLE FUTURE REINSTALLATION, PLEASE SAVE THIS KEY CAREFULLY\n
installing helm client...
succeed to install helm client: version.BuildInfo{Version:"v3.6.1", GitCommit:"61d8e8c4a6f95540c15c6a65f36a6dd0a45e7a2f", GitTreeState:"clean", GoVersion:"go1.16.5"}
installing zadig ...
"koderover-chart" has been added to your repositories
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "koderover-chart" chart repository
Update Complete. ⎈Happy Helming!⎈
Release "zadig-zadig" does not exist. Installing it now.


NAME: zadig-zadig
LAST DEPLOYED: Sat Jan 29 05:44:00 2022
NAMESPACE: zadig
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
Zadig has been installed successfully.

An initial account has been generated for your first login: admin/zadig. You can visit    192.168.2.21:30000
and use the account above to access zadig system.
 Zadig installation complete.
 zadig installation completed in 27 minute(s) and 3 second(s)
 *****************************************
 *    Koderover installer exit report    *
 *****************************************
 ✔ ROOT PRIVILEGE CHECK SUCCESS
 ✔ SYSTEM CHECK SUCCESS
 ✔ DEPENDENCY INSTALLATION SUCCESS
 ✔ KUBERNETES CLUSTER INITIALIZATION SUCCESS
 ✔ ZADIG INSTALLATION SUCCESS
 *****************************************
 *            END OF REPORT              *
 *****************************************
root@xg:/home/xg/zadig# 

安装完成后, 通过kubeclt 可以安到如下 deploy 和 statefulset
k8s笔记14--初次体验 开源云原生软件交付平台zadig_第2张图片

2.2 测试

通过 ${ip}:30000 访问zadig, 账户密码为 admin/zadig

登陆界面:
k8s笔记14--初次体验 开源云原生软件交付平台zadig_第3张图片
主界面:
k8s笔记14--初次体验 开源云原生软件交付平台zadig_第4张图片
集群管理:
在 系统设置-集群管理-新建 中添加加新集群, 那么就可以在新集群中添加 zadig 的agent, 从而可以将 zadig 的任务调度到其它集群执行, 接入命令和最后效果如下:

kubectl apply -f "http://192.168.2.21:30000/api/aslan/cluster/agent/61f4d84d899cbdea3539f2ab/agent.yaml?type=deploy"

k8s笔记14--初次体验 开源云原生软件交付平台zadig_第5张图片

3 注意事项

  1. All in One 一键安装原理是在一台机器上初始化K8S 安装环境, 然后在 k8s 集群内部部署zadig 服务, 因此系统环境要满足K8s 部署的环境.
  2. 升级
helm --kubeconfig .kube/config-zadig upgrade zadig-zadig koderover-chart/zadig --namespace zadig --version=1.12.0
如果需要定制 zadig 配置项,可以 helm fetch koderover-chart/zadig 下载 helm chart 安装包,按需更改 values.yaml 文件

4 说明

zadig 官网
zadig 快速安装

你可能感兴趣的:(K8S,&,Docker,云原生,kubernetes,开源云原生软件交付平台,zadig,分布式持续交付)