在k8s安装CICD-devtron

先前条件

《kubernetes(k8s) 存储动态挂载》
参考我之前的文档进行部署
https://www.oiox.cn/index.php/archives/32/

安装helm工具


root@cby:~# curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
root@cby:~# chmod 700 get_helm.sh
root@cby:~# ./get_helm.sh
Downloading https://get.helm.sh/helm-v3.10.2-linux-amd64.tar.gz
Verifying checksum... Done.
Preparing to install helm into /usr/local/bin
helm installed into /usr/local/bin/helm
root@cby:~#

使用 helm 安装


root@cby:~# helm repo add devtron https://helm.devtron.ai
"devtron" has been added to your repositories
root@cby:~#
root@cby:~#
root@cby:~#
root@cby:~# helm install devtron devtron/devtron-operator --create-namespace --namespace devtroncd --set installer.modules={cicd} NAME: devtron
LAST DEPLOYED: Fri Nov 18 05:22:13 2022
NAMESPACE: devtroncd
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Run the following command to get the password for the default admin user: kubectl -n devtroncd get secret devtron-secret -o jsonpath='{.data.ADMIN_PASSWORD}' | base64 -d
2. Run the following command to get the dashboard URL for the service type:
LoadBalancer kubectl get svc -n devtroncd devtron-service -o jsonpath='{.status.loadBalancer.ingress}'
3. To track the progress of Devtron microservices installation, run the following command: kubectl -n devtroncd get installers installer-devtron -o jsonpath='{.status.sync.status}'
root@cby:~#

查看验证


