Spring Boot Application in OpenShift / OKD
Now that we have packaged an existing Spring Boot application into a Docker Image, we can deploy it to a Kubernet cluster as well.In this example the additional features of OpenShift/OKD are used to enable a continuous deployment of the application.
Dockerize Spring Boot Applications
It's quite easy to run a Spring Boot Application inside a Docker Container. Here, however, some pitfalls should be considered so that you can draw the maximum benefits from this.
Anonymize logs produced by docker
The handling with the GDPR-requirements for the anonymization of protocol files that are produced by Docker seems to be a not trivial task. Help is available here in the form of syslog-ng which offers various configuration options as a replacement for syslog / rsyslogd.
Kubernetes Logging with fluentd and logz.io
By using logz.io, it is relatively easy to outsource Kubernetes logfiles that do not contain sensitive data to an external service and analyze them there with Kibana.
Setup a Kubernetes Cluster with Ansible
Although all large Cloud provider nowadays offer Managed Kubernetes Clusters, I prefer to have access to a local cluster especially during development. In this post, we will setup a Kubernetes Cluster using Ansible and Kubeadm. The cluster will include a single master node and two (or more) worker nodes. Most of the work done here is based on a tutorial by bsder2. Requirements I will use three Ubuntu 18.04 LTS (Bionic Beaver) servers, each with 4GB RAM and 2 CPUs, you should also be fine with 1GB RAM.