czwartek, 10 października 2024

kubectl basic commands

List all pods:

kubectl get pods
kubectl get pods -n <namespace>


Show logs from last pod:

kubectl logs -n <namespace> <pod> -p


Show logs from current pod:

kubectl logs -n <namespace> <pod>
# add "-f" to follow
 
Enter to bash inside pod:
kubectl -i -t <pod> -n <namespace> -- /bin/bash 

wtorek, 10 września 2024

gitk usefull switches

 gitk <one_branch>...<second_branch> - show commits between branches

 gitk --all - show changes from all branches

 gitk -- some/path/to/filter - filter by path

poniedziałek, 30 października 2023

wtorek, 18 kwietnia 2023

Force download all maven dependencies

Force download all maven dependencies:

mvn dependency:purge-local-repository


Download sources and javadocs:

mvn dependency:sources
mvn dependency:resolve -Dclassifier=javadoc
mvn dependency:tree -Dmaven.main.skip -Dmaven.test.skip 

source