deis on davidchua https://dchua.com/tags/deis/ Recent content in deis on davidchua Hugo -- gohugo.io en-us Sun, 22 Jan 2017 00:00:00 +0000 Using Multiple Buildpacks in Deis https://dchua.com/posts/2017-01-22-using-multiple-buildpacks-in-deis/ Sun, 22 Jan 2017 00:00:00 +0000 https://dchua.com/posts/2017-01-22-using-multiple-buildpacks-in-deis/ To use multiple buildpacks with your Application Deployment on Deis Workflow, is pretty straight forward. As heroku-buildpack-multi is already built into deis' slugbuilder, all you need to do is to create a .buildpacks file in your repository, insert your required buildpacks, commit and push away. An example .buildpack could look like: # .buildpacks https://github.com/cloudfoundry/heroku-buildpack-ruby.git https://github.com/gaumire/heroku-buildpack-mysql Enjoy. References Github - multi-buildpacks Fixing OmniAuth Redirecting to a URI with Port https://dchua.com/posts/2017-01-16-fixing-omniauth-redirecting-to-a-uri-with-port/ Mon, 16 Jan 2017 00:00:00 +0000 https://dchua.com/posts/2017-01-16-fixing-omniauth-redirecting-to-a-uri-with-port/ Came across this problem the other day when deploying a Rails application that is sitting behind Kubernetes and Deis With my Rails application using OmniAuth and its Facebook strategy, after a user logins, hits Facebook and returns a redirection, the URL returned has its port 80 embedded in the return URI like: https://domain.com:80. In most cases, this wouldn’t be a problem but Facebook would return an error as the return URI (with the port 80) is not whitelisted hence creating a bad flow for your user. Running Deis on Digitalocean - A Nginx/Haproxy LB Setup https://dchua.com/posts/2016-10-25-running-deis-on-digitalocean/ Tue, 25 Oct 2016 00:00:00 +0000 https://dchua.com/posts/2016-10-25-running-deis-on-digitalocean/ DigitalOcean users generally tend to get the short end of the stick when it comes to convenience. When building your Deis cluster on DigitalOcean, you’ll realize you don’t get the benefit of being able to provision cloud-provider specific load balancers like (AWS ELB, GCE Load Balancers) to route inbound traffic into the kubernetes cluster and into your deis-router. In this article, I’ll quickly go through setting up a (nginx + haproxy) load balancer that sits infront of deis. How to get Kubernetes and Deis onto Azure https://dchua.com/posts/2016-10-17-how-to-get-kubernetes-and-deis-onto-azure/ Mon, 17 Oct 2016 00:00:00 +0000 https://dchua.com/posts/2016-10-17-how-to-get-kubernetes-and-deis-onto-azure/ With Kubernetes Anywhere, setting up a Kubernetes cluster on Microsoft’s Azure isn’t as painful as it used to be. Prerequisite Docker is setup gcc is setup kubectl is setup Azure Subscription ID is prepared Kubernetes Prepare your environment Deploy $ git clone https://github.com/kubernetes/kubernetes-anywhere $ cd kubernetes-anywhere Starting the development process $ make docker-dev $ make deploy You’ll be prompted to fill up the required fields. Please skip the following fields by leaving them blank.