hauks96

hauks96

Kubernetes deployments of Phoenix apps

Hello everyone,

I created a deployment tutorial for Phoenix applications with Kubernetes (microk8s) a few months back with the goal of simplifying the lifecycle. It was meant to be implemented at the company I work for but in the startup world we live in, temporary implementations tend to stick, and the approach was never implemented.

It took quite some effort, and instead of letting it rot away in a dead repository I decided to share the implementation here as I found the topic to be quite under-documented on the internet. I have no mentionable experience with elixir or phoenix itself but I think the approach could be useful to others.

The implementation was integrated in a gitlab repository that is now publlic Phoenix Kubernetes integrations. Some of the documentation might be lacking since we ultimately canceled the integration, however the whole shebang is implemented around a default template phoenix app, and filling in the gaps should not be too hard.

Most Liked

hauks96

hauks96

Had some time recently to set up something much simpler and easier to follow than previously.

We’ve been running a similar setup in production over the past year now and It’s been an absolute pleasure to maintain. Give this project a look if you need some ideas on moving your deployments to kubernetes, you probably wont regret it!

pdgonzalez872

pdgonzalez872

@hauks96 the more content we have on this stuff the better! Please do! Thanks!

hauks96

hauks96

I could also set up a simpler version of the kubernetes deployment if people are interested and just want to see how the k8s work with the phoenix app. This one is made for deploying to multiple environments by the use of environment variables and bash scripts.

Where Next?

Popular in Guides/Tuts Top

wfgilman
I’m writing up this quick “How to” because what I thought was going to be an easy implementation of a Plug to validate a webhook request ...
New
stryrckt
I’m excited about the new LiveComponents feature in LiveView, but I haven’t seen much written on it, so I decided to write a couple of ar...
New
f0rest8
Hi everyone, Just wanted to say that the new Self-referencing many to many guide is now up on the official Hex docs (at least I just not...
New
jswny
Hello everyone, I recently redesigned my entire deployment process for Phoenix apps based on Docker. I really like the strategy that I ca...
New
zookzook
If you want to use the MongoDB in your next Killer-App-Project, but you did not dare ask because otherwise many would advise you to use P...
New
hauleth
Some time ago someone suggested me to write article about how I have configured my Vim to work with Elixir, now there it is: https://med...
New
kokolegorille
Hello dear alchemists, There was this question some days ago here about the deployment to a VPS. As I was in the process of deploying t...
New
Eiji
Hey, today I give amnesia library a try and found a few problems. I would like describe how to setup it properly and solve problems which...
New
zazaian
I recently generated the boilerplate for a new mix app using the Phoenix 1.3.1 phx.new generator and realized that the structure of the w...
New
marcin
This post is intended to be a guide for others, I was running a remote debugger for the first time and appreciate feedback on how I could...
New

Other popular topics Top

skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52673 488
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 127089 1222
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54120 245
New

We're in Beta

About us Mission Statement