Helm/Jenkins: Difference between revisions
Jump to navigation
Jump to search
Line 57: | Line 57: | ||
kubectl exec -n jenkins -it svc/jenkins -c jenkins -- bash | kubectl exec -n jenkins -it svc/jenkins -c jenkins -- bash | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |- | ||
| colspan=" | | colspan="2" | | ||
---- | ---- | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | |||
kubectl delete all --all -n jenkins | |||
</syntaxhighlight> | |||
| valign="top" | | | valign="top" | |
Revision as of 08:39, 4 June 2024
helm repo add jenkins https://charts.jenkins.io helm repo update helm repo list
Install
kubectl create namespace jenkins
cat <<EOF | helm upgrade --install -n jenkins jenkins jenkins/jenkins -f -
controller:
jenkinsUrl: jenkins.k8s.local
additionalPlugins:
- octopusdeploy:3.1.6
ingress:
enabled: true
hostName: jenkins.k8s.local
JCasC:
securityRealm: |-
local:
allowsSignup: false
enableCaptcha: false
users:
- id: admin
name: Admin
password: sadaqah!
- id: academia
name: Academia
password: sadaqah!
authorizationStrategy: |-
loggedInUsersCanDoAnything:
allowAnonymousRead: false
configScripts:
this-is-where-i-configure-the-executors: |
jenkins:
numExecutors: 5
EOF
Uninstall
helm uninstall -n jenkins jenkins
kubectl delete namespace jenkins
Playground
helm upgrade --install -f values.yaml myjenkins jenkins/jenkins
helm upgrade --install myjenkins jenkins/jenkins
helm show values jenkins/jenkins
|
kubectl exec -n jenkins -it svc/jenkins -c jenkins -- ls -lah /var|grep jenkins
kubectl exec -n jenkins -it svc/jenkins -c jenkins -- ls -lah /var
kubectl exec -n jenkins -it svc/jenkins -c jenkins -- bash
|
| |
kubectl delete all --all -n jenkins
|
References
| ||
| ||