Base usefull commands - 2017-07-21 07:35:01

Kubernetes Merging kubeconfig files: KUBECONFIG=~/.kube/config:second.cfg kubectl config view --merge --flatten > config Extracting a context from a kubeconfig file: KUBECONFIG=~/.kube/config kubectl config view \ --minify --flatten --context=context-1 > config Docker Mount portworx volume to the empty container docker run -it --rm --volume-driver pxd -v name=hublndstaging:/data alpine sh Unix Filesystem Remove files that is older than 7 days with specified file mask find /data/ -mtime +7 -name "*.gz" -exec rm {} \; Git base workflow Drop unused branches.