Log::channel('syslog'), Kubernetes SDKs like spatie/laravel-kubernetes) may suffice for simpler use cases.kubernetes-client/php), which Laravel does not natively include. Integration would require:
symfony/console, kubernetes-client/php, and dayploy/infra-test-bundle.Artisan could invoke Symfony commands via a custom facade or Docker sidecar (e.g., a separate Symfony container in a multi-container setup).| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Symfony-Laravel Gap | High | Use a wrapper package or Docker-based isolation. |
| K8s Dependency | Medium | Document clearly for cloud-native deployments. |
| Bundle Maturity | High | Low stars/activity; vet for breaking changes. |
| Performance Overhead | Low | Minimal if used sparingly (e.g., CI-only). |
Log::toFile(), Kubernetes SDKs) achieve the same goal with less friction?spatie/laravel-kubernetes or similar been considered?docker-compose or Kubernetes initContainer).Option 1: Docker-Based Isolation (Recommended)
docker-compose.yml):
services:
symfony:
image: symfony/cli
volumes:
- .:/app
command: ["console", "infra"]
Artisan or CI scripts.Option 2: Wrapper Package
laravel-infra-test-bundle) that:
symfony/console and dayploy/infra-test-bundle.php artisan infra:logs) that proxies to Symfony.// app/Console/Commands/InfraLogs.php
use Symfony\Component\Console\Application;
class InfraLogs extends Command {
protected function handle() {
$symfonyApp = new Application();
$symfonyApp->run(new \Dayploy\InfraTestBundle\Command\GenerateLogsCommand());
}
}
Option 3: Kubernetes SDK Alternative
spatie/laravel-kubernetes) to avoid Symfony dependency.dayploy/infra-test-bundle’s composer.json).symfony/process).symfony/console).| Scenario | Impact | Mitigation |
|---|---|---|
| Bundle breaks in Symfony update | Logging fails in CI/CD | Pin Symfony version in composer.json. |
| Kubernetes API changes | Command fails silently | Monitor pod logs; use retries. |
| Laravel-Symfony integration error | Artisan command crashes | Fallback to native Log:: methods. |
| Permission denied in pod | Logs not generated | Audit Kubernetes RBAC roles. |
/proc/1/fd/1).How can I help you explore Laravel packages today?