Forwarding Vault audit logs to a remote Syslog server (like Graylog)

Using Vault’s Audit Backend to send logs to a remote Syslog server.

»
Author's profile picture David Chua on guide

Alerting with Prometheus and AlertManager

How to setup Prometheus AlertManager and get a whole alerting pipeline setup.

»
Author's profile picture David Chua on guides

Deleting files and getting your diskspace back without rebooting

When you run out of diskspaces and need to delete files quickly to recover them, most of the time, your deleted files will not free up the diskspace until the process that is using it is restarted or deleted.

»
Author's profile picture David Chua on guides

Using Multiple Buildpacks in Deis

To use multiple buildpacks with your Application Deployment on Deis Workflow, is pretty straight forward.

»
Author's profile picture David Chua on guide

Fixing OmniAuth Redirecting to a URI with Port

Came across this problem the other day when deploying a Rails application that is sitting behind Kubernetes and Deis

»
Author's profile picture David Chua on guide

Supercharge your Nginx with Openresty and Lua

Turn your Nginx into an API Gateway. Modify requests and responses from Nginx itself using Openresty and Lua.

»
Author's profile picture David Chua on guide

Monitor a Directory for File Changes with inotifywait

Sometimes there may be a need to monitor and be alerted when any new files have been added in a particular directory.

»
Author's profile picture David Chua on guides

Using Kubectl proxy to access your Kubernetes services

Sometimes it might be quite difficult to access your kubernetes services if your infrastructure isn’t able to properly support both LoadBalancer and NodePort service types.

»
Author's profile picture David Chua on guides

Running Deis on Digitalocean - A Nginx/Haproxy LB Setup

Digitalocean users generally tend to get the short end of the stick when it comes to convenience. When building your Deis cluster on Digitalocean, you’ll realize you don’t get the benefit of being able to provision cloud-provider specific load balancers like (AWS ELB, GCE Load Balancers) to route inbound traffic into the kubernetes cluster and into your deis-router.

»
Author's profile picture David Chua on guides

How to get Kubernetes and Deis onto Azure

With Kubernetes Anywhere, setting up a Kubernetes cluster on Microsoft’s Azure isn’t as painful as it used to be.

»
Author's profile picture David Chua on guide

Removing DNS caching on NGINX proxy pass

If you’re passing hostnames into your nginx’s proxy_pass and made a change to the hostname’s ip address, you might experience times when nginx is still referencing the old ip address despite your DNS TTL having already been expired.

»
Author's profile picture David Chua on guides

Secure your Server - Send Slack Alert on SSH Login

In my line of work, besides architecting and building infrastructure, part of the scope includes building safeguards to ensure that systems that were setup are properly secured.

»
Author's profile picture David Chua on guides

Building a Kubernetes PetSet Cluster for your MongoDB ReplicaSet

Some observations when working with Kubernetes 1.3 introduced PetSets to build MongoDB.

»
Author's profile picture David Chua on guides

How to change instance size of an existing Kubernetes Cluster

Just recently, I was trying to reverse my poor decision of starting my Kubernetes Cluster on AWS with a very simple t2.micro nodes.

»
Author's profile picture David Chua on guides

How to set current_user in Tornado asynchronously

Something that I’ve missed when working on setting the current_user upon @tornado.web.authenticated.

»
Author's profile picture David Chua on devnotes