k8s篇-helm3安装Jenkins

  • 安装
#helm3的安装请参考:https://blog.csdn.net/qq_35550345/article/details/104671922
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm install jenkins stable/jenkins -n test --debug 

helm repo add bitnami https://charts.bitnami.com/bitnami
helm install my-jenkins bitnami/jenkins \
    --set jenkinsUser=root \
    --set jenkinsPassword=password \
    --set persistence.storageClass=rook-ceph-block \
    --set persistence.size=20Gi \
    --set service.type=ClusterIP \
    --namespace jenkins \
    --debug
#注意:参数说明请参考 https://hub.helm.sh/charts/bitnami/jenkins
  • 卸载
helm delete jenkins --namespace test
helm uninstall jenkins --namespace jenkins
  • 登录(在登录之前还要配ingress,详见:https://blog.csdn.net/qq_35550345/article/details/104686325)
#获取密码
printf $(kubectl get secret --namespace management jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo
#用户名默认为admin

你可能感兴趣的:(Docker&k8s)