18 lines
373 B
Markdown
18 lines
373 B
Markdown
# jenkins
|
|
|
|
|
|
```bash
|
|
## 部署
|
|
kubectl apply -f jenkins-all.yaml
|
|
|
|
## 查看状态
|
|
kubectl -n jenkins get deploy,po,svc,pv,ingress
|
|
|
|
## 解锁 Jenkins
|
|
kubectl -n jenkins exec jenkins-master-xxxxxxx -- cat /var/jenkins_home/secrets/initialAdminPassword
|
|
|
|
## 进入pod
|
|
kubectl -n jenkins exec -it jenkins-master-6884cfb558-d2f82 -- sh
|
|
|
|
kubectl get po -A -owide|grep jnlp
|
|
``` |