<?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 Emma Y on Medium]]></title>
        <description><![CDATA[Stories by Emma Y on Medium]]></description>
        <link>https://medium.com/@watermark1983?source=rss-71110544769------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*pIYomFuB5u41EyYEJxQQ1g@2x.jpeg</url>
            <title>Stories by Emma Y on Medium</title>
            <link>https://medium.com/@watermark1983?source=rss-71110544769------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:14:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@watermark1983/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[Echoes of the Wild: The Grand Canyon, American Primeval,and the Eternal Allure of the Untamed Wes]]></title>
            <link>https://medium.com/@watermark1983/echoes-of-the-wild-the-grand-canyon-american-primeval-and-the-eternal-allure-of-the-untamed-wes-33cf3c76cedf?source=rss-71110544769------2</link>
            <guid isPermaLink="false">https://medium.com/p/33cf3c76cedf</guid>
            <dc:creator><![CDATA[Emma Y]]></dc:creator>
            <pubDate>Wed, 26 Feb 2025 04:21:58 GMT</pubDate>
            <atom:updated>2025-02-26T04:21:58.178Z</atom:updated>
            <content:encoded><![CDATA[<p>Standing at the edge of the Grand Canyon, I felt the weight of eternity. The air was thin, crisp, and carried the faint scent of juniper and sunbaked stone. Below me, the Colorado River snaked through a labyrinth of cliffs, their layers of rust, amber, and charcoal glowing like embers under the midday sun. It was a landscape that seemed to defy time itself — a monument to the slow, relentless dance of erosion and uplift that had carved its way through epochs. Months later, as I watched *American Primeval*, Netflix’s visceral portrayal of 19th-century frontier life, those same primal emotions surged back. The show’s unflinching depiction of humanity’s struggle against — and within — the wilderness reignited my obsession with the mythos of the American West, a place where beauty and brutality, reverence and recklessness, exist in paradoxical harmony.</p><p>### **The Canyon as a Chronicle**</p><p>The Grand Canyon is not merely a geological marvel; it is a living archive. Every stratum of rock whispers stories of ancient seas, shifting continents, and the birth of mountains. As I descended the Bright Angel Trail, the temperature rose with each switchback, and the canyon walls closed in, their shadows deepening into purples and blues. At Plateau Point, I sat cross-legged on the rim, watching the river churn far below. The silence was profound, broken only by the occasional rustle of a lizard or the distant echo of a raven’s cry. In that moment, the canyon felt less like a destination and more like a threshold — a gateway to a world untethered from modernity’s noise.</p><p>This sensation of timelessness is what *American Primeval* so masterfully evokes. The series, set in the 1800s, strips away the romantic veneer often applied to Western tales. Instead, it plunges viewers into a world where survival is a daily gamble, and morality bends like a sapling in a storm. One scene, in which a fur trapper negotiates with a band of outlaws under a blood-red sunset, mirrors the canyon’s own duality: beauty and danger, inextricably linked. The trapper’s desperation — his gritted teeth and wary eyes — echoed the pioneers and Indigenous peoples who once navigated these same cliffs, their lives dictated by the land’s whims.</p><p>### **The West as a Character**</p><p>What struck me most about the Grand Canyon, and what *American Primeval* reinforces, is that the West itself is the protagonist of its own story. The land is not a passive backdrop but an active, often merciless force. In the series, the wilderness is a character — a looming presence that shapes decisions, forges alliances, and breaks spirits. A haunting sequence follows a settler family as they trek through a blizzard, their wagon wheels sinking into snowdrifts. The camera lingers on the vast, white expanse, reducing the humans to specks of futility. It’s a visual echo of my own hike into the canyon’s depths, where the sheer scale of the cliffs made me feel infinitesimal, a fleeting blip in the Earth’s memory.</p><p>This humbling realization — that nature operates on a timescale beyond human comprehension — is central to the Western ethos. The Grand Canyon’s rocks, some two billion years old, predate every human story ever told. They will outlast us, too. Yet, like the characters in *American Primeval*, we are drawn to such places precisely because they remind us of our fragility. The trappers, outlaws, and settlers of the show are not heroes or villains; they are survivors, their lives pared down to the essentials of hunger, fear, and fleeting triumph. Similarly, standing on the canyon’s edge, I felt a raw, almost primal clarity: in the face of such grandeur, pretense falls away. All that remains is the instinct to endure.</p><p>### **The Paradox of the Frontier**</p><p>My obsession with the West is rooted in its contradictions. The Grand Canyon is both a symbol of natural harmony and a testament to violent upheaval. Its layers were forged by colliding tectonic plates, volcanic eruptions, and the slow scrape of glaciers — forces as destructive as they are creative. Likewise, *American Primeval* does not shy away from the darker threads of Western history: the displacement of Native tribes, the exploitation of land, the moral compromises of survival. In one harrowing scene, a Shoshone elder confronts a settler, his voice trembling with grief as he gestures to the pillaged forest around them. “You see timber,” he says. “I see graves.”</p><p>This tension — between reverence for the land and the human impulse to dominate it — lies at the heart of the Western narrative. The canyon, too, bears the scars of this struggle. Petroglyphs etched by Ancestral Puebloans share space with graffiti from 19th-century explorers. Tourists snap selfies on the same cliffs where Indigenous guides once led expeditions. To love the West is to grapple with its legacy: the awe it inspires and the blood it has absorbed.</p><p>### **A Palimpsest of Time and Memory**</p><p>In the quiet hours after sunset, when the canyon’s rim is bathed in starlight, the past feels palpably close. I once joined a ranger-led talk under a Milky Way-streaked sky, where she described how the canyon’s rocks hold fossils of trilobites, ferns, and ancient sharks — remnants of worlds long gone. “This place is a museum,” she said, “but the exhibits are written in stone.”</p><p>*American Primeval* taps into this same layering of time. The show’s non-linear storytelling weaves together past and present, suggesting that the frontier is not a fixed era but a recurring state of mind. In one poignant flashback, a weary soldier recalls his childhood in a decimated Cherokee village, his voiceover overlapping with images of the canyon’s moonlit mesas. The effect is haunting, as if the land itself remembers.</p><p>### **The Call of the Wild**</p><p>Why does the West still captivate us? Perhaps because it mirrors our own contradictions. The Grand Canyon is both a sanctuary and a challenge; *American Primeval* is both a cautionary tale and an ode to resilience. To stand on the canyon’s edge or to watch the show’s characters vanish into a pine-studded horizon is to confront the same questions: What does it mean to be small in a vast world? Can we ever truly conquer the wild, or does it conquer us?</p><p>My journey to the Grand Canyon, paired with the raw storytelling of *American Primeval*, has left me with more than memories. It has left me with a reckoning. The West is not a myth to be romanticized or a history to be whitewashed. It is a living, breathing paradox — a place where awe and humility, destruction and creation, coexist. And perhaps that is its greatest lesson: in the face of such wildness, we are forced to see ourselves clearly — not as masters of the land, but as fleeting participants in its eternal story.</p><p>The canyon’s cliffs, stained with the hues of countless sunsets, will outlast every human footprint. But in their shadows, we find something indelible: the recognition that to be humbled by the wild is to be truly alive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33cf3c76cedf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Knowledge Summary about AWS EKS]]></title>
            <link>https://medium.com/@watermark1983/knowledge-summary-about-aws-eks-28d67d9257f7?source=rss-71110544769------2</link>
            <guid isPermaLink="false">https://medium.com/p/28d67d9257f7</guid>
            <dc:creator><![CDATA[Emma Y]]></dc:creator>
            <pubDate>Sun, 10 Mar 2024 14:50:26 GMT</pubDate>
            <atom:updated>2024-03-10T16:59:25.812Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Refer to :<a href="https://stackoverflow.com/questions/62919701/in-aws-eks-how-to-install-and-access-etcd-kube-apiserver-and-other-things">https://stackoverflow.com/questions/62919701/in-aws-eks-how-to-install-and-access-etcd-kube-apiserver-and-other-things</a></li></ol><p><em>AWS EKS is a managed kubernetes offering. Kubernetes control plane components such as API Server, ETCD are installed, managed and upgraded by AWS. Hence you can neither see these components nor can </em><em>exec into these components.</em></p><p><em>In AWS EKS you can only play with the worker nodes</em></p><p>2. AWS EKS alb &amp; nlb:</p><p>Refer: <a href="https://aws.amazon.com/blogs/containers/exposing-kubernetes-applications-part-1-service-and-ingress-resources/">https://aws.amazon.com/blogs/containers/exposing-kubernetes-applications-part-1-service-and-ingress-resources/</a></p><p><a href="https://aws.amazon.com/blogs/containers/exposing-kubernetes-applications-part-2-aws-load-balancer-controller/">https://aws.amazon.com/blogs/containers/exposing-kubernetes-applications-part-2-aws-load-balancer-controller/</a></p><p>nlb: <a href="https://aws.amazon.com/blogs/opensource/network-load-balancer-nginx-ingress-controller-eks/">https://aws.amazon.com/blogs/opensource/network-load-balancer-nginx-ingress-controller-eks/</a></p><p>example: <a href="https://www.eksworkshop.com/docs/fundamentals/exposing/loadbalancer/adding-lb">https://www.eksworkshop.com/docs/fundamentals/exposing/loadbalancer/adding-lb</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28d67d9257f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[install MLflow with minikube]]></title>
            <link>https://medium.com/@watermark1983/install-mlflow-with-minikube-0c1477f42817?source=rss-71110544769------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c1477f42817</guid>
            <category><![CDATA[mlflow]]></category>
            <dc:creator><![CDATA[Emma Y]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 23:31:00 GMT</pubDate>
            <atom:updated>2024-01-28T23:37:26.093Z</atom:updated>
            <content:encoded><![CDATA[<p>install MLflow with minikube</p><p>Dockerfile: create image: watermark2012/emmaflow:1.0</p><pre># Defining base image<br>FROM python:3.9.2-slim<br># Installing MLflow from PyPi<br>RUN pip install mlflow<br>EXPOSE 5000<br>ENTRYPOINT [&quot;mlflow&quot;, &quot;server&quot;]</pre><ol><li>create PVC with storageClass:Standard</li></ol><pre># Actually this pvc is not used in this example, in the example: volumes is not create on this PVC<br>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br>  name: mlflow-pvc<br>  namespace: flow<br>spec:<br>  storageClassName: standard<br>  accessModes:<br>  - ReadWriteMany<br>  resources:<br>    requests:<br>      storage: 500Mi</pre><pre>minikube mount /Users/emma/Projects/poc/mlops/mlflow/pvc:/mlflow</pre><p>2. create deployment.yaml</p><pre># Creating MLflow deployment<br>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: mlflow-deployment<br>  namespace: flow<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: mlflow-deployment<br>  template:<br>    metadata:<br>      labels:<br>        app: mlflow-deployment<br>    spec:<br>      volumes:<br>        - name: mlflow-pvc<br>          hostPath: <br>            path: /mlflow<br>            type: Directory<br>      containers:<br>      - name: mlflow-deployment<br>        image: watermark2012/emmaflow:1.0<br>        imagePullPolicy: Always<br>        args:<br>        - --host=0.0.0.0<br>        - --port=5000<br>        - --backend-store-uri=/opt/mlflow/backend/<br>        - --default-artifact-root=/opt/mlflow/artifacts/<br>        - --workers=2<br>        ports:<br>        - name: http<br>          containerPort: 5000<br>          protocol: TCP<br>        volumeMounts:<br>        - name: mlflow-pvc<br>          mountPath: /opt/mlflow/</pre><p>3. create service</p><pre>k expose deployment mlflow-deployment --name mlflowserver</pre><p>4. check pods status, you can always use :</p><p>{k logs podname} to check if anything wrong that stop POD running successfully</p><pre>k get pods -n flow</pre><p>5. Minikube isn’t setup to handle ingress right out of the box ,so need to run below command to enable ingress, but in myside it always give error with below command: still need to troubleshoot.</p><p>And the workaround solution for me is:</p><pre>minikube addons enable ingress  # NOT be able to run it successfully<br><br>kubectl port-forward -n flow svc/mlflowserver 8081:5000</pre><p>6. Create one simple python locally, with example codes below:</p><pre>import mlflow<br><br>mlflow.set_tracking_uri(&quot;http://localhost:8081&quot;)<br>mlflow.set_experiment(&quot;check-localhost-connection&quot;)<br><br>with mlflow.start_run():<br>    mlflow.log_metric(&quot;foo&quot;, 1)<br>    mlflow.log_metric(&quot;bar&quot;, 2)</pre><p>And you will be able to see the status in experiment :check-localhost-connection in MLFlow-UI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c1477f42817" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install airflow  with minikube]]></title>
            <link>https://medium.com/@watermark1983/install-airflow-with-minikube-b98da6ab700d?source=rss-71110544769------2</link>
            <guid isPermaLink="false">https://medium.com/p/b98da6ab700d</guid>
            <dc:creator><![CDATA[Emma Y]]></dc:creator>
            <pubDate>Sat, 20 Jan 2024 23:48:41 GMT</pubDate>
            <atom:updated>2024-02-29T02:52:47.092Z</atom:updated>
            <content:encoded><![CDATA[<h3>Install airflow with minikube</h3><p>[WIP] Personal experience: It seems it is better to install “The official Helm chart “ rather than “Airflow Helm Chart (User Community)” on minikube</p><p>Some Key points:</p><ol><li>the user name that will be used “airflow upgrade db” should be the owner of the database</li><li>Since this is running locally with minikube, and how to create dags locally and mount on the airflow running on minikube ? An easy way is to use “minikube mount “ that map the local host path with cluster host path.</li></ol><p>eg: Stored all dags : /home/{username}/dags locally . Below command will help to do the mapping</p><p>minikube mount /home/{username}/dags/:/mnt/airflow/dags</p><p>Created volume with below configuration , and then refer to this volume in the container will able to upload the local dags files on k8s</p><h4>hostPath: (this means the cluster path of k8s)</h4><h4>path: /mnt/airflow/dags</h4><h4>type: Directory</h4><p>value.yaml</p><pre># Licensed to the Apache Software Foundation (ASF) under one<br># or more contributor license agreements.  See the NOTICE file<br># distributed with this work for additional information<br># regarding copyright ownership.  The ASF licenses this file<br># to you under the Apache License, Version 2.0 (the<br># &quot;License&quot;); you may not use this file except in compliance<br># with the License.  You may obtain a copy of the License at<br>#<br>#   http://www.apache.org/licenses/LICENSE-2.0<br>#<br># Unless required by applicable law or agreed to in writing,<br># software distributed under the License is distributed on an<br># &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<br># KIND, either express or implied.  See the License for the<br># specific language governing permissions and limitations<br># under the License.<br>---<br># Default values for airflow.<br># This is a YAML-formatted file.<br># Declare variables to be passed into your templates.<br><br># Provide a name to substitute for the full names of resources<br>fullnameOverride: &quot;&quot;<br><br># Provide a name to substitute for the name of the chart<br>nameOverride: &quot;&quot;<br><br># Use standard naming for all resources using airflow.fullname template<br># Consider removing this later and default it to true<br># to make this chart follow standard naming conventions using the fullname template.<br># For now this is an opt-in switch for backwards compatibility to leverage the standard naming convention<br># and being able to use fully fullnameOverride and nameOverride in all resources<br># For new installations - it is recommended to set it to True to follow standard naming conventions<br># For existing installations, this will rename and redeploy your resources with the new names. Be aware that<br># this will recreate your deployment/statefulsets along with their persistent volume claims and data storage<br># migration may be needed to keep your old data<br>#<br># Note:fernet-key,redis-password and broker-url secrets don&#39;t use this logic yet,<br># as this may break existing installations due to how they get installed via pre-install hook.<br>useStandardNaming: false<br><br># Max number of old replicasets to retain. Can be overridden by each deployment&#39;s revisionHistoryLimit<br>revisionHistoryLimit: ~<br><br># User and group of airflow user<br>uid: 50000<br>gid: 0<br><br># Default security context for airflow (deprecated, use `securityContexts` instead)<br>securityContext: {}<br>#  runAsUser: 50000<br>#  fsGroup: 0<br>#  runAsGroup: 0<br><br># Detailed default security context for airflow deployments<br>securityContexts:<br>  pod: {}<br>  containers: {}<br><br># Default container lifecycle hooks for every service except for redis, statsd and pgbouncer.<br>containerLifecycleHooks: {}<br><br># Airflow home directory<br># Used for mount paths<br>airflowHome: /opt/airflow<br><br># Default airflow repository -- overridden by all the specific images below<br>defaultAirflowRepository: apache/airflow<br><br># Default airflow tag to deploy<br>defaultAirflowTag: &quot;2.7.1&quot;<br><br># Default airflow digest. If specified, it takes precedence over tag<br>defaultAirflowDigest: ~<br><br># Airflow version (Used to make some decisions based on Airflow Version being deployed)<br>airflowVersion: &quot;2.7.1&quot;<br><br># Images<br>images:<br>  airflow:<br>    repository: apache/airflow<br>    tag: 2.7.1<br>    # Specifying digest takes precedence over tag.<br>    digest: ~<br>    pullPolicy: IfNotPresent<br>  # To avoid images with user code, you can turn this to &#39;true&#39; and<br>  # all the &#39;run-airflow-migrations&#39; and &#39;wait-for-airflow-migrations&#39; containers/jobs<br>  # will use the images from &#39;defaultAirflowRepository:defaultAirflowTag&#39; values<br>  # to run and wait for DB migrations .<br>  useDefaultImageForMigration: false<br>  # timeout (in seconds) for airflow-migrations to complete<br>  migrationsWaitTimeout: 60<br>  pod_template:<br>    # Note that `images.pod_template.repository` and `images.pod_template.tag` parameters<br>    # can be overridden in `config.kubernetes` section. So for these parameters to have effect<br>    # `config.kubernetes.worker_container_repository` and `config.kubernetes.worker_container_tag`<br>    # must be not set .<br>    repository: ~<br>    tag: ~<br>    pullPolicy: IfNotPresent<br>  flower:<br>    repository: ~<br>    tag: ~<br>    pullPolicy: IfNotPresent<br>  statsd:<br>    repository: quay.io/prometheus/statsd-exporter<br>    tag: v0.22.8<br>    pullPolicy: IfNotPresent<br>  redis:<br>    repository: redis<br>    tag: 7-bullseye<br>    pullPolicy: IfNotPresent<br>  pgbouncer:<br>    repository: apache/airflow<br>    tag: airflow-pgbouncer-2023.02.24-1.16.1<br>    pullPolicy: IfNotPresent<br>  pgbouncerExporter:<br>    repository: apache/airflow<br>    tag: airflow-pgbouncer-exporter-2023.02.21-0.14.0<br>    pullPolicy: IfNotPresent<br>  gitSync:<br>    repository: registry.k8s.io/git-sync/git-sync<br>    tag: v3.6.9<br>    pullPolicy: IfNotPresent<br><br># Select certain nodes for airflow pods.<br>nodeSelector: {}<br>affinity: {}<br>tolerations: []<br>topologySpreadConstraints: []<br>schedulerName: ~<br><br># Add common labels to all objects and pods defined in this chart.<br>labels: {}<br><br># Ingress configuration<br>ingress:<br>  # Enable all ingress resources (deprecated - use ingress.web.enabled and ingress.flower.enabled)<br>  enabled: ~<br><br>  # Configs for the Ingress of the web Service<br>  web:<br>    # Enable web ingress resource<br>    enabled: false<br><br>    # Annotations for the web Ingress<br>    annotations: {}<br><br>    # The path for the web Ingress<br>    path: &quot;/&quot;<br><br>    # The pathType for the above path (used only with Kubernetes v1.19 and above)<br>    pathType: &quot;ImplementationSpecific&quot;<br><br>    # The hostname for the web Ingress (Deprecated - renamed to `ingress.web.hosts`)<br>    host: &quot;&quot;<br><br>    # The hostnames or hosts configuration for the web Ingress<br>    hosts: []<br>    #   # The hostname for the web Ingress (can be templated)<br>    # - name: &quot;&quot;<br>    #   # configs for web Ingress TLS<br>    #   tls:<br>    #     # Enable TLS termination for the web Ingress<br>    #     enabled: false<br>    #     # the name of a pre-created Secret containing a TLS private key and certificate<br>    #     secretName: &quot;&quot;<br><br>    # The Ingress Class for the web Ingress (used only with Kubernetes v1.19 and above)<br>    ingressClassName: &quot;&quot;<br><br>    # configs for web Ingress TLS (Deprecated - renamed to `ingress.web.hosts[*].tls`)<br>    tls:<br>      # Enable TLS termination for the web Ingress<br>      enabled: false<br>      # the name of a pre-created Secret containing a TLS private key and certificate<br>      secretName: &quot;&quot;<br><br>    # HTTP paths to add to the web Ingress before the default path<br>    precedingPaths: []<br><br>    # Http paths to add to the web Ingress after the default path<br>    succeedingPaths: []<br><br>  # Configs for the Ingress of the flower Service<br>  flower:<br>    # Enable web ingress resource<br>    enabled: false<br><br>    # Annotations for the flower Ingress<br>    annotations: {}<br><br>    # The path for the flower Ingress<br>    path: &quot;/&quot;<br><br>    # The pathType for the above path (used only with Kubernetes v1.19 and above)<br>    pathType: &quot;ImplementationSpecific&quot;<br><br>    # The hostname for the flower Ingress (Deprecated - renamed to `ingress.flower.hosts`)<br>    host: &quot;&quot;<br><br>    # The hostnames or hosts configuration for the flower Ingress<br>    hosts: []<br>    #   # The hostname for the flower Ingress (can be templated)<br>    # - name: &quot;&quot;<br>    #   tls:<br>    #     # Enable TLS termination for the flower Ingress<br>    #     enabled: false<br>    #     # the name of a pre-created Secret containing a TLS private key and certificate<br>    #     secretName: &quot;&quot;<br><br>    # The Ingress Class for the flower Ingress (used only with Kubernetes v1.19 and above)<br>    ingressClassName: &quot;&quot;<br><br>    # configs for flower Ingress TLS (Deprecated - renamed to `ingress.flower.hosts[*].tls`)<br>    tls:<br>      # Enable TLS termination for the flower Ingress<br>      enabled: false<br>      # the name of a pre-created Secret containing a TLS private key and certificate<br>      secretName: &quot;&quot;<br><br># Network policy configuration<br>networkPolicies:<br>  # Enabled network policies<br>  enabled: false<br><br># Extra annotations to apply to all<br># Airflow pods<br>airflowPodAnnotations: {}<br><br># Extra annotations to apply to<br># main Airflow configmap<br>airflowConfigAnnotations: {}<br><br># `airflow_local_settings` file as a string (can be templated).<br>airflowLocalSettings: |-<br>  {{- if semverCompare &quot;&gt;=2.2.0&quot; .Values.airflowVersion }}<br>  {{- if not (or .Values.webserverSecretKey .Values.webserverSecretKeySecretName) }}<br>  from airflow.www.utils import UIAlert<br><br>  DASHBOARD_UIALERTS = [<br>    UIAlert(<br>      &#39;Usage of a dynamic webserver secret key detected. We recommend a static webserver secret key instead.&#39;<br>      &#39; See the &lt;a href=&#39;<br>      &#39;&quot;https://airflow.apache.org/docs/helm-chart/stable/production-guide.html#webserver-secret-key&quot;&gt;&#39;<br>      &#39;Helm Chart Production Guide&lt;/a&gt; for more details.&#39;,<br>      category=&quot;warning&quot;,<br>      roles=[&quot;Admin&quot;],<br>      html=True,<br>    )<br>  ]<br>  {{- end }}<br>  {{- end }}<br><br># Enable RBAC (default on most clusters these days)<br>rbac:<br>  # Specifies whether RBAC resources should be created<br>  create: true<br>  createSCCRoleBinding: false<br><br># Airflow executor<br># One of: LocalExecutor, LocalKubernetesExecutor, CeleryExecutor, KubernetesExecutor, CeleryKubernetesExecutor<br>executor: &quot;CeleryExecutor&quot;<br><br># If this is true and using LocalExecutor/KubernetesExecutor/CeleryKubernetesExecutor, the scheduler&#39;s<br># service account will have access to communicate with the api-server and launch pods.<br># If this is true and using CeleryExecutor/KubernetesExecutor/CeleryKubernetesExecutor, the workers<br># will be able to launch pods.<br>allowPodLaunching: true<br><br># Environment variables for all airflow containers<br>env: []<br># - name: &quot;&quot;<br>#   value: &quot;&quot;<br><br># Volumes for all airflow containers<br>volumes: []<br><br># VolumeMounts for all airflow containers<br>volumeMounts: []<br><br># Secrets for all airflow containers<br>secret: []<br># - envName: &quot;&quot;<br>#   secretName: &quot;&quot;<br>#   secretKey: &quot;&quot;<br><br># Enables selected built-in secrets that are set via environment variables by default.<br># Those secrets are provided by the Helm Chart secrets by default but in some cases you<br># might want to provide some of those variables with _CMD or _SECRET variable, and you should<br># in this case disable setting of those variables by setting the relevant configuration to false.<br>enableBuiltInSecretEnvVars:<br>  AIRFLOW__CORE__FERNET_KEY: true<br>  # For Airflow &lt;2.3, backward compatibility; moved to [database] in 2.3<br>  AIRFLOW__CORE__SQL_ALCHEMY_CONN: true<br>  AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: true<br>  AIRFLOW_CONN_AIRFLOW_DB: true<br>  AIRFLOW__WEBSERVER__SECRET_KEY: true<br>  AIRFLOW__CELERY__CELERY_RESULT_BACKEND: true<br>  AIRFLOW__CELERY__RESULT_BACKEND: true<br>  AIRFLOW__CELERY__BROKER_URL: true<br>  AIRFLOW__ELASTICSEARCH__HOST: true<br>  AIRFLOW__ELASTICSEARCH__ELASTICSEARCH_HOST: true<br><br># Priority Classes that will be installed by charts.<br># Ideally, there should be an entry for dagProcessor, flower,<br>#   pgbouncer, scheduler, statsd, triggerer, webserver, worker.<br># The format for priorityClasses is an array with each element having:<br>#   * name is the name of the priorityClass. Ensure the same name is given to the respective section as well<br>#   * preemptionPolicy for the priorityClass<br>#   * value is the preemption value for the priorityClass<br>priorityClasses: []<br>#  - name: class1 (if this is for dagProcessor, ensure overriding .Values.dagProcessor.priorityClass too)<br>#    preemptionPolicy: PreemptLowerPriority<br>#    value: 10000<br>#  - name: class2<br>#    preemptionPolicy: Never<br>#    value: 100000<br><br># Extra secrets that will be managed by the chart<br># (You can use them with extraEnv or extraEnvFrom or some of the extraVolumes values).<br># The format for secret data is &quot;key/value&quot; where<br>#    * key (can be templated) is the name of the secret that will be created<br>#    * value: an object with the standard &#39;data&#39; or &#39;stringData&#39; key (or both).<br>#          The value associated with those keys must be a string (can be templated)<br>extraSecrets: {}<br># eg:<br># extraSecrets:<br>#   &#39;{{ .Release.Name }}-airflow-connections&#39;:<br>#     type: &#39;Opaque&#39;<br>#     labels:<br>#       my.custom.label/v1: my_custom_label_value_1<br>#     data: |<br>#       AIRFLOW_CONN_GCP: &#39;base64_encoded_gcp_conn_string&#39;<br>#       AIRFLOW_CONN_AWS: &#39;base64_encoded_aws_conn_string&#39;<br>#     stringData: |<br>#       AIRFLOW_CONN_OTHER: &#39;other_conn&#39;<br>#   &#39;{{ .Release.Name }}-other-secret-name-suffix&#39;:<br>#     data: |<br>#        ...<br><br># Extra ConfigMaps that will be managed by the chart<br># (You can use them with extraEnv or extraEnvFrom or some of the extraVolumes values).<br># The format for configmap data is &quot;key/value&quot; where<br>#    * key (can be templated) is the name of the configmap that will be created<br>#    * value: an object with the standard &#39;data&#39; key.<br>#          The value associated with this keys must be a string (can be templated)<br>extraConfigMaps: {}<br># eg:<br># extraConfigMaps:<br>#   &#39;{{ .Release.Name }}-airflow-variables&#39;:<br>#     labels:<br>#       my.custom.label/v2: my_custom_label_value_2<br>#     data: |<br>#       AIRFLOW_VAR_HELLO_MESSAGE: &quot;Hi!&quot;<br>#       AIRFLOW_VAR_KUBERNETES_NAMESPACE: &quot;{{ .Release.Namespace }}&quot;<br><br># Extra env &#39;items&#39; that will be added to the definition of airflow containers<br># a string is expected (can be templated).<br># TODO: difference from `env`? This is a templated string. Probably should template `env` and remove this.<br>extraEnv: ~<br># eg:<br># extraEnv: |<br>#   - name: AIRFLOW__CORE__LOAD_EXAMPLES<br>#     value: &#39;True&#39;<br><br># Extra envFrom &#39;items&#39; that will be added to the definition of airflow containers<br># A string is expected (can be templated).<br>extraEnvFrom: ~<br># eg:<br># extraEnvFrom: |<br>#   - secretRef:<br>#       name: &#39;{{ .Release.Name }}-airflow-connections&#39;<br>#   - configMapRef:<br>#       name: &#39;{{ .Release.Name }}-airflow-variables&#39;<br><br># Airflow database &amp; redis config<br>data:<br>  # If secret names are provided, use those secrets<br>  # These secrets must be created manually, eg:<br>  #<br>  # kind: Secret<br>  # apiVersion: v1<br>  # metadata:<br>  #   name: custom-airflow-metadata-secret<br>  # type: Opaque<br>  # data:<br>  #   connection: base64_encoded_connection_string<br><br>  metadataSecretName: ~<br>  # When providing secret names and using the same database for metadata and<br>  # result backend, for Airflow &lt; 2.4.0 it is necessary to create a separate<br>  # secret for result backend but with a db+ scheme prefix.<br>  # For Airflow &gt;= 2.4.0 it is possible to not specify the secret again,<br>  # as Airflow will use sql_alchemy_conn with a db+ scheme prefix by default.<br>  resultBackendSecretName: ~<br>  brokerUrlSecretName: ~<br><br>  # Otherwise pass connection values in<br>  metadataConnection:<br>    user: airflow_user <br>    pass: airflow<br>    protocol: postgresql<br>    host: host.minikube.internal<br>    port: 5433<br>    db: airflow<br>    sslmode: prefer<br>  # resultBackendConnection defaults to the same database as metadataConnection<br>  resultBackendConnection: ~<br>  # or, you can use a different database<br>  # resultBackendConnection:<br>  #   user: postgres<br>  #   pass: postgres<br>  #   protocol: postgresql<br>  #   host: ~<br>  #   port: 5432<br>  #   db: postgres<br>  #   sslmode: disable<br>  # Note: brokerUrl can only be set during install, not upgrade<br>  brokerUrl: ~<br><br># Fernet key settings<br># Note: fernetKey can only be set during install, not upgrade<br>fernetKey: ~<br>fernetKeySecretName: ~<br><br># Flask secret key for Airflow Webserver: `[webserver] secret_key` in airflow.cfg<br>webserverSecretKey: ~<br>webserverSecretKeySecretName: ~<br><br># In order to use kerberos you need to create secret containing the keytab file<br># The secret name should follow naming convention of the application where resources are<br># name {{ .Release-name }}-&lt;POSTFIX&gt;. In case of the keytab file, the postfix is &quot;kerberos-keytab&quot;<br># So if your release is named &quot;my-release&quot; the name of the secret should be &quot;my-release-kerberos-keytab&quot;<br>#<br># The Keytab content should be available in the &quot;kerberos.keytab&quot; key of the secret.<br>#<br>#  apiVersion: v1<br>#  kind: Secret<br>#  data:<br>#    kerberos.keytab: &lt;base64_encoded keytab file content&gt;<br>#  type: Opaque<br>#<br>#<br>#  If you have such keytab file you can do it with similar<br>#<br>#  kubectl create secret generic {{ .Release.name }}-kerberos-keytab --from-file=kerberos.keytab<br>#<br>#<br>#  Alternatively, instead of manually creating the secret, it is possible to specify<br>#  kerberos.keytabBase64Content parameter. This parameter should contain base64 encoded keytab.<br>#<br><br>kerberos:<br>  enabled: false<br>  ccacheMountPath: /var/kerberos-ccache<br>  ccacheFileName: cache<br>  configPath: /etc/krb5.conf<br>  keytabBase64Content: ~<br>  keytabPath: /etc/airflow.keytab<br>  principal: airflow@FOO.COM<br>  reinitFrequency: 3600<br>  config: |<br>    # This is an example config showing how you can use templating and how &quot;example&quot; config<br>    # might look like. It works with the test kerberos server that we are using during integration<br>    # testing at Apache Airflow (see `scripts/ci/docker-compose/integration-kerberos.yml` but in<br>    # order to make it production-ready you must replace it with your own configuration that<br>    # Matches your kerberos deployment. Administrators of your Kerberos instance should<br>    # provide the right configuration.<br><br>    [logging]<br>    default = &quot;FILE:{{ template &quot;airflow_logs_no_quote&quot; . }}/kerberos_libs.log&quot;<br>    kdc = &quot;FILE:{{ template &quot;airflow_logs_no_quote&quot; . }}/kerberos_kdc.log&quot;<br>    admin_server = &quot;FILE:{{ template &quot;airflow_logs_no_quote&quot; . }}/kadmind.log&quot;<br><br>    [libdefaults]<br>    default_realm = FOO.COM<br>    ticket_lifetime = 10h<br>    renew_lifetime = 7d<br>    forwardable = true<br><br>    [realms]<br>    FOO.COM = {<br>      kdc = kdc-server.foo.com<br>      admin_server = admin_server.foo.com<br>    }<br><br># Airflow Worker Config<br>workers:<br>  # Number of airflow celery workers in StatefulSet<br>  replicas: 1<br>  # Max number of old replicasets to retain<br>  revisionHistoryLimit: ~<br><br>  # Command to use when running Airflow workers (templated).<br>  command: ~<br>  # Args to use when running Airflow workers (templated).<br>  args:<br>    - &quot;bash&quot;<br>    - &quot;-c&quot;<br>    # The format below is necessary to get `helm lint` happy<br>    - |-<br>      exec \<br>      airflow {{ semverCompare &quot;&gt;=2.0.0&quot; .Values.airflowVersion | ternary &quot;celery worker&quot; &quot;worker&quot; }}<br><br>  # If the worker stops responding for 5 minutes (5*60s) kill the<br>  # worker and let Kubernetes restart it<br>  livenessProbe:<br>    enabled: true<br>    initialDelaySeconds: 10<br>    timeoutSeconds: 20<br>    failureThreshold: 5<br>    periodSeconds: 60<br>    command: ~<br><br>  # Update Strategy when worker is deployed as a StatefulSet<br>  updateStrategy: ~<br>  # Update Strategy when worker is deployed as a Deployment<br>  strategy:<br>    rollingUpdate:<br>      maxSurge: &quot;100%&quot;<br>      maxUnavailable: &quot;50%&quot;<br><br>  # When not set, the values defined in the global securityContext will be used<br>  securityContext: {}<br>  #  runAsUser: 50000<br>  #  fsGroup: 0<br>  #  runAsGroup: 0<br><br>  # Detailed default security context for worker deployments for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to worker kubernetes service account.<br>    annotations: {}<br><br>  # Allow KEDA autoscaling.<br>  keda:<br>    enabled: false<br>    namespaceLabels: {}<br><br>    # How often KEDA polls the airflow DB to report new scale requests to the HPA<br>    pollingInterval: 5<br><br>    # How many seconds KEDA will wait before scaling to zero.<br>    # Note that HPA has a separate cooldown period for scale-downs<br>    cooldownPeriod: 30<br><br>    # Minimum number of workers created by keda<br>    minReplicaCount: 0<br><br>    # Maximum number of workers created by keda<br>    maxReplicaCount: 10<br><br>    # Specify HPA related options<br>    advanced: {}<br>    # horizontalPodAutoscalerConfig:<br>    #   behavior:<br>    #     scaleDown:<br>    #       stabilizationWindowSeconds: 300<br>    #       policies:<br>    #         - type: Percent<br>    #           value: 100<br>    #           periodSeconds: 15<br><br>    # Query to use for KEDA autoscaling. Must return a single integer.<br>    query: &gt;-<br>      SELECT ceil(COUNT(*)::decimal / {{ .Values.config.celery.worker_concurrency }})<br>      FROM task_instance<br>      WHERE (state=&#39;running&#39; OR state=&#39;queued&#39;)<br>      {{- if eq .Values.executor &quot;CeleryKubernetesExecutor&quot; }}<br>      AND queue != &#39;{{ .Values.config.celery_kubernetes_executor.kubernetes_queue }}&#39;<br>      {{- end }}<br><br>    # Weather to use PGBouncer to connect to the database or not when it is enabled<br>    # This configuration will be ignored if PGBouncer is not enabled<br>    usePgbouncer: true<br><br>  persistence:<br>    # Enable persistent volumes<br>    enabled: true<br>    # Volume size for worker StatefulSet<br>    size: 100Gi<br>    # If using a custom storageClass, pass name ref to all statefulSets here<br>    storageClassName:<br>    # Execute init container to chown log directory.<br>    # This is currently only needed in kind, due to usage<br>    # of local-path provisioner.<br>    fixPermissions: false<br>    # Annotations to add to worker volumes<br>    annotations: {}<br>    # Detailed default security context for persistence for container level<br>    securityContexts:<br>      container: {}<br>    # container level lifecycle hooks<br>    containerLifecycleHooks: {}<br><br>  kerberosSidecar:<br>    # Enable kerberos sidecar<br>    enabled: false<br>    resources: {}<br>    #  limits:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    #  requests:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    # Detailed default security context for kerberosSidecar for container level<br>    securityContexts:<br>      container: {}<br>    # container level lifecycle hooks<br>    containerLifecycleHooks: {}<br><br>  resources: {}<br>  #  limits:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br>  #  requests:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br><br>  # Grace period for tasks to finish after SIGTERM is sent from kubernetes<br>  terminationGracePeriodSeconds: 600<br><br>  # This setting tells kubernetes that its ok to evict<br>  # when it wants to scale a node down.<br>  safeToEvict: true<br><br>  # Launch additional containers into worker.<br>  # Note: If used with KubernetesExecutor, you are responsible for signaling sidecars to exit when the main<br>  # container finishes so Airflow can continue the worker shutdown process!<br>  extraContainers: []<br>  # Add additional init containers into workers.<br>  extraInitContainers: []<br><br>  # Mount additional volumes into worker. It can be templated like in the following example:<br>  #   extraVolumes:<br>  #     - name: my-templated-extra-volume<br>  #       secret:<br>  #          secretName: &#39;{{ include &quot;my_secret_template&quot; . }}&#39;<br>  #          defaultMode: 0640<br>  #          optional: true<br>  #<br>  #   extraVolumeMounts:<br>  #     - name: my-templated-extra-volume<br>  #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>  #       readOnly: true<br>  extraVolumes: []<br>  extraVolumeMounts: []<br><br>  # Select certain nodes for airflow worker pods.<br>  nodeSelector: {}<br>  runtimeClassName: ~<br>  priorityClassName: ~<br>  affinity: {}<br>  # default worker affinity is:<br>  #  podAntiAffinity:<br>  #    preferredDuringSchedulingIgnoredDuringExecution:<br>  #    - podAffinityTerm:<br>  #        labelSelector:<br>  #          matchLabels:<br>  #            component: worker<br>  #        topologyKey: kubernetes.io/hostname<br>  #      weight: 100<br>  tolerations: []<br>  topologySpreadConstraints: []<br>  # hostAliases to use in worker pods.<br>  # See:<br>  # https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/<br>  hostAliases: []<br>  # - ip: &quot;127.0.0.2&quot;<br>  #   hostnames:<br>  #   - &quot;test.hostname.one&quot;<br>  # - ip: &quot;127.0.0.3&quot;<br>  #   hostnames:<br>  #   - &quot;test.hostname.two&quot;<br><br>  # annotations for the worker resource<br>  annotations: {}<br><br>  podAnnotations: {}<br><br>  # Labels specific to workers objects and pods<br>  labels: {}<br><br>  logGroomerSidecar:<br>    # Whether to deploy the Airflow worker log groomer sidecar.<br>    enabled: true<br>    # Command to use when running the Airflow worker log groomer sidecar (templated).<br>    command: ~<br>    # Args to use when running the Airflow worker log groomer sidecar (templated).<br>    args: [&quot;bash&quot;, &quot;/clean-logs&quot;]<br>    # Number of days to retain logs<br>    retentionDays: 15<br>    resources: {}<br>    #  limits:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    #  requests:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    # Detailed default security context for logGroomerSidecar for container level<br>    securityContexts:<br>      container: {}<br><br>  waitForMigrations:<br>    # Whether to create init container to wait for db migrations<br>    enabled: true<br>    env: []<br>    # Detailed default security context for waitForMigrations for container level<br>    securityContexts:<br>      container: {}<br><br>  env: []<br><br># Airflow scheduler settings<br>scheduler:<br>  #  hostAliases for the scheduler pod<br>  hostAliases: []<br>  #  - ip: &quot;127.0.0.1&quot;<br>  #    hostnames:<br>  #      - &quot;foo.local&quot;<br>  #  - ip: &quot;10.1.2.3&quot;<br>  #    hostnames:<br>  #      - &quot;foo.remote&quot;<br><br>  # If the scheduler stops heartbeating for 5 minutes (5*60s) kill the<br>  # scheduler and let Kubernetes restart it<br>  livenessProbe:<br>    initialDelaySeconds: 10<br>    timeoutSeconds: 20<br>    failureThreshold: 5<br>    periodSeconds: 60<br>    command: ~<br><br>  # Wait for at most 10 minutes (6*10s) for the scheduler container to startup.<br>  # livenessProbe kicks in after the startup<br>  startupProbe:<br>    failureThreshold: 6<br>    periodSeconds: 10<br>    timeoutSeconds: 20<br>    command: ~<br>  # Airflow 2.0 allows users to run multiple schedulers,<br>  # However this feature is only recommended for MySQL 8+ and Postgres<br>  replicas: 1<br>  # Max number of old replicasets to retain<br>  revisionHistoryLimit: ~<br><br>  # Command to use when running the Airflow scheduler (templated).<br>  command: ~<br>  # Args to use when running the Airflow scheduler (templated).<br>  args: [&quot;bash&quot;, &quot;-c&quot;, &quot;exec airflow scheduler&quot;]<br><br>  # Update Strategy when scheduler is deployed as a StatefulSet<br>  # (when using LocalExecutor and workers.persistence)<br>  updateStrategy: ~<br>  # Update Strategy when scheduler is deployed as a Deployment<br>  # (when not using LocalExecutor and workers.persistence)<br>  strategy: ~<br><br>  # When not set, the values defined in the global securityContext will be used<br>  # (deprecated, use `securityContexts` instead)<br>  securityContext: {}<br>  #  runAsUser: 50000<br>  #  fsGroup: 0<br>  #  runAsGroup: 0<br><br>  # Detailed default security context for scheduler deployments for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to scheduler kubernetes service account.<br>    annotations: {}<br><br>  # Scheduler pod disruption budget<br>  podDisruptionBudget:<br>    enabled: false<br><br>    # PDB configuration<br>    config:<br>      # minAvailable and maxUnavailable are mutually exclusive<br>      maxUnavailable: 1<br>      # minAvailable: 1<br><br>  resources: {}<br>  #  limits:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br>  #  requests:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br><br>  # This setting tells kubernetes that its ok to evict<br>  # when it wants to scale a node down.<br>  safeToEvict: true<br><br>  # Launch additional containers into scheduler.<br>  extraContainers: []<br>  # Add additional init containers into scheduler.<br>  extraInitContainers: []<br><br>  # Mount additional volumes into scheduler. It can be templated like in the following example:<br>  #   extraVolumes:<br>  #     - name: my-templated-extra-volume<br>  #       secret:<br>  #          secretName: &#39;{{ include &quot;my_secret_template&quot; . }}&#39;<br>  #          defaultMode: 0640<br>  #          optional: true<br>  #<br>  #   extraVolumeMounts:<br>  #     - name: my-templated-extra-volume<br>  #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>  #       readOnly: true<br>  extraVolumes: []<br>  extraVolumeMounts: []<br><br>  # Select certain nodes for airflow scheduler pods.<br>  nodeSelector: {}<br>  affinity: {}<br>  # default scheduler affinity is:<br>  #  podAntiAffinity:<br>  #    preferredDuringSchedulingIgnoredDuringExecution:<br>  #    - podAffinityTerm:<br>  #        labelSelector:<br>  #          matchLabels:<br>  #            component: scheduler<br>  #        topologyKey: kubernetes.io/hostname<br>  #      weight: 100<br>  tolerations: []<br>  topologySpreadConstraints: []<br><br>  priorityClassName: ~<br><br>  # annotations for scheduler deployment<br>  annotations: {}<br><br>  podAnnotations: {}<br><br>  # Labels specific to scheduler objects and pods<br>  labels: {}<br><br>  logGroomerSidecar:<br>    # Whether to deploy the Airflow scheduler log groomer sidecar.<br>    enabled: true<br>    # Command to use when running the Airflow scheduler log groomer sidecar (templated).<br>    command: ~<br>    # Args to use when running the Airflow scheduler log groomer sidecar (templated).<br>    args: [&quot;bash&quot;, &quot;/clean-logs&quot;]<br>    # Number of days to retain logs<br>    retentionDays: 15<br>    resources: {}<br>    #  limits:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    #  requests:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    # Detailed default security context for logGroomerSidecar for container level<br>    securityContexts:<br>      container: {}<br>    # container level lifecycle hooks<br>    containerLifecycleHooks: {}<br><br>  waitForMigrations:<br>    # Whether to create init container to wait for db migrations<br>    enabled: true<br>    env: []<br>    # Detailed default security context for waitForMigrations for container level<br>    securityContexts:<br>      container: {}<br><br>  env: []<br><br># Airflow create user job settings<br>createUserJob:<br>  # Limit the lifetime of the job object after it finished execution.<br>  ttlSecondsAfterFinished: 300<br>  # Command to use when running the create user job (templated).<br>  command: ~<br>  # Args to use when running the create user job (templated).<br>  args:<br>    - &quot;bash&quot;<br>    - &quot;-c&quot;<br>    # The format below is necessary to get `helm lint` happy<br>    - |-<br>      exec \<br>      airflow {{ semverCompare &quot;&gt;=2.0.0&quot; .Values.airflowVersion | ternary &quot;users create&quot; &quot;create_user&quot; }} &quot;$@&quot;<br>    - --<br>    - &quot;-r&quot;<br>    - &quot;{{ .Values.webserver.defaultUser.role }}&quot;<br>    - &quot;-u&quot;<br>    - &quot;{{ .Values.webserver.defaultUser.username }}&quot;<br>    - &quot;-e&quot;<br>    - &quot;{{ .Values.webserver.defaultUser.email }}&quot;<br>    - &quot;-f&quot;<br>    - &quot;{{ .Values.webserver.defaultUser.firstName }}&quot;<br>    - &quot;-l&quot;<br>    - &quot;{{ .Values.webserver.defaultUser.lastName }}&quot;<br>    - &quot;-p&quot;<br>    - &quot;{{ .Values.webserver.defaultUser.password }}&quot;<br><br>  # Annotations on the create user job pod<br>  annotations: {}<br>  # jobAnnotations are annotations on the create user job<br>  jobAnnotations: {}<br><br>  # Labels specific to createUserJob objects and pods<br>  labels: {}<br><br>  # When not set, the values defined in the global securityContext will be used<br>  securityContext: {}<br>  #  runAsUser: 50000<br>  #  fsGroup: 0<br>  #  runAsGroup: 0<br><br>  # Detailed default security context for createUserJob for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to create user kubernetes service account.<br>    annotations: {}<br><br>  # Launch additional containers into user creation job<br>  extraContainers: []<br><br>  # Mount additional volumes into user creation job. It can be templated like in the following example:<br>  #   extraVolumes:<br>  #     - name: my-templated-extra-volume<br>  #       secret:<br>  #          secretName: &#39;{{ include &quot;my_secret_template&quot; . }}&#39;<br>  #          defaultMode: 0640<br>  #          optional: true<br>  #<br>  #   extraVolumeMounts:<br>  #     - name: my-templated-extra-volume<br>  #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>  #       readOnly: true<br>  extraVolumes: []<br>  extraVolumeMounts: []<br><br>  nodeSelector: {}<br>  affinity: {}<br>  tolerations: []<br>  topologySpreadConstraints: []<br>  # In case you need to disable the helm hooks that create the jobs after install.<br>  # Disable this if you are using ArgoCD for example<br>  useHelmHooks: true<br>  applyCustomEnv: true<br><br>  env: []<br><br>  resources: {}<br>  #  limits:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br>  #  requests:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br><br># Airflow database migration job settings<br>migrateDatabaseJob:<br>  enabled: true<br>  # Limit the lifetime of the job object after it finished execution.<br>  ttlSecondsAfterFinished: 300<br>  # Command to use when running the migrate database job (templated).<br>  command: ~<br>  # Args to use when running the migrate database job (templated).<br>  args:<br>    - &quot;bash&quot;<br>    - &quot;-c&quot;<br>    - &gt;-<br>      exec \<br><br>      airflow {{ semverCompare &quot;&gt;=2.7.0&quot; .Values.airflowVersion<br>      | ternary &quot;db migrate&quot; (semverCompare &quot;&gt;=2.0.0&quot; .Values.airflowVersion<br>      | ternary &quot;db upgrade&quot; &quot;upgradedb&quot;) }}<br><br>  # Annotations on the database migration pod<br>  annotations: {}<br>  # jobAnnotations are annotations on the database migration job<br>  jobAnnotations: {}<br><br>  # When not set, the values defined in the global securityContext will be used<br>  securityContext: {}<br>  #  runAsUser: 50000<br>  #  fsGroup: 0<br>  #  runAsGroup: 0<br><br>  # Detailed default security context for migrateDatabaseJob for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to migrate database job kubernetes service account.<br>    annotations: {}<br><br>  resources: {}<br>  #  limits:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br>  #  requests:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br><br>  # Launch additional containers into database migration job<br>  extraContainers: []<br><br>  # Mount additional volumes into database migration job. It can be templated like in the following example:<br>  #   extraVolumes:<br>  #     - name: my-templated-extra-volume<br>  #       secret:<br>  #          secretName: &#39;{{ include &quot;my_secret_template&quot; . }}&#39;<br>  #          defaultMode: 0640<br>  #          optional: true<br>  #<br>  #   extraVolumeMounts:<br>  #     - name: my-templated-extra-volume<br>  #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>  #       readOnly: true<br>  extraVolumes: []<br>  extraVolumeMounts: []<br><br>  nodeSelector: {}<br>  affinity: {}<br>  tolerations: []<br>  topologySpreadConstraints: []<br>  # In case you need to disable the helm hooks that create the jobs after install.<br>  # Disable this if you are using ArgoCD for example<br>  useHelmHooks: true<br>  applyCustomEnv: true<br><br># Airflow webserver settings<br>webserver:<br>  # Add custom annotations to the webserver configmap<br>  configMapAnnotations: {}<br>  #  hostAliases for the webserver pod<br>  hostAliases: []<br>  #  - ip: &quot;127.0.0.1&quot;<br>  #    hostnames:<br>  #      - &quot;foo.local&quot;<br>  #  - ip: &quot;10.1.2.3&quot;<br>  #    hostnames:<br>  #      - &quot;foo.remote&quot;<br>  allowPodLogReading: true<br>  livenessProbe:<br>    initialDelaySeconds: 15<br>    timeoutSeconds: 5<br>    failureThreshold: 5<br>    periodSeconds: 10<br>    scheme: HTTP<br><br>  readinessProbe:<br>    initialDelaySeconds: 15<br>    timeoutSeconds: 5<br>    failureThreshold: 5<br>    periodSeconds: 10<br>    scheme: HTTP<br><br>  startupProbe:<br>    timeoutSeconds: 20<br>    failureThreshold: 6<br>    periodSeconds: 10<br>    scheme: HTTP<br><br>  # Number of webservers<br>  replicas: 1<br>  # Max number of old replicasets to retain<br>  revisionHistoryLimit: ~<br><br>  # Command to use when running the Airflow webserver (templated).<br>  command: ~<br>  # Args to use when running the Airflow webserver (templated).<br>  args: [&quot;bash&quot;, &quot;-c&quot;, &quot;exec airflow webserver&quot;]<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to webserver kubernetes service account.<br>    annotations: {}<br><br>  # Webserver pod disruption budget<br>  podDisruptionBudget:<br>    enabled: false<br><br>    # PDB configuration<br>    config:<br>      # minAvailable and maxUnavailable are mutually exclusive<br>      maxUnavailable: 1<br>      # minAvailable: 1<br><br>  # Allow overriding Update Strategy for Webserver<br>  strategy: ~<br><br>  # When not set, the values defined in the global securityContext will be used<br>  # (deprecated, use `securityContexts` instead)<br>  securityContext: {}<br>  #  runAsUser: 50000<br>  #  fsGroup: 0<br>  #  runAsGroup: 0<br><br>  # Detailed default security contexts for webserver deployments for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  # Additional network policies as needed (Deprecated - renamed to `webserver.networkPolicy.ingress.from`)<br>  extraNetworkPolicies: []<br>  networkPolicy:<br>    ingress:<br>      # Peers for webserver NetworkPolicy ingress<br>      from: []<br>      # Ports for webserver NetworkPolicy ingress (if `from` is set)<br>      ports:<br>        - port: &quot;{{ .Values.ports.airflowUI }}&quot;<br><br>  resources: {}<br>  #   limits:<br>  #     cpu: 100m<br>  #     memory: 128Mi<br>  #   requests:<br>  #     cpu: 100m<br>  #     memory: 128Mi<br><br>  # Create initial user.<br>  defaultUser:<br>    enabled: true<br>    role: Admin<br>    username: admin<br>    email: admin@example.com<br>    firstName: admin<br>    lastName: user<br>    password: admin<br><br>  # Launch additional containers into webserver.<br>  extraContainers: []<br>  # Add additional init containers into webserver.<br>  extraInitContainers: []<br><br>  # Mount additional volumes into webserver. It can be templated like in the following example:<br>  #   extraVolumes:<br>  #     - name: my-templated-extra-volume<br>  #       secret:<br>  #          secretName: &#39;{{ include &quot;my_secret_template&quot; . }}&#39;<br>  #          defaultMode: 0640<br>  #          optional: true<br>  #<br>  #   extraVolumeMounts:<br>  #     - name: my-templated-extra-volume<br>  #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>  #       readOnly: true<br>  extraVolumes: []<br>  extraVolumeMounts: []<br><br>  # This string (can be templated) will be mounted into the Airflow Webserver<br>  # as a custom webserver_config.py. You can bake a webserver_config.py in to<br>  # your image instead or specify a configmap containing the<br>  # webserver_config.py.<br>  webserverConfig: ~<br>  # webserverConfig: |<br>  #   from airflow import configuration as conf<br><br>  #   # The SQLAlchemy connection string.<br>  #   SQLALCHEMY_DATABASE_URI = conf.get(&#39;database&#39;, &#39;SQL_ALCHEMY_CONN&#39;)<br><br>  #   # Flask-WTF flag for CSRF<br>  #   CSRF_ENABLED = True<br>  webserverConfigConfigMapName: ~<br><br>  service:<br>    type: ClusterIP<br>    ## service annotations<br>    annotations: {}<br>    ports:<br>      - name: airflow-ui<br>        port: &quot;{{ .Values.ports.airflowUI }}&quot;<br>    # To change the port used to access the webserver:<br>    # ports:<br>    #   - name: airflow-ui<br>    #     port: 80<br>    #     targetPort: airflow-ui<br>    # To only expose a sidecar, not the webserver directly:<br>    # ports:<br>    #   - name: only_sidecar<br>    #     port: 80<br>    #     targetPort: 8888<br>    # If you have a public IP, set NodePort to set an external port.<br>    # Service type must be &#39;NodePort&#39;:<br>    # ports:<br>    #   - name: airflow-ui<br>    #     port: 8080<br>    #     targetPort: 8080<br>    #     nodePort: 31151<br>    loadBalancerIP: ~<br>    ## Limit load balancer source ips to list of CIDRs<br>    # loadBalancerSourceRanges:<br>    #   - &quot;10.123.0.0/16&quot;<br>    loadBalancerSourceRanges: []<br><br>  # Select certain nodes for airflow webserver pods.<br>  nodeSelector: {}<br>  priorityClassName: ~<br>  affinity: {}<br>  # default webserver affinity is:<br>  #  podAntiAffinity:<br>  #    preferredDuringSchedulingIgnoredDuringExecution:<br>  #    - podAffinityTerm:<br>  #        labelSelector:<br>  #          matchLabels:<br>  #            component: webserver<br>  #        topologyKey: kubernetes.io/hostname<br>  #      weight: 100<br>  tolerations: []<br>  topologySpreadConstraints: []<br><br>  # annotations for webserver deployment<br>  annotations: {}<br><br>  podAnnotations: {}<br><br>  # Labels specific webserver app<br>  labels: {}<br><br>  waitForMigrations:<br>    # Whether to create init container to wait for db migrations<br>    enabled: true<br>    env: []<br>    # Detailed default security context for waitForMigrations for container level<br>    securityContexts:<br>      container: {}<br><br>  env: []<br><br># Airflow Triggerer Config<br>triggerer:<br>  enabled: true<br>  # Number of airflow triggerers in the deployment<br>  replicas: 1<br>  # Max number of old replicasets to retain<br>  revisionHistoryLimit: ~<br><br>  # Command to use when running Airflow triggerers (templated).<br>  command: ~<br>  # Args to use when running Airflow triggerer (templated).<br>  args: [&quot;bash&quot;, &quot;-c&quot;, &quot;exec airflow triggerer&quot;]<br><br>  # Update Strategy when triggerer is deployed as a StatefulSet<br>  updateStrategy: ~<br>  # Update Strategy when triggerer is deployed as a Deployment<br>  strategy:<br>    rollingUpdate:<br>      maxSurge: &quot;100%&quot;<br>      maxUnavailable: &quot;50%&quot;<br><br>  # If the triggerer stops heartbeating for 5 minutes (5*60s) kill the<br>  # triggerer and let Kubernetes restart it<br>  livenessProbe:<br>    initialDelaySeconds: 10<br>    timeoutSeconds: 20<br>    failureThreshold: 5<br>    periodSeconds: 60<br>    command: ~<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to triggerer kubernetes service account.<br>    annotations: {}<br><br>  # When not set, the values defined in the global securityContext will be used<br>  securityContext: {}<br>  #  runAsUser: 50000<br>  #  fsGroup: 0<br>  #  runAsGroup: 0<br><br>  # Detailed default security context for triggerer for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  persistence:<br>    # Enable persistent volumes<br>    enabled: true<br>    # Volume size for triggerer StatefulSet<br>    size: 100Gi<br>    # If using a custom storageClass, pass name ref to all statefulSets here<br>    storageClassName:<br>    # Execute init container to chown log directory.<br>    # This is currently only needed in kind, due to usage<br>    # of local-path provisioner.<br>    fixPermissions: false<br>    # Annotations to add to triggerer volumes<br>    annotations: {}<br><br>  resources: {}<br>  #  limits:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br>  #  requests:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br><br>  # Grace period for triggerer to finish after SIGTERM is sent from kubernetes<br>  terminationGracePeriodSeconds: 60<br><br>  # This setting tells kubernetes that its ok to evict<br>  # when it wants to scale a node down.<br>  safeToEvict: true<br><br>  # Launch additional containers into triggerer.<br>  extraContainers: []<br>  # Add additional init containers into triggerers.<br>  extraInitContainers: []<br><br>  # Mount additional volumes into triggerer. It can be templated like in the following example:<br>  #   extraVolumes:<br>  #     - name: my-templated-extra-volume<br>  #       secret:<br>  #          secretName: &#39;{{ include &quot;my_secret_template&quot; . }}&#39;<br>  #          defaultMode: 0640<br>  #          optional: true<br>  #<br>  #   extraVolumeMounts:<br>  #     - name: my-templated-extra-volume<br>  #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>  #       readOnly: true<br>  extraVolumes: []<br>  extraVolumeMounts: []<br><br>  # Select certain nodes for airflow triggerer pods.<br>  nodeSelector: {}<br>  affinity: {}<br>  # default triggerer affinity is:<br>  #  podAntiAffinity:<br>  #    preferredDuringSchedulingIgnoredDuringExecution:<br>  #    - podAffinityTerm:<br>  #        labelSelector:<br>  #          matchLabels:<br>  #            component: triggerer<br>  #        topologyKey: kubernetes.io/hostname<br>  #      weight: 100<br>  tolerations: []<br>  topologySpreadConstraints: []<br><br>  priorityClassName: ~<br><br>  # annotations for the triggerer deployment<br>  annotations: {}<br><br>  podAnnotations: {}<br><br>  # Labels specific to triggerer objects and pods<br>  labels: {}<br><br>  logGroomerSidecar:<br>    # Whether to deploy the Airflow triggerer log groomer sidecar.<br>    enabled: true<br>    # Command to use when running the Airflow triggerer log groomer sidecar (templated).<br>    command: ~<br>    # Args to use when running the Airflow triggerer log groomer sidecar (templated).<br>    args: [&quot;bash&quot;, &quot;/clean-logs&quot;]<br>    # Number of days to retain logs<br>    retentionDays: 15<br>    resources: {}<br>    #  limits:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    #  requests:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    # Detailed default security context for logGroomerSidecar for container level<br>    securityContexts:<br>      container: {}<br><br>    # container level lifecycle hooks<br>    containerLifecycleHooks: {}<br><br>  waitForMigrations:<br>    # Whether to create init container to wait for db migrations<br>    enabled: true<br>    env: []<br>    # Detailed default security context for waitForMigrations for container level<br>    securityContexts:<br>      container: {}<br><br>  env: []<br><br>  # Allow KEDA autoscaling.<br>  keda:<br>    enabled: false<br>    namespaceLabels: {}<br><br>    # How often KEDA polls the airflow DB to report new scale requests to the HPA<br>    pollingInterval: 5<br><br>    # How many seconds KEDA will wait before scaling to zero.<br>    # Note that HPA has a separate cooldown period for scale-downs<br>    cooldownPeriod: 30<br><br>    # Minimum number of triggerers created by keda<br>    minReplicaCount: 0<br><br>    # Maximum number of triggerers created by keda<br>    maxReplicaCount: 10<br><br>    # Specify HPA related options<br>    advanced: {}<br>    # horizontalPodAutoscalerConfig:<br>    #   behavior:<br>    #     scaleDown:<br>    #       stabilizationWindowSeconds: 300<br>    #       policies:<br>    #         - type: Percent<br>    #           value: 100<br>    #           periodSeconds: 15<br><br>    # Query to use for KEDA autoscaling. Must return a single integer.<br>    query: &gt;-<br>      SELECT ceil(COUNT(*)::decimal / {{ .Values.config.triggerer.default_capacity }})<br>      FROM trigger<br><br># Airflow Dag Processor Config<br>dagProcessor:<br>  enabled: false<br>  # Number of airflow dag processors in the deployment<br>  replicas: 1<br>  # Max number of old replicasets to retain<br>  revisionHistoryLimit: ~<br><br>  # Command to use when running Airflow dag processors (templated).<br>  command: ~<br>  # Args to use when running Airflow dag processor (templated).<br>  args: [&quot;bash&quot;, &quot;-c&quot;, &quot;exec airflow dag-processor&quot;]<br><br>  # Update Strategy for dag processors<br>  strategy:<br>    rollingUpdate:<br>      maxSurge: &quot;100%&quot;<br>      maxUnavailable: &quot;50%&quot;<br><br>  # If the dag processor stops heartbeating for 5 minutes (5*60s) kill the<br>  # dag processor and let Kubernetes restart it<br>  livenessProbe:<br>    initialDelaySeconds: 10<br>    timeoutSeconds: 20<br>    failureThreshold: 5<br>    periodSeconds: 60<br>    command: ~<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to dag processor kubernetes service account.<br>    annotations: {}<br><br>  # When not set, the values defined in the global securityContext will be used<br>  securityContext: {}<br>  #  runAsUser: 50000<br>  #  fsGroup: 0<br>  #  runAsGroup: 0<br><br>  # Detailed default security context for dagProcessor for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  resources: {}<br>  #  limits:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br>  #  requests:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br><br>  # Grace period for dag processor to finish after SIGTERM is sent from kubernetes<br>  terminationGracePeriodSeconds: 60<br><br>  # This setting tells kubernetes that its ok to evict<br>  # when it wants to scale a node down.<br>  safeToEvict: true<br><br>  # Launch additional containers into dag processor.<br>  extraContainers: []<br>  # Add additional init containers into dag processors.<br>  extraInitContainers: []<br><br>  # Mount additional volumes into dag processor. It can be templated like in the following example:<br>  #   extraVolumes:<br>  #     - name: my-templated-extra-volume<br>  #       secret:<br>  #          secretName: &#39;{{ include &quot;my_secret_template&quot; . }}&#39;<br>  #          defaultMode: 0640<br>  #          optional: true<br>  #<br>  #   extraVolumeMounts:<br>  #     - name: my-templated-extra-volume<br>  #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>  #       readOnly: true<br>  extraVolumes: []<br>  extraVolumeMounts: []<br><br>  # Select certain nodes for airflow dag processor pods.<br>  nodeSelector: {}<br>  affinity: {}<br>  # default dag processor affinity is:<br>  #  podAntiAffinity:<br>  #    preferredDuringSchedulingIgnoredDuringExecution:<br>  #    - podAffinityTerm:<br>  #        labelSelector:<br>  #          matchLabels:<br>  #            component: dag-processor<br>  #        topologyKey: kubernetes.io/hostname<br>  #      weight: 100<br>  tolerations: []<br>  topologySpreadConstraints: []<br><br>  priorityClassName: ~<br><br>  # annotations for the dag processor deployment<br>  annotations: {}<br><br>  podAnnotations: {}<br><br>  logGroomerSidecar:<br>    # Whether to deploy the Airflow dag processor log groomer sidecar.<br>    enabled: true<br>    # Command to use when running the Airflow dag processor log groomer sidecar (templated).<br>    command: ~<br>    # Args to use when running the Airflow dag processor log groomer sidecar (templated).<br>    args: [&quot;bash&quot;, &quot;/clean-logs&quot;]<br>    # Number of days to retain logs<br>    retentionDays: 15<br>    resources: {}<br>    #  limits:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    #  requests:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br><br>  waitForMigrations:<br>    # Whether to create init container to wait for db migrations<br>    enabled: true<br>    env: []<br><br>  env: []<br><br># Flower settings<br>flower:<br>  # Enable flower.<br>  # If True, and using CeleryExecutor/CeleryKubernetesExecutor, will deploy flower app.<br>  enabled: false<br>  # Max number of old replicasets to retain<br>  revisionHistoryLimit: ~<br><br>  # Command to use when running flower (templated).<br>  command: ~<br>  # Args to use when running flower (templated).<br>  args:<br>    - &quot;bash&quot;<br>    - &quot;-c&quot;<br>    # The format below is necessary to get `helm lint` happy<br>    - |-<br>      exec \<br>      airflow {{ semverCompare &quot;&gt;=2.0.0&quot; .Values.airflowVersion | ternary &quot;celery flower&quot; &quot;flower&quot; }}<br><br>  # Additional network policies as needed (Deprecated - renamed to `flower.networkPolicy.ingress.from`)<br>  extraNetworkPolicies: []<br>  networkPolicy:<br>    ingress:<br>      # Peers for flower NetworkPolicy ingress<br>      from: []<br>      # Ports for flower NetworkPolicy ingress (if ingressPeers is set)<br>      ports:<br>        - port: &quot;{{ .Values.ports.flowerUI }}&quot;<br><br>  resources: {}<br>  #   limits:<br>  #     cpu: 100m<br>  #     memory: 128Mi<br>  #   requests:<br>  #     cpu: 100m<br>  #     memory: 128Mi<br><br>  # When not set, the values defined in the global securityContext will be used<br>  securityContext: {}<br>  #  runAsUser: 50000<br>  #  fsGroup: 0<br>  #  runAsGroup: 0<br><br>  # Detailed default security context for flower for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to worker kubernetes service account.<br>    annotations: {}<br><br>  # A secret containing the connection<br>  secretName: ~<br><br>  # Else, if username and password are set, create secret from username and password<br>  username: ~<br>  password: ~<br><br>  service:<br>    type: ClusterIP<br>    ## service annotations<br>    annotations: {}<br>    ports:<br>      - name: flower-ui<br>        port: &quot;{{ .Values.ports.flowerUI }}&quot;<br>    # To change the port used to access flower:<br>    # ports:<br>    #   - name: flower-ui<br>    #     port: 8080<br>    #     targetPort: flower-ui<br>    loadBalancerIP: ~<br>    ## Limit load balancer source ips to list of CIDRs<br>    # loadBalancerSourceRanges:<br>    #   - &quot;10.123.0.0/16&quot;<br>    loadBalancerSourceRanges: []<br><br>  # Launch additional containers into the flower pods.<br>  extraContainers: []<br>  # Mount additional volumes into the flower pods. It can be templated like in the following example:<br>  #   extraVolumes:<br>  #     - name: my-templated-extra-volume<br>  #       secret:<br>  #          secretName: &#39;{{ include &quot;my_secret_template&quot; . }}&#39;<br>  #          defaultMode: 0640<br>  #          optional: true<br>  #<br>  #   extraVolumeMounts:<br>  #     - name: my-templated-extra-volume<br>  #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>  #       readOnly: true<br>  extraVolumes: []<br>  extraVolumeMounts: []<br><br>  # Select certain nodes for airflow flower pods.<br>  nodeSelector: {}<br>  affinity: {}<br>  tolerations: []<br>  topologySpreadConstraints: []<br><br>  priorityClassName: ~<br><br>  # annotations for the flower deployment<br>  annotations: {}<br><br>  podAnnotations: {}<br><br>  # Labels specific to flower objects and pods<br>  labels: {}<br>  env: []<br><br># StatsD settings<br>statsd:<br>  # Add custom annotations to the statsd configmap<br>  configMapAnnotations: {}<br><br>  enabled: true<br>  # Max number of old replicasets to retain<br>  revisionHistoryLimit: ~<br><br>  # Arguments for StatsD exporter command.<br>  args: [&quot;--statsd.mapping-config=/etc/statsd-exporter/mappings.yml&quot;]<br><br>  # Annotations to add to the StatsD Deployment.<br>  annotations: {}<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to worker kubernetes service account.<br>    annotations: {}<br><br>  uid: 65534<br>  # When not set, `statsd.uid` will be used<br><br>  # (deprecated, use `securityContexts` instead)<br>  securityContext: {}<br>  #  runAsUser: 65534<br>  #  fsGroup: 0<br>  #  runAsGroup: 0<br><br>  # Detailed default security context for statsd deployments for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  # Additional network policies as needed<br>  extraNetworkPolicies: []<br>  resources: {}<br>  #   limits:<br>  #     cpu: 100m<br>  #     memory: 128Mi<br>  #   requests:<br>  #     cpu: 100m<br>  #     memory: 128Mi<br><br>  service:<br>    extraAnnotations: {}<br><br>  # Select certain nodes for StatsD pods.<br>  nodeSelector: {}<br>  affinity: {}<br>  tolerations: []<br>  topologySpreadConstraints: []<br><br>  priorityClassName: ~<br><br>  # Additional mappings for StatsD exporter.<br>  # If set, will merge default mapping and extra mappings, default mapping has higher priority.<br>  # So, if you want to change some default mapping, please use `overrideMappings`<br>  extraMappings: []<br><br>  # Override mappings for StatsD exporter.<br>  # If set, will ignore setting item in default and `extraMappings`.<br>  # So, If you use it, ensure all mapping item contains in it.<br>  overrideMappings: []<br><br>  podAnnotations: {}<br>  env: []<br><br># PgBouncer settings<br>pgbouncer:<br>  # Enable PgBouncer<br>  enabled: false<br>  # Number of PgBouncer replicas to run in Deployment<br>  replicas: 1<br>  # Max number of old replicasets to retain<br>  revisionHistoryLimit: ~<br>  # Command to use for PgBouncer(templated).<br>  command: [&quot;pgbouncer&quot;, &quot;-u&quot;, &quot;nobody&quot;, &quot;/etc/pgbouncer/pgbouncer.ini&quot;]<br>  # Args to use for PgBouncer(templated).<br>  args: ~<br>  auth_type: md5<br>  auth_file: /etc/pgbouncer/users.txt<br><br>  # annotations to be added to the PgBouncer deployment<br>  annotations: {}<br><br>  podAnnotations: {}<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to worker kubernetes service account.<br>    annotations: {}<br><br>  # Additional network policies as needed<br>  extraNetworkPolicies: []<br><br>  # Pool sizes<br>  metadataPoolSize: 10<br>  resultBackendPoolSize: 5<br><br>  # Maximum clients that can connect to PgBouncer (higher = more file descriptors)<br>  maxClientConn: 100<br><br>  # supply the name of existing secret with pgbouncer.ini and users.txt defined<br>  # you can load them to a k8s secret like the one below<br>  #  apiVersion: v1<br>  #  kind: Secret<br>  #  metadata:<br>  #    name: pgbouncer-config-secret<br>  #  data:<br>  #     pgbouncer.ini: &lt;base64_encoded pgbouncer.ini file content&gt;<br>  #     users.txt: &lt;base64_encoded users.txt file content&gt;<br>  #  type: Opaque<br>  #<br>  #  configSecretName: pgbouncer-config-secret<br>  #<br>  configSecretName: ~<br><br>  # PgBouncer pod disruption budget<br>  podDisruptionBudget:<br>    enabled: false<br><br>    # PDB configuration<br>    config:<br>      # minAvailable and maxUnavailable are mutually exclusive<br>      maxUnavailable: 1<br>      # minAvailable: 1<br><br>  # Limit the resources to PgBouncer.<br>  # When you specify the resource request the k8s scheduler uses this information to decide which node to<br>  # place the Pod on. When you specify a resource limit for a Container, the kubelet enforces those limits so<br>  # that the running container is not allowed to use more of that resource than the limit you set.<br>  # See: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/<br>  # Example:<br>  #<br>  # resource:<br>  #   limits:<br>  #     cpu: 100m<br>  #     memory: 128Mi<br>  #   requests:<br>  #     cpu: 100m<br>  #     memory: 128Mi<br>  resources: {}<br><br>  service:<br>    extraAnnotations: {}<br><br>  # https://www.pgbouncer.org/config.html<br>  verbose: 0<br>  logDisconnections: 0<br>  logConnections: 0<br><br>  sslmode: &quot;prefer&quot;<br>  ciphers: &quot;normal&quot;<br><br>  ssl:<br>    ca: ~<br>    cert: ~<br>    key: ~<br><br>  # Add extra PgBouncer ini configuration in the databases section:<br>  # https://www.pgbouncer.org/config.html#section-databases<br>  extraIniMetadata: ~<br>  extraIniResultBackend: ~<br>  # Add extra general PgBouncer ini configuration: https://www.pgbouncer.org/config.html<br>  extraIni: ~<br><br>  # Mount additional volumes into pgbouncer. It can be templated like in the following example:<br>  #   extraVolumes:<br>  #     - name: my-templated-extra-volume<br>  #       secret:<br>  #          secretName: &#39;{{ include &quot;my_secret_template&quot; . }}&#39;<br>  #          defaultMode: 0640<br>  #          optional: true<br>  #<br>  #   extraVolumeMounts:<br>  #     - name: my-templated-extra-volume<br>  #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>  #       readOnly: true<br>  extraVolumes: []<br>  extraVolumeMounts: []<br><br>  # Launch additional containers into pgbouncer.<br>  extraContainers: []<br><br>  # Select certain nodes for PgBouncer pods.<br>  nodeSelector: {}<br>  affinity: {}<br>  tolerations: []<br>  topologySpreadConstraints: []<br><br>  priorityClassName: ~<br><br>  uid: 65534<br><br>  # Detailed default security context for pgbouncer for container level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks:<br>    preStop:<br>      exec:<br>        # Allow existing queries clients to complete within 120 seconds<br>        command: [&quot;/bin/sh&quot;, &quot;-c&quot;, &quot;killall -INT pgbouncer &amp;&amp; sleep 120&quot;]<br><br>  metricsExporterSidecar:<br>    resources: {}<br>    #  limits:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    #  requests:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    sslmode: &quot;disable&quot;<br><br>    # supply the name of existing secret with PGBouncer connection URI containing<br>    # stats user and password.<br>    # you can load them to a k8s secret like the one below<br>    #  apiVersion: v1<br>    #  kind: Secret<br>    #  metadata:<br>    #    name: pgbouncer-stats-secret<br>    #  data:<br>    #     connection: postgresql://&lt;stats user&gt;:&lt;password&gt;@127.0.0.1:6543/pgbouncer?&lt;connection params&gt;<br>    #  type: Opaque<br>    #<br>    #  statsSecretName: pgbouncer-stats-secret<br>    #<br>    statsSecretName: ~<br><br>    # Key containing the PGBouncer connection URI, defaults to `connection` if not defined<br>    statsSecretKey: ~<br><br>    # Detailed default security context for metricsExporterSidecar for container level<br>    securityContexts:<br>      container: {}<br><br>    # container level lifecycle hooks<br>    containerLifecycleHooks: {}<br><br>    livenessProbe:<br>      initialDelaySeconds: 10<br>      periodSeconds: 10<br>      timeoutSeconds: 1<br><br>    readinessProbe:<br>      initialDelaySeconds: 10<br>      periodSeconds: 10<br>      timeoutSeconds: 1<br><br>  # Environment variables to add to pgbouncer container<br>  env: []<br><br># Configuration for the redis provisioned by the chart<br>redis:<br>  enabled: true<br>  terminationGracePeriodSeconds: 600<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to worker kubernetes service account.<br>    annotations: {}<br><br>  persistence:<br>    # Enable persistent volumes<br>    enabled: true<br>    # Volume size for worker StatefulSet<br>    size: 1Gi<br>    # If using a custom storageClass, pass name ref to all statefulSets here<br>    storageClassName:<br>    # Annotations to add to redis volumes<br>    annotations: {}<br><br>  resources: {}<br>  #  limits:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br>  #  requests:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br><br>  # If set use as redis secret. Make sure to also set data.brokerUrlSecretName value.<br>  passwordSecretName: ~<br><br>  # Else, if password is set, create secret with it,<br>  # Otherwise a new password will be generated on install<br>  # Note: password can only be set during install, not upgrade.<br>  password: ~<br><br>  # This setting tells kubernetes that its ok to evict<br>  # when it wants to scale a node down.<br>  safeToEvict: true<br><br>  # Select certain nodes for redis pods.<br>  nodeSelector: {}<br>  affinity: {}<br>  tolerations: []<br>  topologySpreadConstraints: []<br><br>  # Set to 0 for backwards-compatiblity<br>  uid: 0<br>  # If not set, `redis.uid` will be used<br>  securityContext: {}<br>  #  runAsUser: 999<br>  #  runAsGroup: 0<br><br>  # Detailed default security context for redis for container and pod level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  podAnnotations: {}<br># Auth secret for a private registry<br># This is used if pulling airflow images from a private registry<br>registry:<br>  secretName: ~<br><br>  # Example:<br>  # connection:<br>  #   user: ~<br>  #   pass: ~<br>  #   host: ~<br>  #   email: ~<br>  connection: {}<br><br># Elasticsearch logging configuration<br>elasticsearch:<br>  # Enable elasticsearch task logging<br>  enabled: false<br>  # A secret containing the connection<br>  secretName: ~<br>  # Or an object representing the connection<br>  # Example:<br>  # connection:<br>  #   user: ~<br>  #   pass: ~<br>  #   host: ~<br>  #   port: ~<br>  connection: {}<br><br># All ports used by chart<br>ports:<br>  flowerUI: 5555<br>  airflowUI: 8080<br>  workerLogs: 8793<br>  triggererLogs: 8794<br>  redisDB: 6379<br>  statsdIngest: 9125<br>  statsdScrape: 9102<br>  pgbouncer: 6543<br>  pgbouncerScrape: 9127<br><br># Define any ResourceQuotas for namespace<br>quotas: {}<br><br># Define default/max/min values for pods and containers in namespace<br>limits: []<br><br># This runs as a CronJob to cleanup old pods.<br>cleanup:<br>  enabled: false<br>  # Run every 15 minutes (templated).<br>  schedule: &quot;*/15 * * * *&quot;<br>  # To select a random-ish, deterministic starting minute between 3 and 12 inclusive for each release:<br>  #     &#39;{{- add 3 (regexFind &quot;.$&quot; (adler32sum .Release.Name)) -}}-59/15 * * * *&#39;<br>  # To select the last digit of unix epoch time as the starting minute on each deploy:<br>  #     &#39;{{- now | unixEpoch | trunc -1 -}}-59/* * * * *&#39;<br><br>  # Command to use when running the cleanup cronjob (templated).<br>  command: ~<br>  # Args to use when running the cleanup cronjob (templated).<br>  args: [&quot;bash&quot;, &quot;-c&quot;, &quot;exec airflow kubernetes cleanup-pods --namespace={{ .Release.Namespace }}&quot;]<br><br>  # jobAnnotations are annotations on the cleanup CronJob<br>  jobAnnotations: {}<br><br>  # Select certain nodes for airflow cleanup pods.<br>  nodeSelector: {}<br>  affinity: {}<br>  tolerations: []<br>  topologySpreadConstraints: []<br><br>  podAnnotations: {}<br><br>  # Labels specific to cleanup objects and pods<br>  labels: {}<br><br>  resources: {}<br>  #  limits:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br>  #  requests:<br>  #   cpu: 100m<br>  #   memory: 128Mi<br><br>  # Create ServiceAccount<br>  serviceAccount:<br>    # default value is true<br>    # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/<br>    automountServiceAccountToken: true<br>    # Specifies whether a ServiceAccount should be created<br>    create: true<br>    # The name of the ServiceAccount to use.<br>    # If not set and create is true, a name is generated using the release name<br>    name: ~<br><br>    # Annotations to add to cleanup cronjob kubernetes service account.<br>    annotations: {}<br><br>  # When not set, the values defined in the global securityContext will be used<br>  securityContext: {}<br>  #  runAsUser: 50000<br>  #  runAsGroup: 0<br>  env: []<br><br>  # Detailed default security context for cleanup for container level<br>  securityContexts:<br>    pod: {}<br>    container: {}<br><br>  # container level lifecycle hooks<br>  containerLifecycleHooks: {}<br><br>  # Specify history limit<br>  # When set, overwrite the default k8s number of successful and failed CronJob executions that are saved.<br>  failedJobsHistoryLimit: ~<br>  successfulJobsHistoryLimit: ~<br><br># Configuration for postgresql subchart<br># Not recommended for production<br>postgresql:<br>  enabled: false<br>  image:<br>    tag: &quot;11&quot;<br>  auth:<br>    enablePostgresUser: true<br>    postgresPassword: postgres<br>    username: &quot;&quot;<br>    password: &quot;&quot;<br><br># Config settings to go into the mounted airflow.cfg<br>#<br># Please note that these values are passed through the `tpl` function, so are<br># all subject to being rendered as go templates. If you need to include a<br># literal `{{` in a value, it must be expressed like this:<br>#<br>#    a: &#39;{{ &quot;{{ not a template }}&quot; }}&#39;<br>#<br># Do not set config containing secrets via plain text values, use Env Var or k8s secret object<br># yamllint disable rule:line-length<br>config:<br>  core:<br>    dags_folder: &#39;{{ include &quot;airflow_dags&quot; . }}&#39;<br>    # This is ignored when used with the official Docker image<br>    load_examples: &#39;False&#39;<br>    executor: &#39;{{ .Values.executor }}&#39;<br>    # For Airflow 1.10, backward compatibility; moved to [logging] in 2.0<br>    colored_console_log: &#39;False&#39;<br>    remote_logging: &#39;{{- ternary &quot;True&quot; &quot;False&quot; .Values.elasticsearch.enabled }}&#39;<br>  logging:<br>    remote_logging: &#39;{{- ternary &quot;True&quot; &quot;False&quot; .Values.elasticsearch.enabled }}&#39;<br>    colored_console_log: &#39;False&#39;<br>  metrics:<br>    statsd_on: &#39;{{ ternary &quot;True&quot; &quot;False&quot; .Values.statsd.enabled }}&#39;<br>    statsd_port: 9125<br>    statsd_prefix: airflow<br>    statsd_host: &#39;{{ printf &quot;%s-statsd&quot; .Release.Name }}&#39;<br>  webserver:<br>    enable_proxy_fix: &#39;True&#39;<br>    # For Airflow 1.10<br>    rbac: &#39;True&#39;<br>  celery:<br>    flower_url_prefix: &#39;{{ ternary &quot;&quot; .Values.ingress.flower.path (eq .Values.ingress.flower.path &quot;/&quot;) }}&#39;<br>    worker_concurrency: 16<br>  scheduler:<br>    standalone_dag_processor: &#39;{{ ternary &quot;True&quot; &quot;False&quot; .Values.dagProcessor.enabled }}&#39;<br>    # statsd params included for Airflow 1.10 backward compatibility; moved to [metrics] in 2.0<br>    statsd_on: &#39;{{ ternary &quot;True&quot; &quot;False&quot; .Values.statsd.enabled }}&#39;<br>    statsd_port: 9125<br>    statsd_prefix: airflow<br>    statsd_host: &#39;{{ printf &quot;%s-statsd&quot; .Release.Name }}&#39;<br>    # `run_duration` included for Airflow 1.10 backward compatibility; removed in 2.0.<br>    run_duration: 41460<br>  elasticsearch:<br>    json_format: &#39;True&#39;<br>    log_id_template: &quot;{dag_id}_{task_id}_{execution_date}_{try_number}&quot;<br>  elasticsearch_configs:<br>    max_retries: 3<br>    timeout: 30<br>    retry_timeout: &#39;True&#39;<br>  kerberos:<br>    keytab: &#39;{{ .Values.kerberos.keytabPath }}&#39;<br>    reinit_frequency: &#39;{{ .Values.kerberos.reinitFrequency }}&#39;<br>    principal: &#39;{{ .Values.kerberos.principal }}&#39;<br>    ccache: &#39;{{ .Values.kerberos.ccacheMountPath }}/{{ .Values.kerberos.ccacheFileName }}&#39;<br>  celery_kubernetes_executor:<br>    kubernetes_queue: &#39;kubernetes&#39;<br>  # The `kubernetes` section is deprecated in Airflow &gt;= 2.5.0 due to an airflow.cfg schema change.<br>  # The `kubernetes` section can be removed once the helm chart no longer supports Airflow &lt; 2.5.0.<br>  kubernetes:<br>    namespace: &#39;{{ .Release.Namespace }}&#39;<br>    # The following `airflow_` entries are for Airflow 1, and can be removed when it is no longer supported.<br>    airflow_configmap: &#39;{{ include &quot;airflow_config&quot; . }}&#39;<br>    airflow_local_settings_configmap: &#39;{{ include &quot;airflow_config&quot; . }}&#39;<br>    pod_template_file: &#39;{{ include &quot;airflow_pod_template_file&quot; . }}/pod_template_file.yaml&#39;<br>    worker_container_repository: &#39;{{ .Values.images.airflow.repository | default .Values.defaultAirflowRepository }}&#39;<br>    worker_container_tag: &#39;{{ .Values.images.airflow.tag | default .Values.defaultAirflowTag }}&#39;<br>    multi_namespace_mode: &#39;{{ ternary &quot;True&quot; &quot;False&quot; .Values.multiNamespaceMode }}&#39;<br>  # The `kubernetes_executor` section duplicates the `kubernetes` section in Airflow &gt;= 2.5.0 due to an airflow.cfg schema change.<br>  kubernetes_executor:<br>    namespace: &#39;{{ .Release.Namespace }}&#39;<br>    pod_template_file: &#39;{{ include &quot;airflow_pod_template_file&quot; . }}/pod_template_file.yaml&#39;<br>    worker_container_repository: &#39;{{ .Values.images.airflow.repository | default .Values.defaultAirflowRepository }}&#39;<br>    worker_container_tag: &#39;{{ .Values.images.airflow.tag | default .Values.defaultAirflowTag }}&#39;<br>    multi_namespace_mode: &#39;{{ ternary &quot;True&quot; &quot;False&quot; .Values.multiNamespaceMode }}&#39;<br>  triggerer:<br>    default_capacity: 1000<br># yamllint enable rule:line-length<br><br># Whether Airflow can launch workers and/or pods in multiple namespaces<br># If true, it creates ClusterRole/ClusterRolebinding (with access to entire cluster)<br>multiNamespaceMode: false<br><br># `podTemplate` is a templated string containing the contents of `pod_template_file.yaml` used for<br># KubernetesExecutor workers. The default `podTemplate` will use normal `workers` configuration parameters<br># (e.g. `workers.resources`). As such, you normally won&#39;t need to override this directly, however,<br># you can still provide a completely custom `pod_template_file.yaml` if desired.<br># If not set, a default one is created using `files/pod-template-file.kubernetes-helm-yaml`.<br>podTemplate: ~<br># The following example is NOT functional, but meant to be illustrative of how you can provide a custom<br># `pod_template_file`. You&#39;re better off starting with the default in<br># `files/pod-template-file.kubernetes-helm-yaml` and modifying from there.<br># We will set `priorityClassName` in this example:<br># podTemplate: |<br>#   apiVersion: v1<br>#   kind: Pod<br>#   metadata:<br>#     name: placeholder-name<br>#     labels:<br>#       tier: airflow<br>#       component: worker<br>#       release: {{ .Release.Name }}<br>#   spec:<br>#     priorityClassName: high-priority<br>#     containers:<br>#       - name: base<br>#         ...<br><br># Git sync<br>dags:<br>  persistence:<br>    # Annotations for dags PVC<br>    annotations: {}<br>    # Enable persistent volume for storing dags<br>    enabled: false<br>    # Volume size for dags<br>    size: 1Gi<br>    # If using a custom storageClass, pass name here<br>    storageClassName:<br>    # access mode of the persistent volume<br>    accessMode: ReadWriteOnce<br>    ## the name of an existing PVC to use<br>    existingClaim:<br>    ## optional subpath for dag volume mount<br>    subPath: ~<br>  gitSync:<br>    enabled: false<br><br>    # git repo clone url<br>    # ssh example: git@github.com:apache/airflow.git<br>    # https example: https://github.com/apache/airflow.git<br>    repo: https://github.com/apache/airflow.git<br>    branch: v2-2-stable<br>    rev: HEAD<br>    depth: 1<br>    # the number of consecutive failures allowed before aborting<br>    maxFailures: 0<br>    # subpath within the repo where dags are located<br>    # should be &quot;&quot; if dags are at repo root<br>    subPath: &quot;tests/dags&quot;<br>    # if your repo needs a user name password<br>    # you can load them to a k8s secret like the one below<br>    #   ---<br>    #   apiVersion: v1<br>    #   kind: Secret<br>    #   metadata:<br>    #     name: git-credentials<br>    #   data:<br>    #     GIT_SYNC_USERNAME: &lt;base64_encoded_git_username&gt;<br>    #     GIT_SYNC_PASSWORD: &lt;base64_encoded_git_password&gt;<br>    # and specify the name of the secret below<br>    #<br>    # credentialsSecret: git-credentials<br>    #<br>    #<br>    # If you are using an ssh clone url, you can load<br>    # the ssh private key to a k8s secret like the one below<br>    #   ---<br>    #   apiVersion: v1<br>    #   kind: Secret<br>    #   metadata:<br>    #     name: airflow-ssh-secret<br>    #   data:<br>    #     # key needs to be gitSshKey<br>    #     gitSshKey: &lt;base64_encoded_data&gt;<br>    # and specify the name of the secret below<br>    # sshKeySecret: airflow-ssh-secret<br>    #<br>    # If you are using an ssh private key, you can additionally<br>    # specify the content of your known_hosts file, example:<br>    #<br>    # knownHosts: |<br>    #    &lt;host1&gt;,&lt;ip1&gt; &lt;key1&gt;<br>    #    &lt;host2&gt;,&lt;ip2&gt; &lt;key2&gt;<br><br>    # interval between git sync attempts in seconds<br>    # high values are more likely to cause DAGs to become out of sync between different components<br>    # low values cause more traffic to the remote git repository<br>    wait: 5<br>    containerName: git-sync<br>    uid: 65533<br><br>    # When not set, the values defined in the global securityContext will be used<br>    securityContext: {}<br>    #  runAsUser: 65533<br>    #  runAsGroup: 0<br><br>    securityContexts:<br>      container: {}<br><br>    # container level lifecycle hooks<br>    containerLifecycleHooks: {}<br><br>    # Mount additional volumes into git-sync. It can be templated like in the following example:<br>    #   extraVolumeMounts:<br>    #     - name: my-templated-extra-volume<br>    #       mountPath: &quot;{{ .Values.my_custom_path }}&quot;<br>    #       readOnly: true<br>    extraVolumeMounts: []<br>    env: []<br>    # Supported env vars for gitsync can be found at https://github.com/kubernetes/git-sync<br>    # - name: &quot;&quot;<br>    #   value: &quot;&quot;<br><br>    resources: {}<br>    #  limits:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br>    #  requests:<br>    #   cpu: 100m<br>    #   memory: 128Mi<br><br>  localPath:<br>    enabled: true<br><br>logs:<br>  persistence:<br>    # Enable persistent volume for storing logs<br>    enabled: false<br>    # Volume size for logs<br>    size: 100Gi<br>    # Annotations for the logs PVC<br>    annotations: {}<br>    # If using a custom storageClass, pass name here<br>    storageClassName:<br>    ## the name of an existing PVC to use<br>    existingClaim:</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b98da6ab700d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thoughts on Hadoop Small files issue]]></title>
            <link>https://medium.com/@watermark1983/thoughts-on-hadoop-small-files-issue-599c53b6d299?source=rss-71110544769------2</link>
            <guid isPermaLink="false">https://medium.com/p/599c53b6d299</guid>
            <category><![CDATA[small-files]]></category>
            <category><![CDATA[hadoop]]></category>
            <dc:creator><![CDATA[Emma Y]]></dc:creator>
            <pubDate>Wed, 17 Jan 2024 21:35:31 GMT</pubDate>
            <atom:updated>2024-01-17T21:36:10.115Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the projects that I was doing is about to tackle the small file issue on hadoop.</p><p>Scenario 1:</p><p>Cloudera Hadoop name node crash with OOM as many small files generated. Configuration of the block size is 256MB. By checking with backend metadata tables, many files generated even with 1MB</p><p>Solution 1:</p><p>To coalesce these files, and regenerate the file.</p><p>Solution 2:</p><p>While generating the files, you can actually calculate how many files you want to generate by getting the dataframe size and the file type.</p><ol><li>Avro compression rate up to 90%</li><li>Parquet compression rate around 70%</li></ol><p>With the dataframe size (<a href="https://stackoverflow.com/questions/49492463/compute-size-of-spark-dataframe-sizeestimator-gives-unexpected-results">https://stackoverflow.com/questions/49492463/compute-size-of-spark-dataframe-sizeestimator-gives-unexpected-results</a>) and compression rate, it would be easier to get the number of output of files that supposed to be ingested on the hadoop .</p><p>E.g: the dataframe size is 3000MB, if ingested with parquet, the ultimate data size after compression would be around 900MB . the number of files would be 900/256 +1 =4 files. By this way, you can actually get as to the number of colesce(4) when writing to hadoop.</p><p>Drawback: you need to cache the dataframe into memory first.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=599c53b6d299" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark- How to Broadcast DataFrame if its size > 8G.]]></title>
            <link>https://medium.com/@watermark1983/spark-how-to-broadcast-dataframe-if-its-size-8g-ba2fd343ad3e?source=rss-71110544769------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba2fd343ad3e</guid>
            <category><![CDATA[broadcast]]></category>
            <category><![CDATA[spark]]></category>
            <dc:creator><![CDATA[Emma Y]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 04:46:27 GMT</pubDate>
            <atom:updated>2023-03-12T04:51:00.461Z</atom:updated>
            <content:encoded><![CDATA[<p>It is usual that in spark we broadcast LKP dataframe to achieve good performance. And normally we broadcast LKP dataframe due to its small size. Spark have limitation as to the size of dataframe that to be broadcasted.</p><p>And I have met one scenario that Spark think my LKP dataframe is greater than 8G. and eventually lead to exception in the running process. I am not sure how spark calculate the LKP dataframe size despite I cached each row of dataframe and try to impress the spark that my LKP dataframe less than 8G, and I have evaluated the size of dataframe and pretty sure the size is far less than 8G, but Spark not agree with me.</p><p>Considering that I have 8 columns in my main dataframe need to LKP the same dataframe, I have to broadcast no matter what, otherwise the performance would be very bad.</p><p>Later I think of split the dataframe with one salt key ( this method seems to be used in ML by splitting the test/train datasets)to make sure each run the result of split is the same . In my case, The code need to iteratively LKP 3-sub-dataframes with correct persistence policy. And then it worked as expected.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba2fd343ad3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VS Code extension with Databrick → https://www.databricks.com/blog/2023/02/14/announcing-a-native-vi]]></title>
            <link>https://medium.com/@watermark1983/vs-code-extension-with-databrick-https-www-databricks-com-blog-2023-02-14-announcing-a-native-vi-e1fab95b728a?source=rss-71110544769------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1fab95b728a</guid>
            <dc:creator><![CDATA[Emma Y]]></dc:creator>
            <pubDate>Fri, 17 Feb 2023 02:34:15 GMT</pubDate>
            <atom:updated>2023-02-17T02:34:15.493Z</atom:updated>
            <content:encoded><![CDATA[<p>VS Code extension with Databrick → <a href="https://www.databricks.com/blog/2023/02/14/announcing-a-native-visual-studio-code-experience-for-databricks.html">https://www.databricks.com/blog/2023/02/14/announcing-a-native-visual-studio-code-experience-for-databricks.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1fab95b728a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>