Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Kubernetes with Laravel
Search
Bobby Bouwmann
December 11, 2019
Programming
420
0
Share
Kubernetes with Laravel
Bobby Bouwmann
December 11, 2019
More Decks by Bobby Bouwmann
See All by Bobby Bouwmann
Routing Laravel
bobbybouwmann
1
400
Laravel Design Patterns 2.0
bobbybouwmann
2
4.1k
Introducing Laravel Dusk
bobbybouwmann
2
190
Other Decks in Programming
See All in Programming
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
210
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
3
770
感情を設計する
ichimichi
5
1.5k
Vibe NLP for Applied NLP
inesmontani
PRO
0
420
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
340
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
230
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.4k
PHPで TLSのプロトコルを実装してみるをもう一度しゃべりたい
higaki_program
0
200
L’IA au service des devs : Anatomie d'un assistant de Code Review
toham
0
250
의존성 주입과 모듈화
fornewid
0
140
Swift Concurrency Type System
inamiy
0
530
Featured
See All Featured
Done Done
chrislema
186
16k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
190
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
130
Darren the Foodie - Storyboard
khoart
PRO
3
3.3k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
440
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
260
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.8k
Transcript
Kubernetes with Laravel Kubernetes with Laravel
@bobbybouwmann Kubernetes with Laravel
Kubernetes with Laravel
Kubernetes with Laravel
Agenda • What is kubernetes • Laravel with Kubernetes •
Kubernetes vs Larvel Vapor Kubernetes with Laravel
What is kubernetes? • Orchestra*on pla0orm for containers • Is
compatable with Docker • Manages deployments and scaling Kubernetes with Laravel
Kubernetes with Laravel
kubectl get pods -o wide NAME READY STATUS AGE IP
NODE horizon-794474c567-5mxwm 1/1 Running 8d 172.31.17.141 server01.eu-central-1 app-57c65f4d5b-9jbjc 1/1 Running 8d 172.31.21.72 server01.eu-central-1 app-57c65f4d5b-hlz25 1/1 Running 8d 172.31.9.186 server02.eu-central-1 app-57c65f4d5b-tzbb8 1/1 Running 8d 172.31.26.106 server02.eu-central-1 Kubernetes with Laravel
NAME READY STATUS RESTARTS AGE app-594f6cfd8b-gl84s 1/1 Running 0 3d
app-594f6cfd8b-8623b 1/1 Running 0 3d Kubernetes with Laravel
kubectl apply -f docker/kube/prod.yml NAME READY STATUS RESTARTS AGE app-vb345b238p-4mnz7
0/1 Terminating 0 3d app-vb345b238p-8623b 1/1 Running 0 3d app-7764bd5f8d-k2k55 0/1 Init:0/1 0 7s Kubernetes with Laravel
NAME READY STATUS RESTARTS AGE app-594f6cfd8b-gl84s 1/1 Running 0 3d
app-7764bd5f8d-k2k55 0/1 Init:0/1 0 7s Kubernetes with Laravel
NAME READY STATUS RESTARTS AGE app-7764bd5f8d-k2k55 1/1 Running 0 27s
app-7764bd5f8d-39dd7 1/1 Running 0 3s Kubernetes with Laravel
NAME READY STATUS RESTARTS AGE app-7764bd5f8d-gl84s 1/1 Running 0 3d
app-59b6f55476-nx65z 0/1 CrashLoopBackOff 4 35s Kubernetes with Laravel
NAME READY STATUS RESTARTS AGE cron-594f6cfd8b-5j46r 0/1 ContainerCreating 0 1s
app-7764bd5f8d-gl84s 1/1 Running 0 2d app-7764bd5f8d-j234j 1/1 Running 0 2d Kubernetes with Laravel
NAME READY STATUS RESTARTS AGE cron-594f6cfd8b-5j46r 0/1 Completed 0 12s
app-7764bd5f8d-gl84s 1/1 Running 0 2d app-7764bd5f8d-j234j 1/1 Running 0 2d Kubernetes with Laravel
Laravel with Kubernetes Kubernetes with Laravel
Storage • Database • Storage • Logging • Excep3on Logging
• Sessions • Queues Kubernetes with Laravel
Database // .env DB_CONNECTION=mysql DB_HOST=prod.hbwehrkblh.eu-central-1.rds.amazonaws.com DB_PORT=3306 DB_DATABASE=app DB_USERNAME=app DB_PASSWORD=123KDjh1233DH*(gh2{34jk]h23\h4) Kubernetes
with Laravel
Storage // config/filesystems.php 'disks' => [ 's3' => [ 'driver'
=> 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_BUCKET'), 'url' => env('AWS_URL'), ], ], Kubernetes with Laravel
Logging // config/logging.php 'channnels' => [ 'papertrail' => [ 'driver'
=> 'monolog', 'level' => 'debug', 'handler' => SyslogUdpHandler::class, 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), 'port' => env('PAPERTRAIL_PORT'), ], ], ], Kubernetes with Laravel
// config/logging.php 'channels' => [ 'stderr' => [ 'driver' =>
'monolog', 'handler' => StreamHandler::class, 'formatter' => env('LOG_STDERR_FORMATTER'), 'with' => [ 'stream' => 'php://stderr', ], ], ], Kubernetes with Laravel
Excep&on logging // config/logging.php [ 'default' => env('LOG_CHANNEL', 'stack'), 'channels'
=> [ 'stack' => [ 'driver' => 'stack', 'channels' => ['daily', 'flare'], 'ignore_exceptions' => false, ], ], ] Kubernetes with Laravel
Kubernetes with Laravel
Excep&on logging // .env SENTRY_LARAVEL_DSN=https://
[email protected]
/8499832 Kubernetes with Laravel
Kubernetes with Laravel
Sessions // .env SESSION_DRIVER=database SESSION_LIFETIME=120 Kubernetes with Laravel
Queues QUEUE_CONNECTION=sync REDIS_HOST=redis REDIS_PASSWORD=null REDIS_PORT=6379 Kubernetes with Laravel
Queues QUEUE_CONNECTION=sync REDIS_HOST=redis REDIS_PASSWORD=null REDIS_PORT=6379 Kubernetes with Laravel
Kubernetes with Laravel
Golden rules • Persistent storage is always external • Container
monitoring • Keep containers small Kubernetes with Laravel
Kubernetes vs Laravel Vapor Kubernetes with Laravel
Kubernetes with Laravel
Kubernetes with Laravel
h"p:/ /bit.ly/laravel-giveaway Kubernetes with Laravel
Kubernetes with Laravel - Any ques*ons? - Kubernetes with Laravel