<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DevOps on Poeticoding</title><link>https://www.poeticoding.com/category/devops/</link><description>Recent content in DevOps on Poeticoding</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 13 Jan 2020 18:40:56 +0000</lastBuildDate><atom:link href="https://www.poeticoding.com/category/devops/index.xml" rel="self" type="application/rss+xml"/><item><title>ExAws with DigitalOcean Spaces</title><link>https://www.poeticoding.com/exaws-with-digitalocean-spaces/</link><pubDate>Wed, 04 Dec 2019 14:39:32 +0000</pubDate><guid>https://www.poeticoding.com/exaws-with-digitalocean-spaces/</guid><description>&lt;p>When you are hosting an Elixir/Phoenix app in DigitalOcean you may want to use &lt;a href="https://www.digitalocean.com/products/spaces/" target="_blank" rel="noopener">Spaces&lt;/a>, the DigitalOcean&amp;rsquo;s cloud storage alternative to AWS S3.&lt;/p>
&lt;p>When you are hosting an Elixir/Phoenix app in DigitalOcean you may want to use &lt;a href="https://www.digitalocean.com/products/spaces/" target="_blank" rel="noopener">Spaces&lt;/a>, the DigitalOcean&amp;rsquo;s cloud storage alternative to AWS S3 &lt;em>(If you want to use AWS S3 instead, you can read &lt;a href="https://www.poeticoding.com/aws-s3-in-elixir-with-exaws/">AWS S3 in Elixir with ExAws&lt;/a>&lt;/em>).&lt;/p></description></item><item><title>AWS S3 in Elixir with ExAws</title><link>https://www.poeticoding.com/aws-s3-in-elixir-with-exaws/</link><pubDate>Thu, 28 Nov 2019 18:06:52 +0000</pubDate><guid>https://www.poeticoding.com/aws-s3-in-elixir-with-exaws/</guid><description>&lt;div class="video">&lt;iframe src="https://www.youtube-nocookie.com/embed/gSGu5wXeS1c" title="YouTube video" loading="lazy" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin">&lt;/iframe>&lt;/div>

&lt;p>In this article we see how to store and retrieve files on &lt;a href="https://aws.amazon.com/s3/" target="_blank" rel="noopener">AWS S3&lt;/a> using Elixir and with the help of &lt;a href="https://github.com/ex-aws/ex_aws" target="_blank" rel="noopener">ExAws&lt;/a>. &lt;em>(If you want to use ExAws with DigitalOcean Spaces instead, you can&lt;/em> &lt;em>read &lt;a href="https://www.poeticoding.com/exaws-with-digitalocean-spaces/">ExAws with DigitalOcean Spaces&lt;/a>)&lt;/em>&lt;/p></description></item><item><title>How to run a Docker Container</title><link>https://www.poeticoding.com/how-to-run-a-docker-container/</link><pubDate>Thu, 21 Feb 2019 12:38:58 +0000</pubDate><guid>https://www.poeticoding.com/how-to-run-a-docker-container/</guid><description>&lt;div class="video">&lt;iframe src="https://www.youtube-nocookie.com/embed/OZgwyNLwEdo" title="YouTube video" loading="lazy" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin">&lt;/iframe>&lt;/div>

&lt;p>In this episode, after a quick intro to containers and images, we see how easy it is to run and connect to a containerised Nginx server. We then see how to stop, re-start and remove the container.&lt;/p></description></item><item><title>Connecting Elixir Nodes with libcluster, locally and on Kubernetes</title><link>https://www.poeticoding.com/connecting-elixir-nodes-with-libcluster-locally-and-on-kubernetes/</link><pubDate>Wed, 06 Feb 2019 12:57:02 +0000</pubDate><guid>https://www.poeticoding.com/connecting-elixir-nodes-with-libcluster-locally-and-on-kubernetes/</guid><description>&lt;div class="video">&lt;iframe src="https://www.youtube-nocookie.com/embed/FARtObrKr5I" title="YouTube video" loading="lazy" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen referrerpolicy="strict-origin-when-cross-origin">&lt;/iframe>&lt;/div>

&lt;p>In the last few articles we saw how to make our Phoenix chat app distributed; at the beginning with Redis, and after with distributed Elixir connecting the nodes together.&lt;/p>
&lt;p>We had just one problem; we had to manually connect to the nodes in the IEX console. This is an issue in production. In this video we will see how to automatically cluster the Phoenix chat nodes using the libcluster library locally, and on a Kubernetes cluster with a dynamic number of nodes.&lt;/p></description></item><item><title>Create a High-Availability Kubernetes Cluster on AWS with Kops</title><link>https://www.poeticoding.com/create-a-high-availability-kubernetes-cluster-on-aws-with-kops/</link><pubDate>Wed, 16 Jan 2019 14:58:56 +0000</pubDate><guid>https://www.poeticoding.com/create-a-high-availability-kubernetes-cluster-on-aws-with-kops/</guid><description>&lt;p>This article has a bit more of DevOps flavour than the previous articles, focused more on Elixir. In this article I show how to easily run a multi-zone Kubernetes cluster on AWS, where we&amp;rsquo;ll deploy a Phoenix Chat application.&lt;/p>
&lt;p>There are many ways to deploy a Kubernetes cluster on AWS (Amazon Web Services). At the moment, AWS offers &lt;a href="https://aws.amazon.com/eks/" target="_blank" rel="noopener">EKS, Elastic Kubernetes Service&lt;/a>, which helps us deploy and manage our Kubernetes clusters. It costs $0.20/hr, which is $144/month: that&amp;rsquo;s not cheap actually, especially if we want to run a small cluster. And it’s not just about the cost: I find EKS still too young, preferring &lt;strong>kops&lt;/strong> over it.&lt;/p></description></item><item><title>Running Elixir in Docker Containers</title><link>https://www.poeticoding.com/running-elixir-in-docker-containers/</link><pubDate>Wed, 12 Dec 2018 14:15:00 +0000</pubDate><guid>https://www.poeticoding.com/running-elixir-in-docker-containers/</guid><description>&lt;p>One of the wonderful things about &lt;a href="https://www.docker.com/resources/what-container" target="_blank" rel="noopener">Docker&lt;/a> Containers is that you can easily freeze your environment and application in a Docker Image, and deploy it in production without worrying about installing dependencies on your servers. It just works.
This is also great for debugging. If something doesn&amp;rsquo;t work in production, you can run exactly the same image locally in matter of seconds.
The features and advantages of docker obviously don&amp;rsquo;t stop here.
In this article we see how to use Docker to run our development Elixir environment and to run multiple Elixir Nodes over a Docker bridge network.&lt;/p></description></item></channel></rss>