Author Archives: lysender

Creating Google Storage Buckets with Config Connector

We are trying to build an API to store files for user profile images. To do that in our current infrastructure, we need to use Google Cloud Storage. Since we are already using Kubernetes, we can automate the process by … Continue reading

Posted in jenkis-x, kubernetes | Tagged , | Leave a comment

Kubernetes – Add vault secrets into environment variables

We already have a full kubernetes and Jenkins-X stack for our application’s CI/CD. For a fully setup application, I’m already able to tweak the secrets settings and how the secrets are populated from vault to environment variable. However, for an … Continue reading

Posted in jenkis-x, kubernetes | Tagged , | Leave a comment

React TypeScript – Props not recognized when component is wrapped in some high order components

It is so annoying when you developed your component nicely but when you need to wrap it with some high order components from some cool plugins, props suddenly doesn’t get recognized by the TypeScript compiler. Without knowing the proper way … Continue reading

Posted in React, TypeScript | Tagged | Leave a comment

Viewing Container Logs in Kubernetes

I’m currently working as a developer but also manages the infrastructure of our project which is hosted in Google Cloud Platform. GCP has web console for viewing logs for each of our services and using the web is a bit … Continue reading

Posted in kubernetes | Tagged | Leave a comment

Jenkins-X – Customize release version

We have an existing infrastructure in GCP using Kubernetes and Jenkis-X. When one of the owner decided to leave the business due to personal reasons, we ended up moving all the repositories to the other owner. This caused the releases … Continue reading

Posted in jenkis-x | Leave a comment

Mongo Read hangs up indefinitely when readPreference is secondary

We have a backend API app in Google Cloud using all the Kubernetes goodness. For some reason, we don’t use a Google Cloud backed MongoDB service. Instead, we spin our own MongoDB replicaSet using one of the stable helm charts … Continue reading

Posted in kubernetes, MongoDB | Leave a comment

It’s been a very long time

What’s up? Its been a very long time since I’ve posted something in my blog. I’m been very busy with my current job at a startup and it has gotten a good kick start. I’m also busy with trading equities … Continue reading

Posted in Personal Blog, Trading, Web Development | Leave a comment

Jest tests failing on CircleCI – ENOMEM: not enough memory

Out NestJS tests are intermittently failing with “not enough memory” error being thrown. There is nothing really special about the tests except for the fact that it is growing as the project grows. It turns out a simple CLI parameter … Continue reading

Posted in NodeJS | Tagged | Leave a comment

TIL – Jest expect to throw error in an async call

I just wanted to test that a certain async call should throw an error and I tried it on Jest. I’m already familiar with RSpec which has similar syntax. Below is what I did. The exec method is an async … Continue reading

Posted in JavaScript | Tagged | 1 Comment

MongoDB ReplicaSet on Docker Environment

I was playing around with MongoDB ReplicaSet yesterday in a Docker environment. The purpose is to test the integration with a backend service that connects to MongoDB. It was a very frustrating process especially when done in a local environment … Continue reading

Posted in Docker, MongoDB | Tagged , | 4 Comments