hello云胜

技术与生活

0%

kubesphere装的jenkins默认密码是P@88w0rd

kubesphere配置凭证

  1. gitlab配置token

    jenkins-token:yiw-Dd3PkuWPx1vtgKP8

    devops: RRs12nv63xMTEUsejEbs

    harbor-id: paas Paas12345

    kubeconfig

  2. 去jenkins配置gitlab

    image-20220421093905398

    image-20220421094042415

image-20220421094359228

注意,id必须是第一步在gitlab中创建token时写的token名字

image-20220421094514482

测试连接成功

  1. 去gitlab配置webhook

第一次下载依赖

image-20220421170413153

第二次就不重新下载了

image-20220421170453895

OOM

image-20220822154721006

修改内存设置

1
kubectl -n kubesphere-devops-system edit deploy devops-jenkins

把内存都改大

docker: command not found

改用nerdctl

(112条消息) k8s最新版本1.24.3基于containerd的集群部署、打包和Jenkins流水线定义_Leoly003的博客-CSDN博客_k8s打包

KubeSphere DevOps 流水线如何去 Docker - KubeSphere 开发者社区

之前是

image-20220822173304923

/var/lib/containers

普通账户无法触发流水线

1
2
3
4
http://1x.xxx.4.1:30880/kapis/devops.kubesphere.io/v1alpha3/namespaces/demo222cg9/pipelines/xxx/pipelineruns?branch=master

http://1x.xxx.4.1:30880/kapis/devops.kubesphere.io/v1alpha3/devops/demo222cg9/pipelines/xxx