<?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 Mohammed on Medium]]></title>
        <description><![CDATA[Stories by Mohammed on Medium]]></description>
        <link>https://medium.com/@mohammedr62?source=rss-1419ea8582e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KiOTy7WrzeokrCPd8uys8w.jpeg</url>
            <title>Stories by Mohammed on Medium</title>
            <link>https://medium.com/@mohammedr62?source=rss-1419ea8582e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:00:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mohammedr62/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[Journey into Kubernetes: Building Resilience, One Container at a Time]]></title>
            <link>https://mohammedr62.medium.com/journey-into-kubernetes-building-resilience-one-container-at-a-time-ea09fa0f088f?source=rss-1419ea8582e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea09fa0f088f</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[planning]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[reliability-engineering]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Mohammed]]></dc:creator>
            <pubDate>Thu, 21 Dec 2023 15:09:24 GMT</pubDate>
            <atom:updated>2023-12-21T15:09:24.295Z</atom:updated>
            <content:encoded><![CDATA[<p>The question that kept echoing in my mind was, “Is Kubernetes the right fit for us?” There’s no definitive answer to that, and sometimes, the only way to find out is through hindsight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*9VqCbiW_nxfOlCTRDvCWRQ.jpeg" /></figure><p>Pictured above is similar to Gartner’s Hype Cycle, The cycle begins with chaos sparking innovation, followed by heightened expectations. As planning and reality checks set in, there’s a phase of disappointment. However, through implementation, hope is restored, and over time, value is realised with widespread adoption.</p><p>This post breaks down the journey into different phases, explaining each step.</p><h3>Chaos 🔥</h3><p>Scaling our current system infrastructure to handle day to day growing traffic was a huge challenge. Imagine this: our services, which depend on virtual machines (VMs), would get overwhelmed when a lot of traffic and data hit them all at once. It was like a recurring nightmare where our systems struggled to cope with the load.</p><p>As the demand increased, we tried to solve the problem by adding more virtual machines (VMs). But instead of helping, this created a never-ending cycle of issues. Late-night calls became a regular thing, and our services struggled with too many requests, turning our operations into chaos.</p><p>At that crucial moment, we realized the only way forward was to create a solution that could scale.</p><h3>Innovation 💡</h3><p>We started looking at kubernetes as the only solution. After all, the term “imposter syndrome” was coined to describe the anxiety we face as we try to keep current with technology and what is happening in the industry.</p><p>Here’s what we wanted to solve:<br>1. Reduce Infrastructure management as much as possible.<br>2. Auto scale infra / services to cope with dynamic load.<br>3. Platform that can deliver resiliency if we plan to migrate our entire setup.<br>4. Better security and visibility into systems.<br>5. Cost.</p><p>However, as we delved deeper, we refused to settle for a single solution. Exploring various tech stacks, we considered auto-scaling VMs and Nomad. Alas, each alternative proved inadequate in meeting the breadth of our challenges. So, we took a big chance on Kubernetes, and that’s where our journey started….!</p><h3>Planning🤞</h3><h4>Sharing plans with people (It’s Scary…..) 😓</h4><p>I find it kind of scary to tell people what I’m working on!</p><p>Here are a few reasons I find it a bit scary:</p><ol><li>Imposter syndrome — I’m telling everyone we can do it, but what if I mess up? People might think I’m not good at my job.</li><li>What if something unexpected happens and i’m unable to handle it?</li><li>What if the duration or cost exceeds the initial projection I made?</li></ol><p>It’s much safer to start doing the task, stay focused until it’s finished, and then announce, “Hey, we did it, and it worked!”</p><p>Luckily, I didn’t have the option to avoid it — my manager clearly instructed me to share plans with both leadership and the teams before the project could begin.</p><h4><strong>How i did it ?</strong></h4><p>I found it helpful to assume that <strong>what I’m doing will work out</strong>. While it’s important to think about risks, starting with the belief that things will probably succeed makes it easier to get things done and share with others. Confidence seems pretty key when dealing with tough tasks.</p><ol><li>I prepared a straightforward document outlining what I’m working on, why it matters, how I’ll approach it, cost and timelines. Sharing plans is beneficial for others tackling similar tasks. For instance, if your team reveals a project requiring assistance from another team, they can allocate someone to lend a hand.</li><li>Sharing plans also helped uncover issues we missed, refining our goals and dealing with risks.</li><li>Writing down a plan brought clarity to our objectives.</li><li>Communicating clear plans helped management… manage.</li><li>I shared a RACI (Responsible, Accountable, Consulted, and Informed) chart to clarify everyone’s roles and ensure a smooth migration.</li></ol><p>However, sharing plans faced challenges:<br>1. Learning curve within team, <br>2. Uncertainty about ownership, <br>3. Questions on timing (Why do we have to do it right now?), <br>4. Cost concerns, <br>5. People concerns.</p><p>Rejections often boiled down to a “<strong>Fear of the unknown</strong>.” Communication is crucial — plans should be mostly true, if not 100% perfect. A proof of concept and discussions with stakeholders can help.</p><p>In a nutshell, while planning:</p><ol><li>Crafted a reasonable plan.</li><li>Shared it with a reasonable group.</li><li>Assumed things will work out, and challenges can be tackled.</li><li>Listened to feedback and adjust as needed.</li></ol><p>Most important thing while working on big projects that greatly affect the business, get used to <strong>no</strong> and remember “<strong>every no is one step closer to yes</strong>”</p><h3>Execution</h3><p>We divided our services into different categories based on the ease of migration:</p><ol><li><strong>Mouse</strong>: Services that are simple to containerize, requiring minimal effort, and with low traffic.</li><li><strong>Rabbit</strong>: Client-facing services with moderate traffic.</li><li><strong>Deer</strong>: Services handling critical business messages but not client-facing.</li><li><strong>Mammoth</strong>: Legacy code services with a significant impact on the business.</li></ol><p>To ensure a strategic approach, we set clear boundaries. “Lift and shift” wasn’t about moving things as they are; we aimed for improved performance and observability. If code changes were necessary, we involved the respective teams — no more applying temporary fixes on the new platform.</p><p>We started with small tasks like <strong>mouse</strong> to boost our confidence. Then, we moved on to bigger challenges like <strong>rabbits</strong>. After that, we tested ourselves with a prototype involving <strong>deer-sized</strong> tasks to see if we could handle them and extract value. This step-by-step process paved the way for us to confidently tackle even larger challenges, represented by the metaphorical “<strong>Mammoth</strong>.”</p><p>At first, I thought getting things done would be the hardest part. But when we actually got to it, it was easier than expected. Even with challenges popping up, it was smooth because everyone on the team knew what we were up to. Asking for help was easy, and we had bandwidth set aside for any unexpected issues.</p><h3>Value 💲</h3><p>Starting with the statement, “Sometimes, the only way to ascertain the right choice is in hindsight,” we migrated over 25 services, we ran them seamlessly for over 90 days without any issues.</p><p>Here’s key value points</p><ul><li>Handling 30 million messages seamlessly using keda with redis to scale workloads.</li><li>Eliminated midnight calls.</li><li>Improved system reliability significantly.</li><li>Cut costs by running some workloads on Kubernetes Spot instances instead of dedicated VMs.</li><li>Implemented Argo CD and used Helm chart templates for easy deployments with minimal learning curve.</li></ul><p>However, is this the sole solution? The answer is no. Decisions were made based on unique circumstances and available bandwidth at the time.</p><blockquote><em>I believe Kubernetes is not the solution to all the problem.</em></blockquote><p>Is the journey complete? No. I was only able to prove that platform can deliver value its gonna take time for widespread adoption and migration.</p><h3>Key Learning 🔆</h3><p>I found the technical side of engineering easy, but dealing with people — sharing plans, onboarding, listening to feedback — was the real challenge. Planning was a bit of a pain, and I had to push through my own fears. It wasn’t until I wrote this document that I realised human dynamics, communication, and collaboration were the keys to making execution easy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea09fa0f088f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Enhanced Observability: The Power of Thanos in Multi-Cluster Kubernetes Environments]]></title>
            <link>https://mohammedr62.medium.com/unlocking-enhanced-observability-the-power-of-thanos-in-multi-cluster-kubernetes-environments-de07dda9b8bd?source=rss-1419ea8582e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/de07dda9b8bd</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[thanos]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[prometheus]]></category>
            <dc:creator><![CDATA[Mohammed]]></dc:creator>
            <pubDate>Sat, 29 Jul 2023 10:07:15 GMT</pubDate>
            <atom:updated>2023-07-29T10:56:21.226Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>In this article we are going to see the limitation of a Prometheus only monitoring stack and why moving to a Thanos based stack can improve metrics retention and also reduce overall infrastructure cost.</p><p>Config files and chart used for this demo are available <a href="https://github.com/Privet-mir/multi-cluster-thanos">here</a>.</p><h3>Kubernetes Prometheus Stack</h3><p>This stack is designed to collect, store, query, and visualize metrics from Kubernetes clusters, providing insights into the health and performance of the applications and infrastructure.</p><ul><li><a href="https://prometheus.io/">Prometheus</a>: collect metrics</li><li><a href="https://prometheus.io/docs/alerting/latest/alertmanager/">AlertManager</a>: send alerts to various provider based on metrics query</li><li><a href="https://grafana.com/">Grafana</a>: fancy dashboards</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*iBo0MujOVS7JWfjv1KGBOQ.png" /><figcaption>Simple Multi Cluster Architecture</figcaption></figure><p>While this is a popular and effective monitoring solution, it also has some caveats and limitations that one should be aware of:</p><ul><li>It does not scale out well when increasing the number of cluster from which you want to get metrics.</li><li>Each cluster has its own Grafana with its own set of dashboards which can be a pain to maintain.</li><li>Prometheus is designed for short-term data retention by default. It stores metrics for a limited period, typically a few weeks. This means that historical data beyond the retention period is not available for analysis, block storage can be expensive if you store terabyte of data on it. which may be crucial for certain use cases.</li></ul><h3>Thanos</h3><p>Thanos works as an extension to Prometheus, enhancing its capabilities to address the challenges of long-term data retention, scalability, and global querying. It introduces several components and architectural changes to achieve these goals. Here’s an overview of how Thanos works:</p><p><strong>Prometheus Data Collection:</strong></p><ul><li>Just like in a regular Prometheus setup, each Prometheus instance scrapes metrics from various targets (applications, services, Kubernetes components, etc.) using the pull-based model.</li><li>Prometheus stores the collected metrics locally in its time-series database.</li></ul><p><strong>Thanos Sidecar:</strong></p><ul><li>The Thanos Sidecar runs alongside each Prometheus server and acts as a connector between Prometheus and Thanos.</li><li>It continuously uploads the local Prometheus data to a remote object storage system, like Amazon S3, Google Cloud Storage, or any other compatible storage backend.</li><li>By pushing the data to remote storage, the Sidecar offloads the long-term data storage responsibility from Prometheus.</li></ul><p><strong>Thanos Store Gateway:</strong></p><ul><li>The Thanos Store component is a read-only component that exposes the metrics data stored in the remote object storage.</li><li>It acts as a gateway, allowing Prometheus and other Thanos components to query the historical metrics data from the object storage, even though the data is physically stored in a different location.</li></ul><p><strong>Global Querying with Thanos Querier:</strong></p><ul><li>The Thanos Querier component allows for cross-cluster querying and operates as a single entry point for querying metrics data from multiple Prometheus instances and Thanos Store gateways.</li><li>When a query is issued, the Querier aggregates data from various sources (Prometheus servers and Thanos Store gateways) and presents a unified view of metrics from different clusters.</li></ul><p><strong>Compaction and Deduplication:</strong></p><ul><li>Thanos periodically runs the Compactor component, which performs data compaction in the object storage, reducing storage space by removing unnecessary data.</li><li>Thanos also deduplicates data to optimize storage efficiency and reduce redundancy, further reducing the storage costs.</li></ul><p><strong>High Availability:</strong></p><ul><li>Thanos achieves high availability by replicating data across multiple object storage instances.</li><li>In case a Thanos Store or object storage instance becomes unavailable, the data remains accessible through other replicas, ensuring fault tolerance and avoiding data loss</li></ul><p><strong>Ruler:</strong></p><ul><li>Thanos Ruler evaluates alerting rules across all the Prometheus servers and Thanos Store gateways in the Thanos-based monitoring stack. This allows for a consistent and unified approach to alerting across all clusters.</li><li>Alerting rules can be defined in any of the Prometheus instances or Thanos Store gateways. Thanos Ruler collects and aggregates these rules, ensuring that each rule is evaluated appropriately.</li><li>Thanos Ruler works in conjunction with Prometheus Alertmanager to handle alert notifications. When an alert is triggered, it is sent to Alertmanager, which then takes care of grouping, deduplicating, and routing alerts to the appropriate receivers.</li></ul><h3>Multi Cluster Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*UsfTjCNV9pZP6oX41EFihQ.png" /></figure><p>This example is running on Azure with 3 cluster setup in private AKS (Azure Kuberentes Service):</p><p><strong>Ops-Cluster</strong>: Centralized cluster for monitoring and operations exposed with external label as ops-cluster. <br><strong>Cluster N</strong>: Application clusters exposed with external label cluster-n.</p><p>Our deployment uses the official <a href="https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack">Kube-prometheus-stack</a>.</p><h4><strong>Cluster Setup:</strong></h4><p>Setup Monitoring namespace<br>$: kubectl create ns monitoring</p><p>Create secret to mount blob container for storing prometheus metrics, update access key in <a href="https://github.com/Privet-mir/multi-cluster-thanos/blob/main/thanos.yaml">thanos.yaml</a></p><pre>type: AZURE<br>config:<br>  storage_account: &#39;centralmetricstore&#39; # azure blob storage account name<br>  storage_account_key: &#39;xxxxxxxxxxxxxxxxxxxx&#39; # azure blob storage key<br>  container: &#39;metricsthanos&#39; # azure blob container name<br><br># Create Secret using <br>$: kubectl -n monitoring create secret generic thanos-objstore-config --from-file=thanos.yaml=thanos.yaml</pre><p>Deploy prometheus stack — Make below changes in values file <a href="https://github.com/Privet-mir/multi-cluster-thanos/blob/main/cluster-n.yaml">cluster-n.yaml</a></p><pre># update on line 2750<br>externalLabels: <br>  cluster: cluster-n </pre><p>Install helm chart</p><pre>$: cd multi-cluster-thanos/monitoring-setup<br>$: helm dependency build<br>$: cd ../<br>$: helm  install prometheus-stack monitoring-setup/ --values ./cluster-n.yaml -n monitoring<br><br># check pods<br>$: kubectl get po -n monitoring<br><br># check services<br>$: kubectl get svc -n monitoring</pre><p>Following components are deployed:</p><ul><li>Prometheus</li><li>Thanos sidecar</li><li>Kube-metrics</li></ul><p><strong>NOTE: </strong>repeat this steps for other application clusters.</p><h4><strong>Ops-cluster Setup:</strong></h4><p>Create namespace to setup monitoring stack<br>$: kubectl create ns monitoring</p><p>Create secret to mount blob container for storing prometheus metrics, update access key in <a href="https://github.com/Privet-mir/multi-cluster-thanos/blob/main/thanos.yaml">thanos.yaml</a>.</p><pre>type: AZURE<br>config:<br>  storage_account: &#39;centralmetricstore&#39; # azure blob storage account name<br>  storage_account_key: &#39;xxxxxxxxxxxxxxxxxxxx&#39; # azure blob storage key<br>  container: &#39;metricsthanos&#39; # azure blob container name<br><br># Create Secret using <br>$: kubectl -n monitoring create secret generic thanos-objstore-config --from-file=thanos.yaml=thanos.yaml</pre><p>Deploy prometheus stack — Make below changes in values file <a href="https://github.com/Privet-mir/multi-cluster-thanos/blob/main/ops-cluster.yaml">ops-cluster.yaml</a></p><pre># update slack config for alerts <br>   slack_configs:<br>      - channel: &#39;channel-name&#39;<br>        api_url: &#39;https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXX&#39;<br><br># update external label in value file<br>externalLabels: <br>  cluster: ops-cluster # line 2749<br><br># on line 3840 update alertmanager config, this is used by thanos ruler to fire alerts<br>  extraSecret:<br>    name: &quot;thanos-alertmanager-config&quot;<br>    data:<br>      alertmanager-configs.yaml: |<br>        alertmanagers:<br>        - static_configs: [&quot;prometheus-stack-kube-prom-alertmanager.monitoring.svc.cluster.local:9093&quot;]<br>          scheme: http<br>          timeout: 30s</pre><pre>$: cd multi-cluster-thanos/<br>$: helm  install prometheus-stack monitoring-setup/ --values ./ops-cluster.yaml -n monitoring<br><br># check pods<br>$: kubectl get po -n monitoring<br><br># check services<br>$: kubectl get svc -n monitoring </pre><p>Following components are deployed:</p><ul><li>Prometheus</li><li>Grafana</li><li>Alertmanager</li><li>Thanos sidecar</li><li>Thanos ruler</li><li>Kube-metrics</li></ul><p>Now we need to deploy <a href="https://github.com/Privet-mir/multi-cluster-thanos/blob/main/store-service.yaml">store</a> and <a href="https://github.com/Privet-mir/multi-cluster-thanos/blob/main/querier-deployment.yaml">query</a>.</p><pre># update XX.XX.XX.XX with node IP, we are using nodePort to expose service<br># Find node IP using kubectl get nodes &amp;&amp; kubectl get svc -n monitoring  <br># querier-deployment.yaml     <br>args:<br>   - &#39;query&#39;<br>   - &#39;--log.level=debug&#39;<br>   - &#39;--query.replica-label=prometheus_replica&#39;<br>   - &#39;--store=XX.XX.XX.XX:30901&#39; # cluster-a<br>   - - &#39;--store=XX.XX.XX.XX:30901&#39; # cluster-n<br>   - &#39;--store=prometheus-stack-kube-prom-thanos-external.monitoring.svc.cluster.local:10901&#39; # ops-cluster<br>   - &#39;--store=thanos-store-svc.monitoring.svc.cluster.local:10901&#39; # store svc</pre><pre>$: kubectl create -f querier-deployment.yaml<br># expose service<br>$: kubectl create -f querier-service-servicemonitor.yaml<br><br># deploy store service which connects to blob storage and fetches historical data<br>$: kubectl create -f store-service.yaml</pre><h4><strong>Connecting using grafana:</strong></h4><p>Add prometheus as data source on grafana and pass quereier service endpoint which is thanos-query.monitoring.svc.cluster.local:9090</p><h3>Conclusion:</h3><p>Thanos is a powerful open-source project that extends Prometheus and addresses some of the key challenges faced in monitoring and observability, particularly in multi-cluster Kubernetes environments. By adding Thanos to a monitoring stack, organizations can achieve long-term data retention, improved scalability, and efficient global querying capabilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de07dda9b8bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Clojure API with docker compose on Azure App Service.]]></title>
            <link>https://mohammedr62.medium.com/deploying-clojure-api-with-docker-compose-on-azure-app-service-79f1628855bc?source=rss-1419ea8582e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/79f1628855bc</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[clojure]]></category>
            <category><![CDATA[app-service]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Mohammed]]></dc:creator>
            <pubDate>Fri, 26 Aug 2022 19:48:31 GMT</pubDate>
            <atom:updated>2022-08-29T03:59:02.268Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rONspKlrbeKNqSGY8bnfeA.png" /></figure><h3>Preface</h3><p>This post assumes that you have some basic understanding of Docker, Docker Compose, and the key terms used in the ecosystem. Should you need to get up to speed, the <a href="https://docs.docker.com/get-started/#prepare-your-docker-environment">“Get Started”</a> section of Docker Docs is a great place to start.</p><h3>The Building Blocks</h3><p>Building Docker Compose config can be divided into the 6 main steps:</p><ol><li>Create an Image for your API using Dockerfile.</li><li>Create docker compose config.</li><li>Build &amp; Push to Azure container registry (ACR).</li><li>Deploy docker compose config on App Service.</li></ol><h4>1. Create an Image for your API using Dockerfile.</h4><p>Assuming we have a sample API written in clojure, the following could be a simple Dockerfile for it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf3c1cfb4b9ad51b401d4e37ec0b0702/href">https://medium.com/media/cf3c1cfb4b9ad51b401d4e37ec0b0702/href</a></iframe><p>to build docker image use command.</p><p>$: docker build -t . clojure-api:0.0.1</p><h4>2. Create docker compose config.</h4><p>Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.</p><p>You would likely have custom Dockerfiles to build an image from and this will require specifying a build context. This defines the path which the <em>compose file</em> will look at to build the service image. This path must contain the Dockerfile.</p><p>Following is the example of docker-compose.yml</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc52937d17d81bb9706f4efb34b65e38/href">https://medium.com/media/bc52937d17d81bb9706f4efb34b65e38/href</a></iframe><p>To run container using docker compose use following command. this will build docker image using Dockerfile and then create container.</p><p>$: IMAGE=clojure-api:0.0.1 docker compose -f docker-compose.yml up -d</p><p>Run curl on local to test api it should return pong in reponse.</p><p>$: curl -s <a href="http://localhost:8080/api">http://localhost:4000/api</a>/ping</p><h4>3. Build &amp; Push to Azure container registry (ACR).</h4><p>We’re using Azure container registry to store our docker images. tag the image with acr url and push it.</p><p>$: docker tag clojure-api:0.0.1 yourrepo.azureacr.io/clojure-api:0.0.1<br>$: az acr login -n yourrepo<br>$: docker push yourrepo.azureacr.io/clojure-api:0.0.1</p><h4>4. Deploy docker compose config on App Service.</h4><p>Before creating app service you need to create a copy of docker-compose.yml to docker-compose-app-service.yml.</p><p>App service by default runs on https so we have to expose 443 port on container.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb51075a268cc414969d01561255255a/href">https://medium.com/media/cb51075a268cc414969d01561255255a/href</a></iframe><p>Now, create app service and push docker-compose-app-service.yml to app service</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c7251bd2a4d284293c4650b083e63b6/href">https://medium.com/media/2c7251bd2a4d284293c4650b083e63b6/href</a></iframe><p>Once deployed, run curl on app service URL.</p><p>$: curl https://yourapp.azurewebsite.com/api/ping</p><p>For sample clojure code and docker files please visit following <a href="https://github.com/Privet-mir/clojure-app-service">git repo</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79f1628855bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>