when using flannel network plugin, it prompts for missing portmap Fixed by downloading: https://github.com/containernetworking/plugins/releases/download/v0.6.0/cni-plugins-amd64-v0.6.0.tgz and extract portmap to /opt/cni/bin/ Obtain node join token $ kubeadm token list | awk 'NR==2{print $1}' Get master hostname $ kubectl get nodes -l node-role.kubernetes.io/master -o jsonpath="{.items[*].metadata.name}" List nodes $ kubectl get nodes -o jsonpath="{.items[*].metadata.name}" Get master node ip $ kubectl cluster-info | head -1 | grep -oE "[0-9]+\.

Read More…

If you using Dockerfile, you should know about caching for faster builds. Sometimes, you need to rebuild without cache. you can run docker build with --no-cache option that will disable all layer cache. There is problem when you should use some Dockerfile commands like ADD or COPY to copy file form host to container. You need to copy new file to container then rebuild again without change any line of Dockerfile but the new file not was copy to container.

Read More…

There is a Hugo official example which describe how to implement a navigation breadcrump here: Example: Breadcrumb Navigation Anyway I didn’t make it work as I expected. I think it may not work if we oragnize contents use nested subdir.However I will implement a breadcrumb based on Hugo contains function. (1) Precondition Hugo where contains function has been integratedHugo “contains” operator implementation in “where” function, and have a section template like below:

Read More…