Tag Archives: Kubernetes

Linux: PHP-FPM, Docker, STDOUT and STDERR – no an application’s error logs
0 (0)

24 February 2020

We have a Docker image with NGINX, PHP-FPM, and Supervisor. In the same image, we have our PHP application included, which outputs its errors to the /dev/stderr as per its php.ini file: … [global] error_log=/dev/stderr … The problem is, that if run kubectl logs –  there will be no error output from the application. So,… Read More: Linux: PHP-FPM, Docker, STDOUT and STDERR – no an application’s… »

Loading

PHP: PHP-FPM ignores environment variables – solutions
0 (0)

19 February 2020

We have a PHP-based application running in Kubernetes and uses settings from a /app/.env file plus environment variables. The problem is that application running in a Docker container can’t see an $TEST_VAR variable although it’s present in the Deployment: … containers: – name: application-dev-web image: bttrm-application:119 … – name: TEST_VAR valueFrom: secretKeyRef: name: bttrm-app-secret key:… Read More: PHP: PHP-FPM ignores environment variables – solutions0 (0) »

Loading

Kubernetes: running metrics-server in AWS EKS for a Kubernetes Pod AutoScaler
0 (0)

15 February 2020

Assuming, we already have an AWS EKS cluster with worker nodes. In this post – we will connect to a newly created cluster, will create a test deployment with an HPA – Kubernetes Horizontal Pod AutoScaler and will try to get information about resources usage using kubectl top. Kubernetes cluster Create a test cluster using… Read More: Kubernetes: running metrics-server in AWS EKS for a Kubernetes Pod… »

Loading

Kubernetes: ConfigMaps and Secrets on a Gorush server example
0 (0)

14 February 2020

We have a Gorush server from the Kubernetes: running a push-server with Gorush behind an AWS LoadBalancer post, and I’d like to ad an ability to configure it via a Github repository and run it with a different set of settings – for Staging and Production environments. Let’s use Kubernetes ConfigMap to store a config-file… Read More: Kubernetes: ConfigMaps and Secrets on a Gorush server example0 (0) »

Loading

Kubernetes: ConfigMap and Secrets – data auto-reload in pods
0 (0)

13 February 2020

W have a ConfigMap for our Gorush service (see the Kubernetes: running a push-server with Gorush behind an AWS LoadBalancer post). The issue is that if change a value in this ConfigMap or Secrets -it will not be applied to already running pods. There are various solitons like mount data as volumes and re-attach those… Read More: Kubernetes: ConfigMap and Secrets – data auto-reload in pods0 (0) »

Loading

Kubernetes: running a push-server with Gorush behind an AWS LoadBalancer
0 (0)

6 February 2020

Gorush is a Go-written application which we are planning to use to send push notifications to our mobile clients. The project’s home – https://github.com/appleboy/gorush The service will be running in our Kubernetes cluster in a dedicated namespace and must be accessible within the cluster’s VPC only, so we will use an Internal ALB from AWS.… Read More: Kubernetes: running a push-server with Gorush behind an AWS LoadBalancer0… »

Loading

Kubernetes: part 4 – AWS EKS authentification, aws-iam-authenticator and AWS IAM
0 (0)

3 September 2019

Let’s proceed with our AWS Elastic Kubernetes Service, EKS. Previous parts: Kubernetes: part 1 – architecture and main components overview Kubernetes: part 2 – a cluster set up on AWS with AWS cloud-provider and AWS LoadBalancer Kubernetes: part 3 – AWS EKS overview and manual EKS cluster set up. In the previous – Kubernetes: part… Read More: Kubernetes: part 4 – AWS EKS authentification, aws-iam-authenticator and AWS… »

Loading

Kubernetes: part 3 – AWS EKS overview and manual EKS cluster set up
0 (0)

15 August 2019

Let’s proceed with our Kubernetes journey. Previous parts: Kubernetes: part 1 – architecture and main components overview Kubernetes: part 2 – a cluster set up on AWS with AWS cloud-provider and AWS LoadBalancer In this part we will start working with AWS Elastic Kuberneters Service (EKS) – its short overview, then will create Kubernetes Control… Read More: Kubernetes: part 3 – AWS EKS overview and manual EKS… »

Loading

Kubernetes: part 2 – a cluster set up on AWS with AWS cloud-provider and AWS LoadBalancer
0 (0)

10 August 2019

In the first part – Kubernetes: part 1 – architecture and main components overview – we did a quick glance about Kubernetes. Also, check the third part – Kubernetes: part 3 – AWS EKS overview and manual EKS cluster set up. The next thing I’d like to play with is to manually create a cluster… Read More: Kubernetes: part 2 – a cluster set up on AWS… »

Loading

Kubernetes: part 1 – architecture and main components overview
0 (0)

25 July 2019

On my current project for our mobile applications, we have an API-backend on the Yii PHP-framework, which is working now on an ordinary LEMP stack – Linux/NGINX/PHP-FPM/MySQL (AWS EC2 + MariaDB RDS). Eventually, it’s time to break this monolith into microservices which will be orchestrated by the Kubernetes and will be running on the AWS… Read More: Kubernetes: part 1 – architecture and main components overview0 (0) »

Loading