Tangible Bytes

A Web Developer’s Blog

Digital Ocean Kubernetes Load Balancer Configuration

At work I’m using Digital Ocean and their managed Kubernetes offering - DOKS

The cluster is almost entirely managed via Helm charts - and even system components that are installed via the Digital Ocean “1 Click” installers are Helm charts really.

Recently we ran into a problem where we needed real IP addresses available to our application - but these were being lost to the load balancer - and I needed to configure Proxy Protocol to re-enable them.

Read more ...

Helm Chart for Multi Domain Tls Cert

I’m running a service on Kubernetes that hosts multiple websites via different domains.

I had followed the default Helm Chart pattern and ended up with one TLS cert for all the sites.

This worked OK - except that I kept getting downtime when I needed to add a new domain.

So I refactored to have a different certificate for each site.

Read more ...

Kubernetes Multi Container Pod

So far on my Kubernetes journey I’ve only ever had one container per pod.

But I needed to run php-fpm fronted by nginx - with static assets served direct by nginx.

A lot of online examples skip this complexity by serving both php and static assets via Apache.

While it seemed complex at first - like a lot of Kubernetes it’s fairly straightforward once you have made the leap.

Read more ...