We are using a DHCP CNI plugin to setup networking for Kubernetes pods. On a node (CentOS) that looked just like other nodes, we noticed that the pods were not getting their default gateways set (they don’t have a default route). After spending a lot of time checking configurations of DHCP server, switches, and the… Continue reading DHCP Does Not Set Default Gateway
Category: Development
svnsync alternative
svnsync, like its doc says, is the Subversion remote repository mirroring tool. We may need to have a mirror for backup, or for faster checkout/update in a remote datacenter. There are lots of documentations and articles about how to set up a mirror using svnsync. But in a situation that connection between mirror and master… Continue reading svnsync alternative
Compiling Subversion 1.8
Getting compiled binaries is easier but sometimes it just isn’t a choice. It was 2007 when I last compiled subversion, it was still 1.4. I remember that I had a tough time figuring out the apr/apr-utils compatibility issues, and installing neon. Now it’s 1.8. The new version deceptively gave me an impression that things has… Continue reading Compiling Subversion 1.8
Postfix – Only Allow Whitelisted Recipient Domains
We have a test environment with real user data, and during testing, the servers may send emails to these real users. But we definitely don’t want our users to receive those test emails, since they’ll be totally confused and get a bad feeling about our service. Yet we want the emails sent to our company’s… Continue reading Postfix – Only Allow Whitelisted Recipient Domains
Writing Greasemonkey User Scripts for Firefox and Chrome
Greasemonkey was initially only a Firefox extention but due to its popularity it’s quickly adopted by major browsers. Since Opera takes a very small market share, here on the topic of cross browser user scripts, I’m only going to talk about Chrome and Firefox. As for Internet Explorer, I just don’t like it. Now Chrome… Continue reading Writing Greasemonkey User Scripts for Firefox and Chrome
Using ImageMagick for WordPress Thumbnail Generation
When you upload an image in WordPress, the blogging software tries to generate several scaled versions of the images uploaded. So after it’s done, WordPress provides 4 different sizes of the image for you to insert into the post – thumbnail, small, large, original. I noticed that for my WordPress install, only the original image… Continue reading Using ImageMagick for WordPress Thumbnail Generation