<?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 Ruturaj Shitole on Medium]]></title>
        <description><![CDATA[Stories by Ruturaj Shitole on Medium]]></description>
        <link>https://medium.com/@rutush?source=rss-a234e3430764------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eZq24xQT_FTVh5Hs7MVytA.jpeg</url>
            <title>Stories by Ruturaj Shitole on Medium</title>
            <link>https://medium.com/@rutush?source=rss-a234e3430764------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 19:28:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rutush/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[On-prem AI Infrastructure Series]]></title>
            <link>https://rutush.medium.com/on-prem-ai-infrastructure-series-fc6a8b11aae8?source=rss-a234e3430764------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc6a8b11aae8</guid>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[containerd]]></category>
            <category><![CDATA[cilium]]></category>
            <category><![CDATA[nvidia-gpu]]></category>
            <dc:creator><![CDATA[Ruturaj Shitole]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 02:36:20 GMT</pubDate>
            <atom:updated>2025-08-07T02:36:20.047Z</atom:updated>
            <content:encoded><![CDATA[<h4>This series is dedicated to advancing on-prem AI research. We go through tools and technologies for setting up AI Infrastructure on Kubernetes.</h4><p>I’m writing a series of articles on configuring different tools and services on Kubernetes for building infrastructure for AI. This post is an index of all such articles on <a href="https://blog.rutu-sh.com/">my blog</a>. Enjoy the series and contribute more to the on-prem AI research.</p><h3>1. Using Nvidia GPUs with Kubernetes</h3><p>This article takes you through the process of making the GPU resources available in your Kubernetes cluster. It contains steps for setting up a Kubernetes cluster with GPU nodes, crafted after a painstaking process and multiple retries.</p><p>Read the article <a href="https://blog.rutu-sh.com/blog/k8s-nvidia-gpu.html">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc6a8b11aae8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple OpenTelemetry setup in a Kubernetes environment]]></title>
            <link>https://medium.com/incerto-technologies/simple-opentelemetry-setup-in-a-kubernetes-environment-aa7dc3e3fcf9?source=rss-a234e3430764------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa7dc3e3fcf9</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[getting-started]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[opentelemetry]]></category>
            <dc:creator><![CDATA[Ruturaj Shitole]]></dc:creator>
            <pubDate>Sat, 09 Dec 2023 04:22:55 GMT</pubDate>
            <atom:updated>2023-12-09T04:22:55.610Z</atom:updated>
            <content:encoded><![CDATA[<h4>A getting-started guide for running OpenTelemetry in a Kubernetes cluster.</h4><figure><img alt="figure 1: A high level architecture of the system" src="https://cdn-images-1.medium.com/max/861/1*nZ2ZBKQJo3-94dl7Y2ehrg.png" /><figcaption>fig-1: A high-level architecture of the system</figcaption></figure><p>In this article, I’ll take you through a simple setup for starting with OpenTelemetry in a Kubernetes environment. It is intended to be a starting point for those who want to start collecting telemetry data in a Kubernetes cluster using OpenTelemetry. As shown in Fig. 1, we will set up two components in the Kubernetes cluster, the Application and the OpenTelemetry collector. It will work as shown below:</p><ol><li>The user interacts with the Application via exposed endpoints</li><li>The application generates telemetry data and exports it to the OpenTelemetry collector</li><li>The OpenTelemetry collector then processes the telemetry data and displays it in the console as logs</li></ol><p>The source code can be found in my GitHub repository: <a href="https://github.com/rutu-sh/otel-k8s-experiments/tree/main/experiments/single-app-single-collector">rutu-sh/otel-k8s-experiments</a>.</p><h3>Prerequisites</h3><p>You’ll need to have the following installed and configured in your system:</p><ol><li><a href="https://www.python.org/about/">Python</a></li><li><a href="https://www.docker.com/">Docker</a> or <a href="https://podman.io/">Podman</a></li><li><a href="https://minikube.sigs.k8s.io/docs/">Minikube</a></li></ol><h3>1. Auto-Instrumenting a Python Application</h3><blockquote>In order to make a system observable, it must be instrumented: That is, code from the system’s components must emit <a href="https://opentelemetry.io/docs/concepts/signals/traces/">traces</a>, <a href="https://opentelemetry.io/docs/concepts/signals/metrics/">metrics</a>, and <a href="https://opentelemetry.io/docs/concepts/signals/logs/">logs</a>. <a href="https://opentelemetry.io/docs/concepts/instrumentation/"><em>-OpenTelemetry docs</em></a></blockquote><p>A system’s instrumentation can be done either manually or automatically. <a href="https://opentelemetry.io/docs/concepts/instrumentation/manual/">Manual</a> instrumentation requires code modifications while <a href="https://opentelemetry.io/docs/concepts/instrumentation/automatic/">auto-instrumentation</a> uses OpenTelemetry tools to generate telemetry data while running the application. In this article, we’ll use auto-instrumentation for simplicity.</p><p>A simple FastAPI Python Application can be written as follows:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/43ced200f998b597c7fcbf794b4e9dc2/href">https://medium.com/media/43ced200f998b597c7fcbf794b4e9dc2/href</a></iframe><p>To run this application, we can do:</p><pre>python3 main.py</pre><p>To auto-instrument this application, we’ll need to install the OpenTelemetry dependencies for Python, as shown <a href="https://opentelemetry.io/docs/instrumentation/python/automatic/#setup">here</a>, and run:</p><pre>OTEL_SERVICE_NAME=demo-application \<br>OTEL_TRACES_EXPORTER=console \<br>OTEL_METRICS_EXPORTER=console \<br>opentelemetry-instrument \<br>    python3 myapp.py</pre><p>To use this application in a Kubernetes setup, it must be Dockerized first. I have created a similar FastAPI application shown in the <a href="https://github.com/rutu-sh/otel-k8s-experiments/tree/main/common-applications/auto-instrumented/python/simple-fastapi-app/src">GitHub repository</a>. The application is <a href="https://github.com/rutu-sh/otel-k8s-experiments/blob/main/common-applications/auto-instrumented/python/simple-fastapi-app/build/Dockerfile">Dockerized</a> and pushed to <a href="https://hub.docker.com/repository/docker/rutush10/otel-autoinstrumentation-fastapi-simple-app/general">DockerHub</a>, with the image name rutush10/otel-autoinstrumentation-fastapi-simple-app:0.0.4.The same image will be used throughout this demo.</p><h3>2. Creating an OpenTelemetry Collector Config</h3><p>The <a href="https://opentelemetry.io/docs/collector/configuration/">collector config</a> defines how the telemetry data (traces, metrics, logs) is processed within the OpenTelemetry collector. It has four main components:</p><ol><li><a href="https://opentelemetry.io/docs/collector/configuration/#receivers">Receivers</a>: Define the source of telemetry data</li><li><a href="https://opentelemetry.io/docs/collector/configuration/#processors">Processors</a>: Define the processing of the telemetry data</li><li><a href="https://opentelemetry.io/docs/collector/configuration/#exporters">Exporters</a>: Define the destination for the telemetry data</li><li><a href="https://opentelemetry.io/docs/collector/configuration/#connectors">Connectors</a>: Connect multiple processing pipelines</li></ol><p>Each telemetry data point (traces, metrics, logs) will have a pipeline defined within the OpenTelemetry collector using the following components:</p><ul><li><strong>Receivers</strong>:<br>otel: Configured to receive telemetry data using gRPC.</li><li><strong>Processors</strong>:<br>batch: Processes data in batches</li><li><strong>Exporters</strong>:<br>logging: Logs the telemetry data to the console</li></ul><p>The flow of the data will happen in the following order:</p><ol><li>Telemetry data is received by the otel receiver on port 4317 and forwarded to the batch processor</li><li>The batch processor forwards the data in chunks to the logging exporter</li><li>The logging exporter logs the data to the console in the OTLP format</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31ihkqFFy1sseZ-IUe-uEQ.png" /><figcaption>fig-2: Flow of the telemetry data in the collector</figcaption></figure><p>The pipelines for telemetry data are defined within the collector-config YAML as shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/62e14f3f5ba35e42fa71cf19364ff74a/href">https://medium.com/media/62e14f3f5ba35e42fa71cf19364ff74a/href</a></iframe><h3>3. Creating Kubernetes manifests</h3><p>The system’s architecture will look as shown below. Here I will provide a short description of the manifests, a detailed explanation of the architecture and the manifests is given <a href="https://github.com/rutu-sh/otel-k8s-experiments/tree/main/experiments/single-app-single-collector">here</a>, I would suggest going through it if you face difficulties in understanding any configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tCWPhUWi11Zcjrzq5ehKWw.png" /><figcaption>fig-3: Architecture of the System</figcaption></figure><p>Following is the structure of the k8s directory containing the Kubernetes manifests:</p><pre>└── k8s<br>    ├── configmap.yaml<br>    ├── data<br>    │   └── otel-collector-config.yaml<br>    ├── deployment.yaml<br>    ├── kustomization.yaml<br>    ├── namespace.yaml<br>    └── service.yaml</pre><h4>Components</h4><p><strong>Namespaces:<br>1. opentelemetry-demo</strong>: Defines the namespace containing the k8s resources.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4e2fc94014d2d1aac33ba388834f254/href">https://medium.com/media/e4e2fc94014d2d1aac33ba388834f254/href</a></iframe><p><strong>ConfigMaps:</strong></p><ol><li><strong>single-app-single-collector: </strong>Defines the environment variables required for the application.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8368db6c276aba91c56477194d51ee7a/href">https://medium.com/media/8368db6c276aba91c56477194d51ee7a/href</a></iframe><p>2. <strong>otel-collector-config</strong>: This ConfigMap is created using Kustomization functionalities, and is mounted to the opentelemetry-collector container. Using Kustomization allows separating the otel-collector-config.yaml (defined in code-2) from the Kubernetes manifests and provides more readability.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/278929826596b1f580b937428cb55e0f/href">https://medium.com/media/278929826596b1f580b937428cb55e0f/href</a></iframe><p><strong>Deployments:</strong></p><ol><li><strong>single-app-single-collector</strong>: To manage the deployment of the FastAPI application. The application container is exposed on port 8000.</li><li><strong>opentelemetry-collector</strong>: To manage the deployment of the OpenTelemetry collector. The container is exposed on port 4317 (for gRPC).</li></ol><p><em>Don’t forget to edit the resource constraints according to your system specifications.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/538c0e7cc8fcd0d714b644a486a91923/href">https://medium.com/media/538c0e7cc8fcd0d714b644a486a91923/href</a></iframe><p><strong>Services:</strong></p><ol><li><strong>single-app-single-collector</strong>: This is a NodePort service, that redirects the requests on the node’s port to port 8000 on the pod.</li><li><strong>otel-collector</strong>: This is a ClusterIP service that exposes the collector within the cluster. This service maps the requests to port 4317 on the pod.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/80c0cc69f8a577c155e5566017a2c734/href">https://medium.com/media/80c0cc69f8a577c155e5566017a2c734/href</a></iframe><p>Once you’re done configuring all the manifests, run the following command from the k8s directory:</p><pre>kubectl apply -k .</pre><p>To get the application URL run the following:</p><pre>minikube service --namespace opentelemetry-demo single-app-single-collector --url</pre><p>Make requests to the port 30000 on the URL, this would generate the application telemetry. You can load the swagger docs at &lt;application-url&gt;:30000/docs and make requests.</p><h3>5. Visualizing</h3><p>Launch the kubernetes dashboard by following this, you should see similar results (<em>select the opentelemetry-demo namespace from the dashboard dropdown</em>).</p><p>The Dashboard should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Nd-GUHY4vAbQumBKg7F2Q.png" /><figcaption>fig-4: Kubernetes Dashboard</figcaption></figure><p>You can check the application logs by navigating to the application pod. The logs should show the auto-instrumented telemetry data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnll_p3Ro72Qr2OnY8PPAg.png" /><figcaption>fig-5: Application Pod Logs</figcaption></figure><p>The telemetry data is also exported to the collector via the otel-collector service, which then displays it as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WByNL_GPe5fGHqatJVXd5g.png" /><figcaption>fig-6: Collector Pod Logs</figcaption></figure><h3>Conclusion</h3><p>I hope you were able to follow through with the article and configure your own Kubernetes cluster with OpenTelemetry. For more details visit the <a href="https://github.com/rutu-sh/otel-k8s-experiments/tree/main">GitHub repository</a>. Additionally, you can check out the docs <a href="https://github.com/rutu-sh/otel-k8s-experiments/tree/main/common-applications/auto-instrumented/python/simple-fastapi-app">here</a> to write your own Python code and have it ready to be used within a Kubernetes deployment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa7dc3e3fcf9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/incerto-technologies/simple-opentelemetry-setup-in-a-kubernetes-environment-aa7dc3e3fcf9">Simple OpenTelemetry setup in a Kubernetes environment</a> was originally published in <a href="https://medium.com/incerto-technologies">Incerto Technologies</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Summary: Why AI is Harder Than We Think]]></title>
            <link>https://medium.com/incerto-technologies/summary-why-ai-is-harder-than-we-think-5c0f4ee5403f?source=rss-a234e3430764------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c0f4ee5403f</guid>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ruturaj Shitole]]></dc:creator>
            <pubDate>Fri, 30 Jul 2021 08:05:38 GMT</pubDate>
            <atom:updated>2024-01-05T22:31:54.329Z</atom:updated>
            <content:encoded><![CDATA[<h4>My notes from <a href="https://melaniemitchell.me/">Melanie Mitchell</a>’s paper: <em>Why AI is Harder Than We Think</em></h4><figure><img alt="A screenshot from the original paper" src="https://cdn-images-1.medium.com/max/782/1*bsMMytpgh-lOP9Mhsc33Ow.png" /><figcaption>A screenshot from the original paper</figcaption></figure><h3>Abstract</h3><p>Following are my notes from the <a href="https://arxiv.org/abs/2104.12871?source=techstories.org">original paper</a>. Though I highly recommend you to read the original paper, the purpose of this article is to serve as a means for a quick recap. In the following sections, I’ve written down what I learned from this paper.</p><h3>Introduction</h3><p><strong>Brittleness. </strong>Deep learning systems can exhibit brittleness. By brittleness, we mean that when faced with unfamiliar situations, different from the training data, the systems can exhibit some unpredictable errors.</p><p><strong>Shortcut learning. </strong>Brittleness occurs in these systems because these systems learn statistical associations in the training data, they produce correct results but sometimes for wrong reasons. Shortcut learning, therefore, does not lead to good generalizations.</p><p><strong>Abstract concepts. </strong>Deep learning systems can’t learn abstract concepts and therefore can’t transfer what they have learned to entirely different situations.</p><p><strong>Adversarial Perturbations. </strong>These are specially engineered changes in the input that may be irrelevant to humans but can fool the system into making errors. Systems based on shortcut learning are vulnerable to adversarial perturbations.</p><p>From their errors and vulnerabilities, we know that these systems don’t actually “understand” — or at least in human terms, whatever they do is not understanding.</p><p>So what can we do? Add more layers? Add more data? Or are we missing something more fundamental?</p><h3>Fallacies</h3><p>Melanie Mitchell has listed four fallacies in our thinking about AI. Following are my highlights from those fallacies.</p><h4>Fallacy 1: Narrow intelligence is on a continuum with general intelligence</h4><p>If people see a machine do something amazing they assume that it is another step towards a general AI. Any minor progress is assumed to be in the continuum with general intelligence.</p><p>Stuart Dreyfus’s analogy, quoted in the <a href="https://arxiv.org/abs/2104.12871?source=techstories.org">paper</a>, summarized it perfectly.</p><blockquote>“It was like claiming that the<br>first monkey that climbed a tree was making progress towards landing on the moon”</blockquote><h4>Fallacy 2: Easy things are easy and hard things are hard</h4><p>What’s easy for us, turns out to be hard for machines. The assumption that what we can do without much thought will be easy for the machines underestimated a lot about our abilities.</p><p>On the other side, machines can easily do certain things — like playing go, chess, and translating between hundreds of languages — which are extremely hard for us.</p><p>The following is quoted from the <a href="https://arxiv.org/abs/2104.12871?source=techstories.org">paper</a>.</p><blockquote>While John McCarthy lamented that “AI was harder than we thought,” Marvin Minsky explained that this is<br>because “easy things are hard”.</blockquote><blockquote>“Moravec’s paradox,” named after roboticist Hans Moravec, who wrote, “It is comparatively easy to make<br>computers exhibit adult level performance on intelligence tests or playing checkers, and difficult or impossible<br>to give them the skills of a one-year-old when it comes to perception and mobility”</blockquote><p>We are unaware of the complexities of our thought processes, and that makes it harder for us to create AI which can do the same.</p><h4>Fallacy 3: The lure of wishful mnemonics</h4><p>Certain mnemonics — like UNDERSTAND, and GOAL — can be misleading.</p><p>Names of certain benchmarks, like “Stanford Question Answering Dataset”, “RACE Reading Comprehension Dataset”, can mislead people into drawing certain conclusions. These benchmarks don’t measure the general abilities mentioned in the names of those datasets. Moreover, they allow machines to learn shortcuts.</p><h4>Fallacy 4: Intelligence is all in the brain</h4><p>Several ideas assume that intelligence is something that can be separated from the body.</p><p><em>Information Processing Model of Mind (Psychology). </em>It assumes that the mind is kind of a computer, it takes input, processes it, and outputs information. It also states that the only function of the body is input(perception) and output(behavior).</p><p><em>Physical Symbol System Hypothesis (PSSH)</em>. It assumes that a physical system has all the sufficient means for general intelligence. This is the founding principle of the symbolic approach to AI.</p><p>Today’s deep neural nets also assume that intelligence is solely a function of the brain. This assumption has led to the speculation that to achieve human-level intelligence we just need to scale the machines to match the brain’s computing power.</p><p>Then some theories assume that intelligence cannot be separated from the body.</p><p><em>Embodied Cognition. </em>Says that the representation of conceptual knowledge is dependent on the body. And our brain and body work together to have cognition.</p><h3>Conclusion</h3><p>Quoted from the <a href="https://arxiv.org/abs/2104.12871?source=techstories.org">original paper</a>.</p><blockquote>The four fallacies I have described reveal flaws in our conceptualizations of the current state of AI and our<br>limited intuitions about the nature of intelligence. I have argued that these fallacies are at least in part why<br>capturing humanlike intelligence in machines always turns out to be harder than we think.</blockquote><p>I agree with the fallacies she has listed. Especially Fallacy-4, I think we exist in this world with both our body and mind. Separating the mind from the body will yield an incomplete copy of our intelligence. It will be intelligent — and in a sense, perhaps more than us — but it won’t just be <strong>humanlike</strong>.</p><p>If you want to know more, watch the following video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FA8m1Oqz2HKc%3Fstart%3D8468%26feature%3Doembed%26start%3D8468&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DA8m1Oqz2HKc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FA8m1Oqz2HKc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/d17a6f5e886879a854d7835c9be02634/href">https://medium.com/media/d17a6f5e886879a854d7835c9be02634/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c0f4ee5403f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/incerto-technologies/summary-why-ai-is-harder-than-we-think-5c0f4ee5403f">Summary: Why AI is Harder Than We Think</a> was originally published in <a href="https://medium.com/incerto-technologies">Incerto Technologies</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>