root@cby:~# kubectl get pod -n devtroncd
NAME READY STATUS RESTARTS AGE
app-sync-cronjob-27815700-lz565 0/1 Completed 0 2d5h
app-sync-cronjob-27817140-6wsj6 0/1 Completed 0 29h
app-sync-cronjob-27818580-kzjdb 0/1 Completed 0 5h33m
argo-rollouts-68dc6f5b75-949x9 1/1 Running 2 (152m ago) 4d10h
argocd-application-controller-0 1/1 Running 2 (152m ago) 4d9h
argocd-dex-server-54c8d7cbdf-nfjj2 1/1 Running 2 (153m ago) 4d10h
argocd-redis-7967b6b9f7-6c69j 1/1 Running 2 (152m ago) 4d9h
argocd-repo-server-6f9d65d87f-9p9p8 1/1 Running 2 (152m ago) 4d9h
argocd-server-7cf98cdffb-4qxgm 1/1 Running 2 (152m ago) 4d9h
clair-8cd58cdd9-nhglm 1/1 Running 46 (152m ago) 4d9h
dashboard-777c9bb5f9-zz4b5 1/1 Running 2 (152m ago) 4d10h
devtron-d74cf8958-2x7sb 1/1 Running 4 (151m ago) 4d8h
devtron-grafana-6657cbc8f9-9j7fp 2/2 Running 2 (153m ago) 4d8h
devtron-grafana-test 0/1 Completed 6 4d8h
devtron-housekeeping-qp59k 0/1 Completed 0 4d10h
devtron-nats-0 3/3 Running 6 (152m ago) 4d10h
devtron-nats-test-request-reply 0/1 Completed 0 4d10h
git-sensor-0 1/1 Running 6 (152m ago) 4d10h
grafana-org-job-jgzjp 0/1 Completed 0 4d8h
image-scanner-8679b48b66-t7bd2 1/1 Running 8 (151m ago) 4d9h
inception-846694f944-5hjtq 1/1 Running 2 (152m ago) 4d10h
kubelink-67985f58d5-xmds2 1/1 Running 2 (152m ago) 4d10h
kubewatch-655f8669dd-xrx5q 1/1 Running 8 (152m ago) 4d10h
lens-6c86975478-vwpq2 1/1 Running 9 (151m ago) 4d10h
notifier-5b4b48b677-dkcls 1/1 Running 1 (152m ago) 4d8h
postgresql-migrate-casbin-2lz42 0/1 Completed 0 4d10h
postgresql-migrate-casbin-bnzdb-954p6 0/1 Completed 0 4d8h
postgresql-migrate-devtron-t2w25 0/1 Completed 0 4d10h
postgresql-migrate-devtron-vlym3-jnvmf 0/1 Completed 0 4d8h
postgresql-migrate-gitsensor-sxpcr 0/1 Completed 0 4d10h
postgresql-migrate-lens-tmvt5 0/1 Completed 0 4d10h
postgresql-postgresql-0 2/2 Running 4 (152m ago) 4d10h
root@cby:~#
root@cby:~# kubectl get svc -n devtroncd
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
argo-rollouts-metrics ClusterIP 10.98.113.34 <none> 8090/TCP 4d10h
argocd-application-controller ClusterIP 10.107.155.128 <none> 8082/TCP 4d9h
argocd-dex-server ClusterIP 10.97.14.200 <none> 5556/TCP,5557/TCP,5558/TCP 4d10h
argocd-redis ClusterIP 10.102.166.243 <none> 6379/TCP 4d9h
argocd-repo-server ClusterIP 10.111.245.9 <none> 8081/TCP 4d9h
argocd-server ClusterIP 10.106.6.25 <none> 80/TCP,443/TCP 4d9h
clair ClusterIP 10.109.97.107 <none> 6060/TCP,6061/TCP 4d9h
dashboard-service ClusterIP 10.110.239.18 <none> 80/TCP 4d10h
devtron-grafana ClusterIP 10.111.200.165 <none> 80/TCP 4d8h
devtron-nats ClusterIP None <none> 4222/TCP,6222/TCP,8222/TCP,7777/TCP,7422/TCP,7522/TCP 4d10h
devtron-service LoadBalancer 10.100.28.2 <pending> 80:32489/TCP 4d10h
git-sensor-service ClusterIP 10.99.53.176 <none> 80/TCP 4d10h
image-scanner-service ClusterIP 10.103.97.46 <none> 80/TCP 4d9h
kubelink-service ClusterIP 10.97.172.63 <none> 50051/TCP 4d10h
lens-service ClusterIP 10.100.239.205 <none> 80/TCP 4d10h
notifier-service ClusterIP 10.102.67.212 <none> 80/TCP 4d8h
postgresql-postgresql ClusterIP 10.104.194.12 <none> 5432/TCP 4d10h
postgresql-postgresql-headless ClusterIP None <none> 5432/TCP 4d10h
postgresql-postgresql-metrics ClusterIP 10.103.17.122 <none> 9187/TCP 4d10h
root@cby:~#

访问测试


# 使用用户名:admin和下面提到的密码运行命令。
root@cby:~# kubectl -n devtroncd get secret devtron-secret -o jsonpath='{.data.ADMIN_PASSWORD}' | base64 -d
Qn7GuI26j4HcuVW2 # 访问地址
http://192.168.8.61:32489/ # 用户名:admin
# 密码:Qn7GuI26j4HcuVW2

关于

https://www.oiox.cn/

https://www.oiox.cn/index.php/start-page.html

CSDN、GitHub、51CTO、知乎、开源中国、思否、掘金、简书、华为云、阿里云、腾讯云、哔哩哔哩、今日头条、新浪微博、个人博客

全网可搜《小陈运维》

文章主要发布于微信公众号

