Confirm the name of the node you want to remove, and make sure that the pods on the node can be terminated. The pod list can be retrieved using the below command: kubectl get nodes Mark the node as unschedulable… Read More
ssh port forwarding in practice
As a global company, it is very common that a server in one site needs to communicate with another server in another site. These days we encounter this situation: a server named A in China, assuming IP 192.168.10.10, needs to… Read More
serve static content using springboot
springboot can serve static content files, for example, html, js, css and image, for http request. By default, springboot searches the below directories for the static resources in the class path. classpath:/META-INF/resources/ classpath:/resources/ classpath:/static/ classpath:/public/ So you can put your… Read More
create self-signed certificate with san
I explained why google chrome browser does not respect a certificate without Subject Alternative Name in my earlier post. I also showed how to create a self-signed certificate using a single openssl command, but that certificate did not include SAN.… Read More
nvm introduction
nvm is an excellent tool that can be used to manage different versions of nodejs in a single OS. I am using nvm in my development Linux server to switch the nodejs to the latest version after I download it… Read More
chrome does not use commonName to verify site certificate
I showed how to create a self-signed certificate using openssl command line in this post. However, after I created a self-signed certificate using the similar openssl command and deployed the certificate in a Kubernete ingress, I always got a warning… Read More
create self-signed certificate
Use the below command to create a self-signed certificate: openssl req -x509 -days 365 -nodes -newkey rsa:2048 -keyout tls.key -out tls.crt \ -subj “/C=CN/ST=Shandong/L=Qingdao/O=Nokia/OU=RD Team/CN=deskshell.com” A very good reference material can be found in digital ocean as below openssl essentials
recommend two npm registries in China
做Web前端开发离不开npm, 开发人员可以使用npm来管理项目的各种依赖包,公开的依赖包都被保存在一个统一的服务器上,它的访问地址为https://registry.npmjs.org。然而在国内访问这个地址时,有时比较慢,下载依赖包的过程中经常卡住。这里推荐两个国内的npm registry。从这两个registry下载package时,速度相对快很多。
delete branches in the remote git repository
There are two methods to delete a branch in the remote git server. Either of these two commands is OK. git push origin :BRANCH_TO_BE_DELETED git push –delete origin BRANCH_TO_BE_DELETED Please note the colon in the first command. In order to… Read More
suppress skipping task names in ansible 2.7 console output
In my post ‘do not display skipping task in ansible‘, I mentioned that the stdout_callback = full_skip configuration can suppress the skipping task names in the ansible console output. However, after I upgrade ansible to 2.7.6, I find that there are duplicated… Read More