<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rajesh N</title>
    <description>The latest articles on DEV Community by Rajesh N (@rajesh_n_6a3ae85da2f1b2f3).</description>
    <link>https://dev.to/rajesh_n_6a3ae85da2f1b2f3</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1997461%2Ff4a8c42c-8710-4bc9-ae7e-eb0070164ec9.jpg</url>
      <title>DEV Community: Rajesh N</title>
      <link>https://dev.to/rajesh_n_6a3ae85da2f1b2f3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rajesh_n_6a3ae85da2f1b2f3"/>
    <language>en</language>
    <item>
      <title>FluxCD Helm Repository - chart pull error: 401</title>
      <dc:creator>Rajesh N</dc:creator>
      <pubDate>Fri, 21 Mar 2025 02:05:12 +0000</pubDate>
      <link>https://dev.to/rajesh_n_6a3ae85da2f1b2f3/fluxcd-helm-repository-chart-pull-error-401-5eoe</link>
      <guid>https://dev.to/rajesh_n_6a3ae85da2f1b2f3/fluxcd-helm-repository-chart-pull-error-401-5eoe</guid>
      <description>&lt;p&gt;Objective: Many of us used Flux CD helm repository and helm release with open repository on which anonymous access was allowed, but when we are using the authentication-enabled repository, it's difficult to fix helm release.&lt;/p&gt;

&lt;p&gt;In my organization, we use JFrog Artifactory and we enabled authentication for all the repos. So I prepared the helm release and helm repository with an authentication-enabled method.&lt;/p&gt;

&lt;p&gt;Simple helm repository with credential got this error &lt;/p&gt;

&lt;p&gt;chart pull error: failed to download chart for remote reference: failed to fetch &lt;a href="https://repo.ops.homelab.com/artifactory/dcops-helm-repo/keda-2.16.1.tgz" rel="noopener noreferrer"&gt;https://repo.ops.homelab.com/artifactory/dcops-helm-repo/keda-2.16.1.tgz&lt;/a&gt; : 401 &lt;/p&gt;

&lt;p&gt;apiVersion: source.toolkit.fluxcd.io/v1&lt;br&gt;
kind: HelmRepository&lt;br&gt;
metadata:&lt;br&gt;
  name: dcops-helm-repo&lt;br&gt;
  namespace: flux-system&lt;br&gt;
spec:&lt;br&gt;
  interval: 15m&lt;br&gt;
  provider: generic&lt;br&gt;
  passCredentials: true          #fix &lt;br&gt;
  url: "&lt;a href="https://repo.ops.homelab.com/artifactory/helm-repo" rel="noopener noreferrer"&gt;https://repo.ops.homelab.com/artifactory/helm-repo&lt;/a&gt;"&lt;br&gt;
  secretRef:&lt;br&gt;
    name: artifact-credential&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to control the cluster nodes recreation in Tanzu</title>
      <dc:creator>Rajesh N</dc:creator>
      <pubDate>Mon, 28 Oct 2024 05:18:16 +0000</pubDate>
      <link>https://dev.to/rajesh_n_6a3ae85da2f1b2f3/how-to-control-the-cluster-nodes-recreation-in-tanzu-2hg2</link>
      <guid>https://dev.to/rajesh_n_6a3ae85da2f1b2f3/how-to-control-the-cluster-nodes-recreation-in-tanzu-2hg2</guid>
      <description>&lt;p&gt;In a Tanzu Kubernetes cluster, the Supervisor cluster continuously monitors and reconciles the cluster. If any worker node fails to respond within the monitoring interval, it is marked as failed, and a new worker node is created to replace it. However, this operation may not always be accurate. If you plan to perform any maintenance on the Tanzu environment, it is necessary to pause the cluster reconciliation; otherwise, you may see many nodes being recreated.&lt;/p&gt;

&lt;p&gt;If you are planning any network maintenance within your organization and expect any storage latency or network latency/interruption, it is better to pause the cluster reconciliation.&lt;/p&gt;

&lt;p&gt;How to Pause the Cluster Reconciliation&lt;/p&gt;

&lt;p&gt;Login to the Supervisor Node:&lt;br&gt;
root@vcenter [ ~ ]# sshpass -p &lt;code&gt;/usr/lib/vmware-wcp/decryptK8Pwd.py |grep PWD |awk '{print $2}'&lt;/code&gt; ssh -o StrictHostKeyChecking=no root@&lt;code&gt;/usr/lib/vmware-wcp/decryptK8Pwd.py |grep IP |awk '{print $2}'&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To Pause the Cluster Reconciliation:&lt;br&gt;
kubectl patch cluster --type merge -p '{"spec":{"paused": true}}' -n tanzu-vns tanzu-cluster&lt;/p&gt;

&lt;p&gt;To Resume the Cluster Reconciliation:&lt;br&gt;
kubectl patch cluster --type merge -p '{"spec":{"paused": false}}' -n tanzu-vns tanzu-cluster&lt;/p&gt;

</description>
      <category>tanzu</category>
      <category>discuss</category>
      <category>kubernetes</category>
      <category>vmware</category>
    </item>
    <item>
      <title>tanzu worker node created with wrong operating system</title>
      <dc:creator>Rajesh N</dc:creator>
      <pubDate>Mon, 28 Oct 2024 05:04:55 +0000</pubDate>
      <link>https://dev.to/rajesh_n_6a3ae85da2f1b2f3/tanzu-wrong-operating-system-worker-node-2pni</link>
      <guid>https://dev.to/rajesh_n_6a3ae85da2f1b2f3/tanzu-wrong-operating-system-worker-node-2pni</guid>
      <description>&lt;p&gt;In the VMware 8 Tanzu environment, after upgrading to WCP 1.27, worker nodes and control plane nodes are created with the default operating system (Photon) even though Ubuntu was selected in the TKR selection.&lt;/p&gt;

&lt;p&gt;This issue was observed only in existing Tanzu Kubernetes clusters. When the worker nodes are created with the wrong operating system, some system pods may remain in a pending state due to node selector labels not matching on the newly created worker nodes.&lt;/p&gt;

&lt;p&gt;Workaround: Apply the node label with the Ubuntu version tag:&lt;/p&gt;

&lt;p&gt;kubectl label node  --overwrite run.tanzu.vmware.com/kubernetesDistributionVersion=v1.25.13---vmware.1-fips.1-tkg.1.ubuntu&lt;/p&gt;

&lt;p&gt;To apply the label to all nodes:&lt;/p&gt;

&lt;p&gt;kubectl get nodes | awk '{ print $1 }' | xargs -I {} kubectl label nodes {} run.tanzu.vmware.com/kubernetesDistributionVersion=v1.25.13---vmware.1-fips.1-tkg.1.ubuntu --overwrite&lt;/p&gt;

&lt;p&gt;In vSphere version 8u3, Tanzu introduced a TKC annotation for the operating system:&lt;/p&gt;

&lt;p&gt;run.tanzu.vmware.com/resolve-os-image: os-name=ubuntu&lt;/p&gt;

&lt;p&gt;We need to annotate the cluster with run.tanzu.vmware.com/resolve-os-image:&lt;/p&gt;

&lt;p&gt;kubectl annotate tkc -n kubernetes-vns  run.tanzu.vmware.com/resolve-os-image="os-name=ubuntu"&lt;/p&gt;

</description>
      <category>tanzu</category>
      <category>discuss</category>
      <category>kubernetes</category>
      <category>vmware</category>
    </item>
  </channel>
</rss>