在k8s安装CICD-devtron的更多相关文章

  1. k8s 安装文档

    k8s 安装文档 1.5 http://blog.csdn.net/bobpen/article/details/78958675

  2. k8s 安装 istio 的坑

    本文针对于二进制部署的k8s安装istio1.67版本 没有设置admin.conf的小伙伴请参考 https://www.cnblogs.com/Tempted/p/13469772.html 1. ...

  3. docker k8s安装

    docker安装 删除依赖包 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docke ...

  4. K8S 安装 Wordpress

    基本概念 Helm 可以理解为 Kubernetes 的包管理工具,可以方便地发现.共享和使用为Kubernetes构建的应用,它包含几个基本概念 Helm是目前Kubernetes服务编排领域的唯一 ...

  5. k8s 安装步骤

    1 安装Docker 1.1 增加中国区镜像 https://registry.docker-cn.com 2 下载安装k8s的镜像的脚本 https://github.com/AliyunConta ...

  6. 关于k8s安装脚本方面的草稿

    周六作的, 慢慢完善. #! /usr/bin/env bash set -e set -u set -x #让此脚本可以重复执行,所以加了一些判断 #使用系统的PATH环境 export PATH= ...

  7. k8s安装遇到的问题及处理方法

    安装kubernetes遇到 cni config uninitialized KubeletNotReady runtime network not ready: NetworkReady=fals ...

  8. k8s1.4.3安装实践记录(2)-k8s安装

    前面一篇已经安装好了ETCD.docker与flannel(k8s1.4.3安装实践记录(1)),现在可以开始安装k8s了 1.K8S 目前centos yum上的kubernetes还是1.2.0, ...

  9. k8s安装部署过程个人总结及参考文章

    以下是本人安装k8s过程 一.单机配置 1. 环境准备 主机名 IP 配置 master1 192.168.1.181 1C 4G 关闭所有节点的seliux以及firewalld sed -i 's ...

  10. k8s安装

    docker pull mirrorgooglecontainers/kube-scheduler:v1.13.3 安装docker 使用阿里的源https://mirrors.aliyun.com/ ...

随机推荐

  1. JavaScript数据类型以及转换

    一.数据类型 分类 基本(值)类型: String Number Boolean undefined unll 对象(引用)类型: Object:任意对象 Array:一种特别的对象 Function ...

  2. QPushButton与Enter相链接

    ui->pushButton_login->setFocus(); // 设置默认焦点 ui->pushButton_login->setShortcut(QKeySequen ...

  3. 美国:KDB 986446 D01已生效

    1.美国FCC认证新要求 继2022年11月25日FCC发布了FCC 22-84法规禁止授权被认为对美国国家安全构成威胁的通信和视频监控设备后,2023年1月24日FCC又发布了KDB 986446 ...

  4. 通过Linux的socket套接字实现客户端与服务器端的通信

    具体案例:使用树莓派ds18b20温度传感器实现温度上报 首先需要获得传感器文件中保存的温度信息: 温度信息通常保存在路径为"/sys/bus/w1/devices/28-xxxxxxxxx ...

  5. pt-query-digest 工具使用分析

    pt-query-digest是用于分析mysql慢查询的一个工具,它可以分析binlog.General log.slowlog,也可以通过SHOW PROCESSLIST或者通过tcpdump抓取 ...

  6. 执行kubectl api-resources 报错error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request

    1.故障现象:error: unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the serve ...

  7. ROS2踩坑记录

    在Windows10的WSL2中的Ubuntu22.04子系统中安装ros2 humble版本. 官方文档http://docs.ros.org/en/humble/Installation/Ubun ...

  8. 【项目记录】2:python3 使用MySQL 出现RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods 报错

    报错是因为缺少了一个库 cryptography  导入了就好了. ps:如果是本机,输入IP会报错,直接使用localhost可连接数据库

  9. hexo相对路径图片显示

    说明 hexo的图片默认不支持相对路径.需要配置 post_asset_folder 选项,设置从false改成true之后支持.但是要求图片目录必须和文件名相同. 由于我在typore下的markd ...

  10. scanf()函数的详解以及使用时需要注意的一些细节-C语言基础

    这篇文章要探讨的是"scanf()函数的详解以及使用时需要注意的一些细节".涉及scanf()函数的应用和需要注意的问题.属于C语言基础篇(持续更新). scanf()(函数原型: ...