Categories
CICD Cloud Infrastructure

GitLab, App Service & CI/CD – Variant 1

[Updates] 2020-11-29 – reference terraform simple-appservice module 2020-11-29 – add small fix for GitLab CI script Since I spent way more time fighting with this I though I might write a proper recap and maybe help others to get started. I also set up a repository with example code which should (!) be a “pull-and-run” […]

Categories
Cloud Infrastructure

Azure App Service & Python, Part I

A.k.a. “you’ve got to be fucking kidding me”. Azure App Service sucks, as basically any part of Azure. What’s surprising this time is that terraform actually contributes to the sucking on this occasion – usually the Hashi folks do a very good job at reducing the annoyance. But maybe they’ve given up, I wouldn’t blame […]

Categories
Infrastructure

FritzBox, Unify Security Gateway, and router replacements

My respect for network changes went up two or three … hundred notches. What happened. At my mother’s place, there was a German FritzBox, which handles a VPN between my place and hers, phone lines, the doorbell, WiFi, DHCP, and maybe even more. Now we rent our parts of our house with AirBnB, and those […]

Categories
Cloud Infrastructure Snippets

Check MK container/k8s deployment

In the company everybody seems to love Check MK. Me? Not so much, but a better alternative costs time and effort, both resources we don’t really have right now. Yet there’s a positive thing about it – because there’s an official docker container. Since I already coded a helm chart for stateful single container softwares […]

Categories
CICD Development Docker Infrastructure Linux

Databases with dokku

This is part 2 of a couple of blog posts about dokku, a amazing little Heroku clone. In the previous post I showed how to set up Dokku on a DigitalOcean droplet, and deployed a little hello-world container with a single git push. The reason why I wanted dokku thoug was the need of a […]

Categories
CICD Development Docker Infrastructure

Build your own PaaS with Dokku

I was looking for some “play” deployment method for a couple of things I want to try out. Most of them require a database. And it should be cheap, cause I don’t have any load on them and don’t earn any money, so I don’t want to spend basically no money if possible. The usual […]

Categories
Infrastructure Snippets

Helm in a kops cluster with RBAC

I created a K8S cluster on AWS with kops. I ran helm init to install tiller in the cluster. I ran helm list  to see if it worked. I got this: Error: configmaps is forbidden: User “system:serviceaccount:kube-system:default” \ cannot list configmaps in the namespace “kube-system” That sucked. And google proved … reluctant. What I could […]

Categories
Docker Infrastructure Snippets

Elastic Beanstalk with Docker using Terraform

I just investigate AWS Elastic Beanstalk. And I want to use terraform for this. This is what I’ve done, and how I’ve got it running. I basically do this because the docs for this are either super-long (and are still missing critical points) or super-short (and are also missing critical points), at least what I’ve […]

Categories
Docker Infrastructure Snippets

Logs with docker and logstash

It would be nice to have all container logs from a docker cluster sent to … let’s say, an ELK stack. Right? Right. So we did: on each host in the cluster, we use the GELF log driver to send all logs to a logstash instance the logstash instance clones each request using type “ELK” […]

Categories
Infrastructure

Testing logstash configs with Docker

Now this is really not rocket science, but since I might do this more often, I don’t want to google every time. Prepare your directories ./tmp # THIS IS YOUR WORKING DIRECTORY |- patterns/ # optional | |- patternfile1 # optional | |- patternfile2 # optional |- logs.log |- logstash.conf Prepare your logstash config # […]