Helm/Jenkins: Difference between revisions
Jump to navigation
Jump to search
Tag: Reverted |
|||
Line 54: | Line 54: | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
helm upgrade --install -f values.yaml | helm upgrade --install -f values.yaml camunda camunda/camunda-platform | ||
helm upgrade --install | helm upgrade --install camunda camunda/camunda-platform | ||
helm show values | helm show values camunda/camunda-platform | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl exec -n | kubectl exec -n camunda -it svc/camunda -c camunda -- ls -lah /var|grep camunda | ||
kubectl exec -n | kubectl exec -n camunda -it svc/camunda -c camunda -- ls -lah /var | ||
kubectl exec -n | kubectl exec -n camunda -it svc/camunda -c camunda -- bash | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 72: | Line 72: | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl | kubectl rollout restart deploy camunda -n camunda | ||
kubectl | kubectl rollout restart sts camunda -n camunda | ||
kubectl | kubectl logs -f camunda-0 -c init -n camunda | ||
kubectl logs -f camunda-0 -n camunda | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl delete svc --all -n | kubectl config --kubeconfig=${HOME}/.kube/aws-kubeconfig.yaml view --flatten | ||
kubectl delete pvc --all -n | kubectl config --kubeconfig=${HOME}/.kube/dev-kubeconfig.yaml view --flatten | ||
kubectl delete pv --all -n | kubectl config --kubeconfig=${HOME}/.kube/gcp-kubeconfig.yaml view --flatten | ||
kubectl config --kubeconfig=${HOME}/.kube/config view --flatten | |||
</syntaxhighlight> | |||
|- | |||
| colspan="2" | | |||
---- | |||
|- | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
kubectl delete all --all -n camunda | |||
kubectl delete ing --all -n camunda | |||
kubectl delete sts --all -n camunda | |||
</syntaxhighlight> | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
kubectl delete svc --all -n camunda | |||
kubectl delete pvc --all -n camunda | |||
kubectl delete pv --all -n camunda | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 90: | Line 110: | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl | kubectl get pvc -n camunda -l app.kubernetes.io/instance=camunda | ||
kubectl get pvc -n camunda -l release=camunda | |||
kubectl | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
kubectl | kubectl delete pvc -n camunda -l app.kubernetes.io/instance=camunda | ||
kubectl delete pvc -n camunda -l release=camunda | |||
kubectl | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 08:39, 6 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 install -n jenkins jenkins jenkins/jenkins --version 5.1.26 -f -
controller:
installPlugins: false
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 camunda camunda/camunda-platform
helm upgrade --install camunda camunda/camunda-platform
helm show values camunda/camunda-platform
|
kubectl exec -n camunda -it svc/camunda -c camunda -- ls -lah /var|grep camunda
kubectl exec -n camunda -it svc/camunda -c camunda -- ls -lah /var
kubectl exec -n camunda -it svc/camunda -c camunda -- bash
|
| |
kubectl rollout restart deploy camunda -n camunda
kubectl rollout restart sts camunda -n camunda
kubectl logs -f camunda-0 -c init -n camunda
kubectl logs -f camunda-0 -n camunda
|
kubectl config --kubeconfig=${HOME}/.kube/aws-kubeconfig.yaml view --flatten
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
|
| |
kubectl delete all --all -n camunda
kubectl delete ing --all -n camunda
kubectl delete sts --all -n camunda
|
kubectl delete svc --all -n camunda
kubectl delete pvc --all -n camunda
kubectl delete pv --all -n camunda
|
| |
kubectl get pvc -n camunda -l app.kubernetes.io/instance=camunda
kubectl get pvc -n camunda -l release=camunda
|
kubectl delete pvc -n camunda -l app.kubernetes.io/instance=camunda
kubectl delete pvc -n camunda -l release=camunda
|
References
| ||
| ||