Kubernetes

Attempt to replace hedge’s member tracking with hashicorp/memberlist

2023-04-28

I recently came across the hashicorp/memberlist library while browsing GitHub and I thought it would be a good replacement for hedge’s internal member tracking logic. It seems to be widely used (thus more battle-tested) as well. I was quite excited as I always thought that hedge’s equivalent logic is too barebones and untested outside of our use cases. It works just fine for its current intended purpose but I’ve been hesitating to build on top of it until I can really say that it’s stable enough.

Distributed-Computing · Hedge · K8s · Kubernetes · Memberlist · Tech

2 minutes

An automation-friendly, highly-scalable, and scriptable testing tool

2020-10-31

I uploaded an automation-friendly, highly-scalable, and scriptable API/generic testing tool built to run on Kubernetes. It’s called oops and you can find the code here. Maybe it will be useful to anybody out there.

Api · K8s · Kubernetes · Testing

1 minute

Update to kubepfm, a kubectl port-forward wrapper for multiple pods

2020-01-27

Updated 2020/01/27: Support for forwarding to deployments and services Original post: I recently uploaded a tool to GitHub that wraps kubectl port-forward command and supports port-forwarding to multiple pods. It’s called kubepfm. I use this tool heavily in my development work. You can check out the code here. You might find this useful.

K8s · Kubectl · Kubepfm · Kubernetes · Port-Forward

1 minute

Adding CORS support to nginx proxy in Kubernetes

2019-05-26

At work, for a couple of months now, we’ve been using Ambassador as our main API gateway to our k8s services. We also have our own authorization service that uses Ambassador’s AuthService mechanism. Recently, we’ve had services that needed CORS support and although Ambassador has features that support the enabling of CORS, we had to update our authorization service to handle CORS-related requests. Instead of doing this, we tried adding the CORS support at the proxy level (nginx).

Cors · Kubernetes · Nginx · Proxy

2 minutes

Update to kubepfm, a kubectl port-forward wrapper for multiple pods

2019-02-20

Updated 2019/02/20: Support for namespaces https://github.com/flowerinthenight/kubepfm/issues/1 Improved handling of input patterns Original post: I recently uploaded a tool to GitHub that wraps kubectl port-forward command and supports port-forwarding to multiple pods. It’s called kubepfm. I use this tool heavily in my development work. You can check out the code here. You might find this useful.

K8s · Kubectl · Kubepfm · Kubernetes · Port-Forward

1 minute

Using nginx basic authentication in Kubernetes

2019-01-31

This post is somewhat related to a previous post about accessing k8s services using nginx reverse proxy. Let’s try to add a simple basic authentication to these services at the proxy level. Now, this may come in handy in non-production environments but at the very least, make sure that you are doing this over HTTPS as basic authentication credentials are not encrypted. We will be using the htpasswd tool to generate our passwords.

Basic-Auth · Kubernetes · Nginx

2 minutes

Mobingi’s Kubernetes clusters repo

2018-12-27

I posted an article for @mobingi about its Kubernetes clusters repo. Please check it out. Thanks.

Go · K8s · Kubernetes · Mobingi · Repo

1 minute

kubepfm, a kubectl port-forward wrapper for multiple pods

2018-07-24

I recently uploaded a tool to GitHub that wraps kubectl port-forward command and supports port-forwarding to multiple pods. It’s called kubepfm. I use this tool heavily in my development work. You can check out the code here. You might find this useful.

K8s · Kubectl · Kubepfm · Kubernetes · Port-Forward

1 minute

Accessing services in Kubernetes

2018-03-31

At Mobingi, when we are developing services that run on Kubernetes, we generally use Minikube or Kubernetes in Docker for Mac. We also have a cluster that runs on GKE that we use for development. In this post, I will share how we access some of the services that are running on our development cluster. Using kubectl port-forward Using kubectl port-forward is probably the cheapest and the most straightforward. For example, if I want to access a cluster service svc1 through my localhost, I use kubectl port-forward like this:

Ingress · Kubectl · Kubernetes · Nginx · Port-Forward

4 minutes

Creating a Kubernetes TLS secret using certificates from DigiCert

2018-02-20

It took me a while to make this work. I hope this will help someone out there who also is struggling with the same problem. We use DigiCert as our SSL certificate provider. The package I received contained three files: a keyfile, filename.key a certificate file, filename.crt an intermediate certificate file, DigiCertCA.crt I had to combine the two certificate files into a single file. I didn’t really check the order but I appended the intermediate certificate to my certificate file.

DigiCert · Kubernetes · TLS

1 minute

Running Kubernetes on AWS using kops

2018-01-24

Overview This post will walk through the steps on how we provisioned our production Kubernetes cluster @mobingi. Some of the bits here are already automated in our case but I will try to include as much details as I can. Our goals would be the following: Provision a Kubernetes cluster on AWS using kops. The cluster will have two autoscaling groups: one for on-demand, one for spot instances. It’s going to be a gossip-based cluster.

Aws · Devops · Kops · Kubernetes

5 minutes