Closed xuyuji9000 closed 5 years ago
Install Jenkins
# New PV
SET_PARAMETER="persistence.enabled=true,persistence.storageClass=alicloud-disk-efficiency-shanghai-e,persistence.size=20Gi,master.ingress.enabled=true,master.ingress.hostName=jenkins.yogiman.cn,master.serviceType=ClusterIP"
# Existing PVC
SET_PARAMETER="persistence.enabled=true,persistence.existingClaim=jenkins,master.ingress.enabled=true,master.ingress.hostName=jenkins.yogiman.cn,master.serviceType=ClusterIP"
helm install --namespace jenkins --set ${SET_PARAMETER} \
--name jenkins \
stable/jenkins
P.S.
Startup time: 23min
Monitoring initContainer log
kubectl logs -n jenkins -f jenkins-cfbc94595-sfjgx -c copy-default-config
Get Jenkins admin password:
kubectl get secret jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 -D
How to persist data across deployment?
Aliyun Internet performance
Hosted by China Telecom ZheJiang Branch (Hangzhou) [4.91 km]: 5.995 ms
Testing download speed................................................................................
Download: 112.99 Mbit/s
Testing upload speed......................................................................................................
Upload: 4.18 Mbit/s
Deleted the Helm installed Jenkins and reinstall with existingClaim
, the data persisted.
Prepare PVCPVC not needed now, letting helm take over the dynamic assignment