Helm/Jenkins: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 2: | Line 2: | ||
helm repo update | helm repo update | ||
helm repo list | helm repo list | ||
==Config== | |||
<syntaxhighlight lang="properties"> | |||
export KUBECONFIG="${HOME}/.kube/dev-kubeconfig.yaml" | |||
export KUBECONFIG="${HOME}/.kube/gcp-kubeconfig.yaml" | |||
export KUBECONFIG="${HOME}/.kube/config" | |||
</syntaxhighlight> | |||
==Install== | ==Install== |
Revision as of 23:42, 4 June 2024
helm repo add jenkins https://charts.jenkins.io helm repo update helm repo list
Config
export KUBECONFIG="${HOME}/.kube/dev-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/gcp-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/config"
Install
kubectl create namespace jenkins
cat <<YML | 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
resourceRootUrl: 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
YML
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
kubectl delete ing --all -n jenkins
kubectl delete sts --all -n jenkins
|
kubectl delete svc --all -n jenkins
kubectl delete pvc --all -n jenkins
kubectl delete pv --all -n jenkins
|
| |
kubectl rollout restart deployment jenkins -n jenkins
kubectl logs -f jenkins-0 -c init -n jenkins
kubectl logs -f jenkins-0 -n jenkins
|
kubectl config --kubeconfig=${HOME}/.kube/dev-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/gcp-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/config view --flatten
|
References
| ||
| ||