<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Brian Redmond on Medium]]></title>
        <description><![CDATA[Stories by Brian Redmond on Medium]]></description>
        <link>https://medium.com/@chzbrgr71?source=rss-9a0da89291cd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gtODDepTMUxf3q-18x_B3g.jpeg</url>
            <title>Stories by Brian Redmond on Medium</title>
            <link>https://medium.com/@chzbrgr71?source=rss-9a0da89291cd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:11:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chzbrgr71/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ridiculous Technology Predictions for 2018]]></title>
            <link>https://medium.com/@chzbrgr71/ridiculous-technology-predictions-for-2018-757d61228dc3?source=rss-9a0da89291cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/757d61228dc3</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[self-driving-cars]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Brian Redmond]]></dc:creator>
            <pubDate>Thu, 04 Jan 2018 22:54:00 GMT</pubDate>
            <atom:updated>2018-01-05T20:46:46.347Z</atom:updated>
            <content:encoded><![CDATA[<p>These are my predictions for the technology industry in the coming year. Sort of “<a href="https://www.theonion.com/">The Onion</a>” style satire, but there is some truths mixed in. These opinions are entirely my own and not based on any real facts. Enjoy!</p><ol><li><strong>Uber will merge with Lyft</strong>. The combined company will be called Ubyft which is pronounced “You biffed”</li><li><strong>Microsoft will purchase the self driving car division of Ubyft</strong>. It will be renamed the “Microsoft Zune Car 2018”. Zune Car will actually require 3 floppy disks in order to start each day. A few years later, the Zune Car will be renamed “Microsoft Windows Car” and will eventually be shelved. <em>(You have to be able to make fun of yourself sometimes).</em></li><li><strong>Microsoft will split the Windows division into a separate company.</strong> I’ll call this wishful thinking. As a stock holder, I actually think this makes some sense, though I’ve never done the analysis of the financials. But seriously, who really cares about operating systems anymore?</li><li><strong>Amazon will secede from the United States and become it’s own country.</strong> They will annex the state of Washington and the currency of the new country will be called “bezosbucks.” One bezosbuck is worth a million dollars, though you get 100 free with Amazon Prime.</li><li><strong>Amazon will buy Sears, JC Penny, K-Mart, Macy’s, and any other fledgling retail operation</strong>. Maybe not those particular ones, but I wouldn’t be surprised if they make another move into physical retail.</li><li><strong>IBM will change it’s name to “Watson.”</strong></li><li><strong>Watson computers will have taken over IBM.</strong> We will learn later that no humans were involved in the IBM name change. Watson had taken over marketing and made the name change.</li><li><strong>Oracle will buy Docker.</strong> Clearly they have the money and this fits their modus operandi. Really something needs to happen with Docker and they could likely build a strategy around the brand.</li><li><strong>Larry Ellison will buy another boat.</strong></li><li><strong>People will continue to argue that programming language X is better than all other programming languages</strong>. Never gets old.</li><li><strong>KubeCon 2018 North America will be held in Hawaii. </strong>All attendees from 2017 will get free flights and lodging at the Four Seasons. Seems fair to me (more wishful thinking).</li><li><strong>Most of these predictions will not come true.</strong> Including this one.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=757d61228dc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KubeCon 2017 Demo — Istio and Brigade CI/CD]]></title>
            <link>https://medium.com/@chzbrgr71/kubecon-2017-demo-istio-and-brigade-ci-cd-9db5ef15a942?source=rss-9a0da89291cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/9db5ef15a942</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Brian Redmond]]></dc:creator>
            <pubDate>Wed, 06 Dec 2017 19:35:54 GMT</pubDate>
            <atom:updated>2017-12-14T22:11:50.891Z</atom:updated>
            <content:encoded><![CDATA[<p>I was fortunate enough to be selected to present at the 2017 KubeCon + CloudNativeCon conference in Austin, Texas. My session goal was to show how to integrate a service mesh such as Istio with a CI/CD process on top of Kubernetes. This post is a write-up of the details of the demo I showed so others could try it and potentially expand upon it. The code is in Github and you should be able to recreate using the steps below.</p><p>Code: <a href="https://github.com/chzbrgr71/kube-con-2017">https://github.com/chzbrgr71/kube-con-2017</a></p><p><strong>Step 1: Install Kubernetes</strong></p><p>For my demo, I used Azure (I do work at Microsoft) and <a href="https://github.com/Azure/acs-engine">acs-engine</a>. I wanted to use kubernetes v1.7 with RBAC and I need to make some modifications to the apiserver for istio. So acs-engine is a good fit. Feel free to install using whatever method makes sense for you. Just be sure to have kubernetes version 1.7.3 or newer.</p><p><strong>Step 2: Modify Kubernetes API Server</strong></p><p>For this demo, you will need the Istio proxy to be automatically injected into application pods. This is done with a new Kubernetes feature called Initializers. For this, you will need to modify the <strong><em>api-server.yaml</em></strong> on your master node.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/843121321079bc4492d5455c3536310f/href">https://medium.com/media/843121321079bc4492d5455c3536310f/href</a></iframe><p>Restart the kubelet with: “<strong><em>sudo systemctl restart kubelet</em></strong>” I imagine it should be obvious that this will make the cluster unavailable temporarily.</p><p><strong>Step 3: Add Istio</strong></p><p>Download the latest <a href="https://github.com/istio/istio/releases">istio release</a> down to your local machine. I used v0.2.12. I suggest following the istio install steps right from <a href="https://istio.io/">https://istio.io</a>.</p><pre># Install istio itself:<br>kubectl apply -f install/kubernetes/istio.yaml</pre><pre># Install add-ons:<br>kubectl apply -f install/kubernetes/addons/prometheus.yaml<br>kubectl apply -f install/kubernetes/addons/grafana.yaml<br>kubectl apply -f install/kubernetes/addons/servicegraph.yaml<br>kubectl apply -f install/kubernetes/addons/zipkin.yaml</pre><p><strong>Step 4: Add Istio Initializer</strong></p><p>For this demo, we will configure istio to only inject itself into our “microsmack” namespace as follows. First create the namespace:</p><pre>kubectl create namespace microsmack</pre><p>Then modify the istio-initializer.yaml for the initializer pod (located in the istio source in the /install/kubernetes/ directory). The ConfigMap section is shown below. We are only changing the namespaces parameter.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9a30726e662b08fb49fa325ad9271975/href">https://medium.com/media/9a30726e662b08fb49fa325ad9271975/href</a></iframe><p>Then apply to your cluster.</p><pre>kubectl apply -f install/kubernetes/istio-initializer.yaml</pre><p>Validate that the istio pods are all running as below. You can validate the initializer with the sleep pod test shown here. <a href="https://istio.io/docs/setup/kubernetes/sidecar-injection.html">https://istio.io/docs/setup/kubernetes/sidecar-injection.html</a></p><pre>kubectl get pod -n istio-system</pre><pre>NAME                                 STATUS<br>grafana-2460282047-94l6z             Running<br>istio-ca-293181461-ntnt2             Running<br>istio-egress-2098918753-97jst        Running<br>istio-ingress-3288103321-r3xs8       Running<br>istio-initializer-2508681778-j3l34   Running<br>istio-mixer-4195966866-90qp0         Running<br>istio-pilot-1168925427-bhzwk         Running<br>prometheus-4086688911-9frnb          Running<br>servicegraph-4072321759-pg4jq        Running<br>zipkin-3660596538-d8bs1              Running</pre><p><strong>Step 5: Deploy Brigade and Kashti</strong></p><p>Brigade is simple to install. You need to make sure you have Helm working first. Note that RBAC is set to enabled.</p><pre># I used helm version 2.7.2<br>helm init --upgrade</pre><pre>helm repo add brigade <a href="https://azure.github.io/brigade">https://azure.github.io/brigade</a></pre><pre>helm install -n brigade brigade/brigade --set rbac.enabled=true</pre><p>We will also use Kashti to see the results of our builds. Install instructions are here: <a href="https://github.com/Azure/kashti/blob/master/docs/install.md">https://github.com/Azure/kashti/blob/master/docs/install.md</a></p><p><strong>Step 6: Fork the Repo in Github</strong></p><p>You’ll need your own Github account for this. My code is stored here: <a href="https://github.com/chzbrgr71/kube-con-2017">https://github.com/chzbrgr71/kube-con-2017</a>.</p><p>In order to perform the CI/CD webhooks and change your code, you should fork this into your own GitHub account. Make note of the URL to your repo for Step 8.</p><p>Additionally, you will need a Github OAuth token to allow brigade to update the repo. You can create this here: <a href="https://github.com/settings/tokens/new">https://github.com/settings/tokens/new</a> Again, make note of this for Step 8.</p><p><strong>Step 7: Create an Azure Container Registry</strong></p><p>Follow the ACR docs to create your own Docker registry for this demo. <a href="https://docs.microsoft.com/en-us/azure/container-registry/">https://docs.microsoft.com/en-us/azure/container-registry</a></p><p>I used an Admin user/password for me registry. You will use this along with your ACR login server in the brigade project. Make note of it for Step 8.</p><p><strong><em>Note</em></strong><em>: In order for kubernetes to pull images from Azure Container Registry, the service principal used when creating your acs-engine cluster must have rights to the RG where the ACR instance is deployed. If the SP is a Contributor across the entire subscription, everything will just work. Otherwise, explicit rights will be needed or one could use an imagePullSecret.</em></p><p><strong>Step 8: Create Brigade Project</strong></p><p>A Brigade project holds the configuration data needed to run your pipeline or workflow. These settings will be stored as kubernetes secrets. You will create a local brig-project.yaml file similar to below that holds the values for your project and deploy this as a Helm chart. Do not store this file in the public since it contains secrets.</p><p><em>NOTE: Each Brigade project uses it’s own chart.</em></p><p>You will need to replace the values below with your environment. I used Slack for the KubeCon demo as well. If you are not using Slack, you can leave this step out for your demo.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/38a55b41db7af7443321e24013f83110/href">https://medium.com/media/38a55b41db7af7443321e24013f83110/href</a></iframe><p>Install as follows (again, don’t store this file in your repo):</p><pre>helm install --name kube-con-2017 brigade/brigade-project -f brig-project.yaml</pre><p><strong>Step 9: Install the App</strong></p><p>There are a few components that are not part of our CI/CD that will be setup in advance. The image for the web front-end is in Docker Hub. The code is in the repo in case you want to modify or re-build.</p><p>These resources will be deployed into the microsmack namespace.</p><pre># First install the web front-end deployment/service<br>kubectl create -f web.yaml -n microsmack</pre><pre># Then the headless service for our api<br>kubectl create -f api-svc.yaml -n microsmack</pre><p><strong>Step 10: Setup the demo</strong></p><p>On the first run of our demo, the initial deployment of our API and istio rules will be deployed. In order to trigger this CI/CD process, we must configure our webhook in Github to point to brigade.</p><p>Grab the EXTERNAL-IP for your Brigade Gateway service in your cluster. You can see this by running:</p><pre>kubectl get service brigade-brigade-gw</pre><p>Then</p><ol><li>Open your repo in Github: <a href="https://github.com/chzbrgr71/kube-con-2017">https://github.com/your_id/kube-con-2017</a></li><li>Click on Settings and then Webhooks</li><li>Add a new Webhook</li><li>The payload URL will be: <a href="http://13.91.63.221:7744/events/github">http://&lt;your-external-IP&gt;:7744/events/github</a></li><li>Content type: application/json</li><li>Secret: This is the sharedSecret that we used in our brigade project yaml in Step 8</li><li>Use “Let me select individual events” and select Push and Pull Request</li></ol><p><strong>Step 11: Run the Demo</strong></p><p>The first step to run the demo is to push an update to the master branch of your repo. The webhook should trigger a build and deploy a new version of the API. You can validate when it is completed by accessing the EXTERNAL-IP for the smackweb service. Use this IP in the next step.</p><p>Create activity:</p><pre># run the following from a bash prompt</pre><pre>while true; do curl <a href="http://13.93.201.75:8080/">http://your_external_ip:8080</a>; sleep 1; done</pre><p>Access Grafana:</p><pre>kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath=&#39;{.items[0].metadata.name}&#39;) 3000:3000 &amp;</pre><pre># then browse to:<br><a href="http://localhost:3000/dashboard/db/istio-dashboard">http://localhost:3000/dashboard/db/istio-dashboard</a></pre><p>Access Zipkin:</p><pre>kubectl port-forward -n istio-system $(kubectl get pod -n istio-system -l app=zipkin -o jsonpath=&#39;{.items[0].metadata.name}&#39;) 9411:9411 &amp;</pre><pre># then browse to:<a href="http://localhost:9411/"><br>http://localhost:9411</a></pre><p>Create a Pull Request</p><ul><li>Create a dev branch in your repo</li><li>Update the “handlers.go” file in /smackapi folder in your repo’s dev branch</li><li>In Github, use this above update as a PR</li><li>Check updated results in dashboard</li><li>Merge and validate</li></ul><p>Look at build results in the Kashti Dashboard.</p><blockquote>Please provide feedback in my Github repo. Thanks for playing…</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9db5ef15a942" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Multi-stage Builds — Size Matters]]></title>
            <link>https://medium.com/@chzbrgr71/docker-multi-stage-builds-size-matters-e71ae0f08ae8?source=rss-9a0da89291cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e71ae0f08ae8</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Brian Redmond]]></dc:creator>
            <pubDate>Wed, 06 Sep 2017 11:34:04 GMT</pubDate>
            <atom:updated>2017-09-07T09:38:18.450Z</atom:updated>
            <content:encoded><![CDATA[<p>Docker v17.05 introduced multi-stage builds for optimizing container images. This greatly simplifies the “builder pattern” for Docker images. I thought it would be interesting to dig into this deeper and see if the advantages are worth it.</p><p>You can read more about multi-stage builds in the docs: <a href="https://docs.docker.com/engine/userguide/eng-image/multistage-build/">https://docs.docker.com/engine/userguide/eng-image/multistage-build</a></p><h3>How to create a multi-stage build</h3><p>Instead of build scripts and multiple Dockerfiles, we will create a single Dockerfile with multiple “FROM” statements. This will create an “interim” image handling the build and then we can pull the artifacts from this into a much smaller image (using something such as scratch or alpine).</p><p>For example, a standard Dockerfile for a Go app would be as follows (eg: “the old way”)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/704f6a1039cc585320c690b532882176/href">https://medium.com/media/704f6a1039cc585320c690b532882176/href</a></iframe><p>Using multi-stage builds, we would use this Dockerfile.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d5568f8ee4262cf331109f5fc44041d/href">https://medium.com/media/6d5568f8ee4262cf331109f5fc44041d/href</a></iframe><p>By only using our binary and a scratch image, we reduce our image size from 729MB to a tiny 1.86MB. Great!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EDG7-oGL6dPJNTxuGm7kcQ.png" /></figure><h3>How does this help?</h3><p>These smaller images have many advantages.</p><p><strong>Time</strong></p><p>Our multi-stage image is less than 1% of the original. As we bring this super duper app to the cloud, we start to really see the value. In Azure, we will store this image in our Azure Container Registry. Let’s compare the time to transfer.</p><ul><li>At home, I typically see 20 Mbps upload speed. This could take 5 minutes for the initial transfer.</li><li>The tiny image would transfer in less than a second.</li></ul><p>Of course over time, only updates are transferred to the registry. But updates occur regularly and this time adds up. We also have to account for pulling this image from the registry to our container platform. Each node running this container needs to download the image.</p><p>For a microservices app with hundreds of services and potentially thousands of updates per day, this time is critically important. As we know, fast updates is one of the key advantages of microservices.</p><p>We would try to mitigate this by placing our registry in close proximity to the build system and the docker engine(s). With all of these mitigating factors, the tiny image always wins. We will be comparing microseconds to seconds.</p><p><strong>Cost</strong></p><p>Bandwidth and storage are typically inexpensive in the cloud. With basic calculations, our large image above costs less than a nickel to transfer out of Azure or cross region (uploads are free). Again, we will try to avoid bandwidth charges completely by co-locating our build system, registry, and container engine. But this is not always important.</p><p>The cost factor here is pretty negligible, but should not be ignored.</p><p><strong>Security</strong></p><p>From a security perspective, you can reduce the attack surface by removing unnecessary components from our image.</p><p>It is also valuable to ensure our containers are being run as non-root. An example of this was written up by Liz Rice from Aqua Security. <a href="https://medium.com/@lizrice/non-privileged-containers-based-on-the-scratch-image-a80105d6d341">https://medium.com/@lizrice/non-privileged-containers-based-on-the-scratch-image-a80105d6d341</a></p><p><strong>Additional considerations</strong></p><ul><li>You must manage your dependencies. The scratch image comes with nothing. If your app requires external components, you must ensure you bring those into the final build. In my Go app, I was using a SQL Server on Linux and my app used an external library for SQL. This required me to use a statically linked binary for Go to ensure this library was included. My Dockerfile had to be updated as follows:</li></ul><pre>GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o web-app</pre><ul><li>Your build system needs Docker v17.05. In my case, I am running on Kubernetes with Jenkins and the latest version of Kubernetes uses an older version of Docker. This will require some “Docker-in-Docker” games for me, but just be sure you have the latest for this to work.</li><li>Also, if you run a bunch of these, you will end up with tons of images lying around that are not needed (the interim images). You can easily clean these up by running:</li></ul><pre>docker system prune</pre><h3>Summary</h3><p>The advantages of Docker multi-stage builds are minimal for each instance, but when you are using large numbers of containers, the advantages add up. Particularly in a microservices application with automated CI/CD systems. There are likely even more advantages beyond the time, cost, and security areas mentioned here. Try it out!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e71ae0f08ae8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use Azure Container Instances and Kubernetes to scale out web apps]]></title>
            <link>https://medium.com/@chzbrgr71/use-azure-container-instances-and-kubernetes-to-scale-out-web-apps-b59f2b782e01?source=rss-9a0da89291cd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b59f2b782e01</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Brian Redmond]]></dc:creator>
            <pubDate>Mon, 21 Aug 2017 19:47:51 GMT</pubDate>
            <atom:updated>2017-08-29T22:10:29.606Z</atom:updated>
            <content:encoded><![CDATA[<p>In my first post here, I thought I would show some really cool new technology combining a series of services in Azure. This walkthrough demo will show how to scale out a web app across Azure Container Service and Azure Container Instances using the new ACI Connector for Kubernetes and Traffic Manager.</p><p>Video walkthrough here. <a href="https://youtu.be/buBlCKmUdbE">https://youtu.be/buBlCKmUdbE</a></p><p>Azure Container Instances (or ACI) were recently announced as a preview technology for quickly spinning up containers in the cloud. The <a href="https://github.com/Azure/aci-connector-k8s">Azure Container Instances Connector for Kubernetes</a> allows Kubernetes clusters to deploy Azure Container Instances. This connector adds a “<strong><em>virtual node</em></strong>” to your Kubernetes cluster and essentially offers unlimited scale for your cluster. This is still in an “experimental” stage, but I thought I’d show how we could combine Container Services and ACI to deliver a distributed web application.</p><p><strong>Step 1: Deploy Azure Container Service with Kubernetes</strong></p><p>Deploy ACS with Kubernetes following the instructions in Azure docs. <a href="https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container-service-tutorial-kubernetes-deploy-cluster">https://docs.microsoft.com/en-us/azure/container-service/kubernetes/container-service-tutorial-kubernetes-deploy-cluster</a></p><p>Once finished, you should have a working cluster and access to it via <strong>kubectl</strong> from your machine.</p><p><strong>Step 2: Deploy the web app in ACS</strong></p><p>We will use a simple web app to run in both ACS Kubernetes and ACI. In this step, we will deploy pods with deployment and service resources. For my example, I have a simple Go web app that displays an environment variable that we pre-set based on where the container is running. Wait for the service to be created and a public IP available.</p><pre>kubectl create -f go-web.yaml</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aab69485e50ba90540453c8d503031e9/href">https://medium.com/media/aab69485e50ba90540453c8d503031e9/href</a></iframe><p><strong>Step 3: Deploy the ACI Connector Pod</strong></p><p>The ACI Connector is a kubernetes pod that will act as a virtual node in the cluster. It requires an Azure service principal in order to create ACI resources. The YAML file below will be used to deploy the resource in your cluster.</p><ul><li>Create and resource group for the ACI resources:</li></ul><pre>az group create -n aci-test -l westus</pre><ul><li>First, create the Azure service principal as follows. You’ll need to replace with your subscription ID.</li></ul><pre>az ad sp create-for-rbac --role=Contributor --scopes /subscriptions/&lt;subscriptionId&gt;/resourceGroups/aci-test</pre><ul><li>Modify the values below with details from the service principal you created above. Then deploy the connector as follows:</li></ul><pre>kubectl create -f aci-connector.yaml</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e9e2c87d797c535f9af2ff89de4196e7/href">https://medium.com/media/e9e2c87d797c535f9af2ff89de4196e7/href</a></iframe><ul><li>Once up and running, you should see the new node as running when you run the command: <em>“kubectl get node”</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHrs4g6dY9l84zT6TPtEog.png" /></figure><p><strong>Step 4: Deploy the web app in ACI</strong></p><p>In this step, we must specifically target the ACI node for our pods using the “nodeName” parameter. Wait for the pod to be in a running state and validate using the ACI public IP.</p><pre>kubectl create -f go-web-aci.yaml</pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/166d58df7627835ef879c1e0fa085566/href">https://medium.com/media/166d58df7627835ef879c1e0fa085566/href</a></iframe><p><strong>Step 5: Setup Traffic Manager</strong></p><p>Azure Traffic Manager will use DNS to route requests across the instances of our app. For each endpoint, we will need to create a DNS name using a public domain name of our choice. In my case, I will use brianredmond.io.</p><ul><li>Create host records in your DNS provider for each deployment. Eg:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bxb85M9T9ZprYteAQ2LNjw.png" /></figure><ul><li>In the Azure portal, create a simple Traffic Manager profile with the name of your choice. <strong><em>yourname.trafficmanager.net</em></strong>. You can use Priority or Weighted here for this demo. If using weighted, you will need to set the weight on each endpoint below.</li><li>Set the Traffic Manager endpoint monitor (configuration) to scan port 8080 since our app is only available on this port.</li><li>Add an external endpoint for the ACS Kubernetes (eg: acs.brianredmond.io). Set a weight on the endpoint if desired.</li><li>Add an external endpoint for the ACI deployment (eg: aci.brianredmond.io)</li><li>Wait for the endpoints to have Monitor Status of “Ready”. This can take a few minutes.</li></ul><p><strong>Step 6. Try it out!</strong></p><p>This should be straightforward. Hit the Traffic Manager URL. <a href="http://yourname.trafficmanager.net:8080/">http://yourname.trafficmanager.net:8080</a></p><p>If using weighted routing method, you should see the page with the higher weight. If you are using Priority, take one of the apps offline and see if the traffic is re-directed accordingly.</p><p><strong>Summary</strong></p><p>In my opinion, this ACI Connector for Kubernetes is super interesting and valuable. It essentially allows me to have an “unlimited node” added to my cluster. By combining Azure Traffic Manager in front, we can route traffic as we desire and create a highly distributed application.</p><p>Since some of these technologies are still in preview, it will be interesting to see how this progresses going forward.</p><p>Happy tinkering!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b59f2b782e01" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>