Mike van Riel

  • Quick-tip: using kubectl when you manage multiple Kubernetes clusters

    Quick-tip: using kubectl when you manage multiple Kubernetes clusters

    Kubectl has this great feature of ‘contexts’ which allow you to switch between clusters or even namespaces within a cluster. But how do you go about adding contexts to your version of kubectl? I have used the KUBECONFIG environment variable to specify the location of a custom kubeconfig.yaml file; what I recently discovered was that…

  • Kubernetes: Unexpected 502 errors when rolling out a new ReplicaSet

    Kubernetes: Unexpected 502 errors when rolling out a new ReplicaSet

    The other day I was working on migrating a platform at a client from Virtual Machine based deployments using Ansible to Container-based deployments using Kubernetes. The whole migration went smooth until we started noticing Bad Gateway (HTTP status 502) errors during load testing. At first we thought that the readiness probes were misconfigured and that…

  • phpBenelux 2019 – Friday

    phpBenelux 2019 – Friday

    Last week was the 10th edition of phpBenelux; and for me, it was the 8th time I had been there. From the first one to the 10th one is quite awesome to be a part of and in those 10 years, the spirit of the event didn’t change much. If anything; it only improved. With…

  • The WeCamp Experience

    The WeCamp Experience

    Disclaimer: I have been involved with the organisation of WeCamp for the past 6 years. The WeCamp Experience. In these past few years this has been my best description for what WeCamp is. It is incredibly hard for me to capture the essence of the Experience but I believe it is an incredible opportunity to…

  • Battling Procrastination

    Battling Procrastination

    Do you share the same nemesis as I do? The Dreaded Dr. Procrastination? I guess you do. Otherwise, you wouldn’t be reading this post, would you? In the past year or two, I have been trying to understand where procrastination comes from. This, in an effort to combat the affliction. During that time I have…

  • Adding drop shadows to your Mapbox Maps

    Adding drop shadows to your Mapbox Maps

    One of the things that MapBox does not natively support is the concept of drop shadows or some sort of glow to your map elements. Luckily, with some trickery, we can fake that. The trick here is to draw your polygons / areas twice, the first time you draw them as a line with a…

  • Setting the Field of View (FOV) in Mapbox GL JS

    Setting the Field of View (FOV) in Mapbox GL JS

    At a client of mine, we are working with Mapbox to show a floor plan of the building. As the map needs to be as readable as possible we wanted to do an experiment by using an orthographic or axonometric projection. Unfortunately, the camera in the Mapbox GL JS library cannot be configured to show an orthographic…

  • When your template cannot be found in Symfony 4

    While I was playing with GraphQL in Symfony I wanted to use a pre-symfony 4 bundle to provide a GraphQL server. When I wanted to go to a page that used a twig template I got the following error: Unable to find template “GraphQLBundle:Feature:explorer.html.twig” (looked into: /var/www/templates, /var/www/templates, /var/www/vendor/symfony/twig-bridge/Resources/views/Form). Since I haven’t been working with…

  • How to fix DigitalOcean’s RancherOS disk size

    If you, like me, experienced when you start a RancherOS droplet that the disk size is only 8 gigabytes out of the expected 50 gigabytes, then the following two commands may help: sudo growpart /dev/vda 1sudo resize2fs /dev/vda1 Please note that the space between /dev/vda and the 1 in the first command is necessary. This…

  • Installing Symfony Flex and Prooph 7

    Because I love to experiment with new technologies I decided today to set up a new event-sourced project using Symfony Flex and Prooph 7. In this blog post, I am going to describe my experiences when installing these, which issues I encountered and how I resolved them. Keep in mind that the contents of this…