Category : kubernetes

This my first project with k8s and I m trying to deploy my app with 2 images from docker hub database and web , i Used Kompose which is a tool to translate my docker-compose to k8s components, that generated: db-deployment.yaml,db-claim0-persistentvolumeclaim.yaml,db-service.yaml,web-deployment.yaml, web-service.yaml and network-networkpolicy.yaml. well almost work fine just when i check my localhost i ..

Read more

I am trying to create autoscaling using Kubernetes, I have a Laravel system, I am deploying this system to Kubernetes using these YAML files configMap.yam kind: ConfigMap apiVersion: v1 metadata: name: qsinav-nginx-config data: default.conf: | server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /var/www/html/Test/qSinav-starter/public; location / { try_files $uri $uri/ /index.php?$query_string; } ..

Read more

I’m new to kubernetes, Currently i’m triyng to deploy laravel app on kuberetes. I have setup 1 deployment yaml containing 2 containers (nginx and php-fpm) and a shared volume. Here’s the full yaml: apiVersion: v1 kind: Service metadata: name: operation-service labels: app: operation-service spec: type: NodePort selector: app: operation ports: – port: 80 targetPort: 80 ..

Read more

We are developing a laravel application using docker and kubernetes. While I am handling docker part and other guy handles kubernetes part. Site was made live but other developer asked me to provide a code to use laravel-echo-server’s host url as ws.example.com instead of example.com:6001. Since port 6001 is used by echo server, I had ..

Read more

I add this on my bootstrap/app.php. $app->configureMonologUsing(function(MonologLogger $monolog) { $formatter = new MonologFormatterLineFormatter(null,null,false,true); $stdOut = new MonologHandlerStreamHandler(‘php://stdout’,MonologLogger::DEBUG); $stdOut->setFormatter($formatter); $monolog->pushHandler($stdOut); $file = storage_path(‘logs/mono-‘. Date(‘Y-m-d’, time()) . ‘.log’); $monolog->pushHandler(new MonologHandlerStreamHandler($file)); }); PhpVersion:5.6 LaravelVersion:5.2 Env:3.10.0-1062.18.1.el7.x86_64 Env is a docker pod. But it cannot not print log on stdout. No log found out. Is there someone know how to ..

Read more

I’m polishing Laravel Kubernetes deployment (I’m not the PHP dev) and have some concerns and questions I’m trying to clear out. Hopefully, someone already went through this process and is able to provide guidance so much thanks in advance! I have a single-pod Kubernetes deployment to manage NGINX + PHP-FPM containers. These two containers in ..

Read more