File tree Expand file tree Collapse file tree 5 files changed +45
-20
lines changed Expand file tree Collapse file tree 5 files changed +45
-20
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ helm list --all
47
47
helm show chart ingress-nginx/ingress-nginx
48
48
helm show readme ingress-nginx/ingress-nginx
49
49
helm show values ingress-nginx/ingress-nginx
50
+ helm show values --version 5.7.12 jenkins/jenkins
50
51
51
52
# ## push (plugin)
52
53
helm cm-push tomcat-9.0.0.tgz local-harbor
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ trap 'echo "${BASH_SOURCE[0]}: line ${LINENO}: status ${?}: user ${USER}: func $
3
3
set -o errexit
4
4
set -o errtrace
5
5
6
- # helm repo add jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart
6
+ # helm repo add jenkinsci https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart
7
7
# helm repo update
8
8
9
9
NAMESPACE=" jenkins-operator"
@@ -14,4 +14,4 @@ helm upgrade --install jenkins-operator \
14
14
--namespace ${NAMESPACE} \
15
15
--values values.yaml \
16
16
--version 0.8.0 \
17
- jenkins /jenkins-operator
17
+ jenkinsci /jenkins-operator
Original file line number Diff line number Diff line change @@ -8,29 +8,19 @@ source <(kubectl completion bash)
8
8
9
9
# #####################################################################
10
10
11
+ # ## version
12
+ kubectl version
11
13
kubectl api-versions
12
14
13
15
# #####################################################################
14
16
15
- # ## kubectx and kubens
16
-
17
- kubectx
18
- kubectx -
19
- kubectx -h
20
- kubectx -c
21
- kubectx --current
22
- kubectx docker-desktop
23
-
24
- kubens
25
- kubens -
26
- kubens -h
27
- kubens -c
28
- kubens --current
29
- kubens kube-system
17
+ # ## check logs and events
18
+ kubectl logs < pod-name> -c < init-container-name>
19
+ kubectl describe pod < pod-name>
30
20
31
21
# #####################################################################
32
22
33
- # ## apply and delete
23
+ # ## apply and delete resources
34
24
35
25
cat << EOF | kubectl apply -f -
36
26
EOF
@@ -63,7 +53,23 @@ kubectl annotate --overwrite storageclass rook-ceph-block storageclass.kubernete
63
53
64
54
# #####################################################################
65
55
66
- # ## dashboard
56
+ # ## kubectx and kubens
57
+
58
+ kubectx
59
+ kubectx -
60
+ kubectx -h
61
+ kubectx -c
62
+ kubectx --current
63
+ kubectx docker-desktop
64
+
65
+ kubens
66
+ kubens -
67
+ kubens -h
68
+ kubens -c
69
+ kubens --current
70
+ kubens kube-system
71
+
72
+ # #####################################################################
67
73
68
74
# ## dashboard password
69
75
kubectl describe secrets kubernetes-dashboard-token --namespace kube-system | grep token: | awk ' {print $2}'
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ function fd() { echo "+ fd ${@}">&2; command fd "${@}"; }
7
7
8
8
# ## fd
9
9
10
- fd -tf -E " *test.go|tset /" .go | xargs rg " \.Set[A-Za-z]+"
10
+ fd -tf -E " *test.go|test /" .go | xargs rg " \.Set[A-Za-z]+"
11
11
12
12
# #####################################################################
13
13
Original file line number Diff line number Diff line change 8
8
9
9
sudo yum groupinstall ' Development Tools'
10
10
brew install gcc
11
+
12
+ # #####################################################################
13
+
14
+ brew list
15
+ brew search < package_name>
16
+ brew info < package_name>
17
+
18
+ brew install < package_name>
19
+ brew upgrade < package_name>
20
+ brew uninstall < package_name>
21
+
22
+ # #####################################################################
23
+
24
+ # ## manually remove any leftover files
25
+ brew cleanup
26
+ brew list --cask | grep < package_name>
27
+ ls -l /opt/homebrew/Caskroom/< package_name>
28
+ rm -rf /opt/homebrew/Caskroom/< package_name>
You can’t perform that action at this time.
0 commit comments