<?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 frozenprocess on Medium]]></title>
        <description><![CDATA[Stories by frozenprocess on Medium]]></description>
        <link>https://medium.com/@frozenprocess?source=rss-a30966012d83------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9XWOW6mikoTgfT2gblUVPw.png</url>
            <title>Stories by frozenprocess on Medium</title>
            <link>https://medium.com/@frozenprocess?source=rss-a30966012d83------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:19:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@frozenprocess/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[How to enable Calico Whisker in a Manifest based install]]></title>
            <link>https://medium.com/@frozenprocess/how-to-enable-calico-whisker-in-a-manifest-based-install-d3df7cf49a68?source=rss-a30966012d83------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3df7cf49a68</guid>
            <category><![CDATA[projectcalico]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[frozenprocess]]></dc:creator>
            <pubDate>Sun, 09 Nov 2025 05:24:47 GMT</pubDate>
            <atom:updated>2025-11-25T23:28:56.145Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubernetes Network Observability for DevOps: Inside Calico’s Manifest-Based Deployment</h3><p>Modern Kubernetes environments are dynamic and complex , and understanding what’s really happening across your network can feel like chasing shadows.</p><p>That’s where <strong>network observability</strong> comes in. In this article, we’ll go beyond high-level dashboards and dive into the nuts and bolts of how Calico Observability stack (Calico Whisker) enables <strong>deep Kubernetes network observability</strong>.</p><p>We’ll walk through a full manifest-based setup: bootstrapping a lightweight cluster, installing Calico v3.31, generating and signing certificates, and deploying <strong>Goldmane</strong> and <strong>Calico Whisker</strong>, Calico’s flow-monitoring components.</p><p>By doing these manually, you’ll gain a clear view of how each piece fits together, from encrypting component communication to the flow logs that power observability.</p><p>Whether you’re a platform engineer seeking transparency into east-west traffic or a security practitioner wanting to trace workloads with precision, this tutorial shows how to illuminate your Kubernetes network from the inside out.</p><p>Let’s unlock true observability — one manifest at a time.</p><h3>Requirements</h3><p>While this tutorial can be read like your favorite cat scify, if you wish to replicate the same test in your environment there are a bunch of requirements that you need to install/have.<br>- Docker<br>- K3d<br>- Calico manifest based install v3.31.0<br>- OpenSSL (To issue and sign certificates)<br>- Internet<br>- Star and clone <a href="https://github.com/frozenprocess/whisker-manifest">this repo</a> ;)</p><h3>Setup your cluster</h3><pre>**Note** This guide was written and tested for Calico v3.31.0, and expects that you are running the same version. In a case that your Calico version might differ you might have to adjust some of the commands and deployments.</pre><p>Ok, just like the matrix you have chosen the red pill and now I’m going to show you how deep the rabbit hole goes. For this tutorial we are going to use `k3d`, and `docker` (hence being a requirement). This will allow us to spin up a `k3s` cluster super fast.</p><pre><br>k3d cluster create \<br>  my-calico-manifest-cluster \<br>  -s 1 -a 2 \<br>  --k3s-arg &#39;--flannel-backend=none@server:*&#39; \<br>  --k3s-arg &#39;--disable-network-policy@server:*&#39; \<br>  --k3s-arg &#39;--disable=traefik@server:*&#39; \<br>  --k3s-arg &#39;--cluster-cidr=192.168.0.0/16@server:*&#39;</pre><h3>Install Calico and Typha in your cluster</h3><p>Now that our cluster is ready, it’s time to install Calico. This time, we’ll install both Calico and Typha using manifests instead of the operator.</p><pre><br>kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.31.0/manifests/calico-typha.yaml</pre><p>**Note:** Currently, you need at least one instance of Typha running to use Goldmane and Whisker.</p><p>You can use the following command to verify if `calico-node` pods are running.</p><pre>kubectl rollout status -n kube-system ds/calico-node</pre><p>Keep in mind that a manifest-based install requires you, the administrator , to configure every part of Calico. While this approach offers a high degree of flexibility, it’s not without its challenges, such as missing YAML indentations or using values that are deprecated or unsupported in the current version of Calico.</p><p>This is why Project Calico recommend using the tigera-operator. It’s a dedicated operator (so good we’re saying it twice!) designed to configure and maintain your Calico installation — so you can focus on what matters most (ahem… vacations).</p><h3>Generating certificates</h3><p>By default, a manifest-based install does not secure Calico components. It is the administrator’s responsibility to generate a Certificate Authority, issue and sign the necessary certificates, and rotate them on the desired schedule. Keep in mind that all of these steps are automated when using an operator-based installation.</p><h3>🔐 Certificate Authority (CA)</h3><p>To secure Calico components, we need a Certificate Authority (CA) to issue and sign our certificates. While this could be a publicly trusted CA that issues certificates for general use, we can also create our own internal CA to generate and sign these certificates for our specific needs.</p><p>SSL configurations used below can be found in this <a href="https://github.com/frozenprocess/whisker-manifest/tree/main">GitHub Repo</a>. Don’t forget to spend some stars on it ;)</p><p>Use the following command to establish a CA and generate its keys:</p><pre>openssl genrsa -out certs/ca.key 2048<br><br>openssl req -new -x509 -key certs/ca.key \<br>    -subj &#39;/CN=tigera-ca-bundle/O=We love Calico/C=US&#39; \<br>    -days 1024 -out certs/ca.crt</pre><h3>📥 Generating a Certificate for calico-typha (Typha Server)</h3><p>Calico Typha is a middleware key-value caching system designed to sit between `calico-node` requests and your Kubernetes `kube-apiserver`. This setup allows Typha to query the API server once and then serve the cached responses to all `calico-node` instances. If any changes occur within your Kubernetes cluster, Typha will trigger a new query to update its cache accordingly.</p><p>**Note:** Remember the `CN=` value used here and in the next step — these are referenced later in the Typha and Calico-node tuning section as part of the certificate verification process.</p><p>Use the following command to generate a certificate request for Typha:</p><pre>openssl req \<br>  -newkey rsa:2048 -nodes -sha256 -keyout certs/typha-server.key \<br>  -subj &#39;/CN=typha-server/O=We love Calico/C=US&#39; \<br>  -out certs/typha-server.csr</pre><p>Use the following command to sign and generate a certificate for Typha:</p><pre>openssl x509 -req \<br>    -in certs/typha-server.csr \<br>    -CA certs/ca.crt -CAkey certs/ca.key \<br>    -out certs/typha-server.crt \<br>    -days 1024</pre><h3>📥 Generating a Certificate for Calico-Node (Typha Client)</h3><p>In order to generate a certificate for the calico-node pod, you first need to create a certificate request. This is necessary because your CA must issue and sign all certificates.</p><p>Use the following command to generate a certificate request:</p><pre>openssl req \<br>  -newkey rsa:2048 -nodes -sha256 -keyout certs/typha-client.key \<br>  -subj &#39;/CN=typha-client/O=We love Calico/C=US&#39; \<br>  -out certs/typha-client.csr</pre><p>Use the following command to sign and generate the client certificates:</p><pre>openssl x509 -req \<br>    -in certs/typha-client.csr \<br>    -CA certs/ca.crt -CAkey certs/ca.key \<br>    -out certs/typha-client.crt \<br>    -days 1024</pre><h3>📥 Generating Certificates for Goldmane and Whisker</h3><p>Goldmane and Whisker certificates are a little different. Since these two components handle sensitive information — specifically Network Flow Logs — we need to assign specific roles to their certificates. Additionally, because these certificates will be used to emit flow logs from other workloads (such as calico-node in this example), we must include Subject Alternative Names (SANs) in the certificates.</p><p>Use the following command to generate a certificate `request` for Goldmane:</p><pre>openssl req \<br>  -newkey rsa:2048 -nodes -sha256 -keyout certs/goldmane.key \<br>  -subj &#39;/CN=goldmane/O=We love Calico/C=US&#39; \<br>  -addext &quot;subjectAltName=DNS:goldmane,DNS:goldmane.kube-system,DNS:goldmane.kube-system.svc,DNS:goldmane.kube-system.svc.cluster.local&quot; \<br>  -out certs/goldmane.csr</pre><p>Use the following command to generate a certificate `request` for Whisker:</p><pre>openssl req \<br>  -newkey rsa:2048 -nodes -sha256 -keyout certs/whisker-backend.key \<br>  -subj &#39;/CN=whisker-backend/O=We love Calico/C=US&#39; \<br>  -addext &quot;subjectAltName=DNS:whisker-backend,DNS:whisker-backend.kube-system,DNS:whisker-backend.kube-system.svc,DNS:whisker-backend.kube-system.svc.cluster.local&quot; \<br>  -out certs/whisker-backend.csr</pre><h3>Finishing the Certificate Requests and Signing Certificates with our CA</h3><p>Great! Now that we have two certificate requests, it’s time to sign them with our CA. This allows any workload using these certificates to verify their authenticity.</p><p>Use the following command to generate and sing your Goldmane certificate:</p><pre>openssl x509 -req \<br>    -in certs/goldmane.csr \<br>    -CA certs/ca.crt -CAkey certs/ca.key \<br>    -out certs/goldmane.crt \<br>    -days 1024 \<br>    -sha256 -extensions v3_req -extfile certs/req-goldmane.conf</pre><p>Do the same for Whisker:</p><pre>openssl x509 -req \<br>    -in certs/whisker-backend.csr \<br>    -CA certs/ca.crt -CAkey certs/ca.key \<br>    -out certs/whisker-backend.crt \<br>    -days 1024 \<br>    -sha256 -extensions v3_req -extfile certs/req-whisker.conf</pre><h3>Importing Certificates into the cluster</h3><p>Now that all our certificates are signed and ready, let’s import them into our Kubernetes cluster as ConfigMaps and Secrets. This is a best practice because it allows us to easily update certificates by replacing these ConfigMaps and Secrets.</p><p>Use the following command to import all the Certificates into your cluster:</p><pre>kubectl create configmap goldmane-ca-bundle \<br>  --namespace=kube-system \<br>  --from-file=ca-bundle.crt=./certs/ca.crt \<br>  --from-file=tigera-ca-bundle.crt=./certs/ca.crt \<br>  --dry-run=client -o yaml | kubectl apply -f -<br><br>kubectl create secret tls goldmane-key-pair \<br>  --cert=certs/goldmane.crt \<br>  --key=certs/goldmane.key \<br>  --namespace=kube-system \<br>  --dry-run=client -o yaml | kubectl apply -f -<br><br>kubectl create secret tls typha-client-key-pair \<br>  --cert=certs/typha-client.crt \<br>  --key=certs/typha-client.key \<br>  --namespace=kube-system \<br>  --dry-run=client -o yaml | kubectl apply -f -<br><br>kubectl create secret tls typha-server-key-pair \<br>  --cert=certs/typha-server.crt \<br>  --key=certs/typha-server.key \<br>  --namespace=kube-system \<br>  --dry-run=server -o yaml | kubectl apply -f -<br><br>kubectl create secret tls whisker-backend-key-pair \<br>  --cert=certs/whisker-backend.crt \<br>  --key=certs/whisker-backend.key \<br>  --namespace=kube-system \<br>  --dry-run=server -o yaml | kubectl apply -f -</pre><p>If you’ve come here from a blog, now is the time to go back. The certificate generation step ends here.</p><h3>Tuning Typha to Use Certificates</h3><p>Our next step is to assign certificates to Typha. To do this, you need to modify the calico-typha manifest by adding a VolumeMount to connect the previously generated secrets to the pods, adding a volume to mount them in the workloads, and setting several environment variables so Typha knows it’s certificate time.</p><p>Use the following command to modify your typha deployment:</p><pre>kubectl patch deployment calico-typha -n kube-system --type=strategic -p=&#39;<br>{<br>  &quot;spec&quot;: {<br>    &quot;template&quot;: {<br>      &quot;spec&quot;: {<br>        &quot;volumes&quot;: [<br>          {<br>            &quot;name&quot;: &quot;config&quot;,<br>            &quot;configMap&quot;: {<br>              &quot;name&quot;: &quot;goldmane&quot;,<br>              &quot;defaultMode&quot;: 420<br>            }<br>          },<br>          {<br>            &quot;name&quot;: &quot;goldmane-ca-bundle&quot;,<br>            &quot;configMap&quot;: {<br>              &quot;name&quot;: &quot;goldmane-ca-bundle&quot;,<br>              &quot;defaultMode&quot;: 420<br>            }<br>          },<br>          {<br>            &quot;name&quot;: &quot;typha-server-key-pair&quot;,<br>            &quot;secret&quot;: {<br>              &quot;secretName&quot;: &quot;typha-server-key-pair&quot;,<br>              &quot;defaultMode&quot;: 420<br>            }<br>          }<br>        ],<br>        &quot;containers&quot;: [<br>          {<br>            &quot;name&quot;: &quot;calico-typha&quot;,<br>            &quot;env&quot;: [<br>              {<br>                &quot;name&quot;: &quot;TYPHA_CAFILE&quot;,<br>                &quot;value&quot;: &quot;/etc/pki/tls/certs/tigera-ca-bundle.crt&quot;<br>              },<br>              {<br>                &quot;name&quot;: &quot;TYPHA_SERVERCERTFILE&quot;,<br>                &quot;value&quot;: &quot;/typha-server-key-pair/tls.crt&quot;<br>              },<br>              {<br>                &quot;name&quot;: &quot;TYPHA_SERVERKEYFILE&quot;,<br>                &quot;value&quot;: &quot;/typha-server-key-pair/tls.key&quot;<br>              },<br>              {<br>                &quot;name&quot;: &quot;TYPHA_CLIENTCN&quot;,<br>                &quot;value&quot;: &quot;typha-client&quot;<br>              }<br>            ],<br>            &quot;volumeMounts&quot;: [<br>              {<br>                &quot;name&quot;: &quot;goldmane-ca-bundle&quot;,<br>                &quot;mountPath&quot;: &quot;/etc/pki/tls/certs&quot;,<br>                &quot;readOnly&quot;: true<br>              },<br>              {<br>                &quot;name&quot;: &quot;typha-server-key-pair&quot;,<br>                &quot;mountPath&quot;: &quot;/typha-server-key-pair&quot;,<br>                &quot;readOnly&quot;: true<br>              }<br>            ]<br>          }<br>        ]<br>      }<br>    }<br>  }<br>}&#39;</pre><p>**Note**: We also share the CA certificate (but not the key). Since our CA is not a public or widely trusted CA, we use the `TYPHA_CAFILE` environment variable to inject the CA certificate into the Typha process.</p><h3>Tunning calico-node to use certificates</h3><p>Now we need to do the same for `calico-node` daemonset,</p><p>**Note:** Since `calico-node` acts as a client, we set the `FELIX_TYPHACN` environment variable to `typha-server` so it matches the certificate issued earlier to the server. This provides `calico-node` with an additional verification check.</p><p>Use the following command to configure the `calico-node` daemonset to use certificates for communication with Typha:</p><pre>kubectl patch ds calico-node -n kube-system --type=strategic -p=&#39;<br>{<br>  &quot;spec&quot;: {<br>    &quot;template&quot;: {<br>      &quot;spec&quot;: {<br>        &quot;volumes&quot;: [<br>          {<br>            &quot;name&quot;: &quot;config&quot;,<br>            &quot;configMap&quot;: {<br>              &quot;name&quot;: &quot;goldmane&quot;,<br>              &quot;defaultMode&quot;: 420<br>            }<br>          },<br>          {<br>            &quot;name&quot;: &quot;goldmane-ca-bundle&quot;,<br>            &quot;configMap&quot;: {<br>              &quot;name&quot;: &quot;goldmane-ca-bundle&quot;,<br>              &quot;defaultMode&quot;: 420<br>            }<br>          },<br>          {<br>            &quot;name&quot;: &quot;typha-client-key-pair&quot;,<br>            &quot;secret&quot;: {<br>              &quot;secretName&quot;: &quot;typha-client-key-pair&quot;,<br>              &quot;defaultMode&quot;: 420<br>            }<br>          }<br>        ],<br>        &quot;containers&quot;: [<br>          {<br>            &quot;name&quot;: &quot;calico-node&quot;,<br>            &quot;env&quot;: [<br>              {<br>                &quot;name&quot;: &quot;FELIX_TYPHACAFILE&quot;,<br>                &quot;value&quot;: &quot;/etc/pki/tls/certs/tigera-ca-bundle.crt&quot;<br>              },<br>              {<br>                &quot;name&quot;: &quot;FELIX_TYPHACERTFILE&quot;,<br>                &quot;value&quot;: &quot;/typha-client-key-pair/tls.crt&quot;<br>              },<br>              {<br>                &quot;name&quot;: &quot;FELIX_TYPHAKEYFILE&quot;,<br>                &quot;value&quot;: &quot;/typha-client-key-pair/tls.key&quot;<br>              },<br>              {<br>                &quot;name&quot;: &quot;FELIX_TYPHAK8SNAMESPACE&quot;,<br>                &quot;value&quot;: &quot;kube-system&quot;<br>              },<br>              {<br>                &quot;name&quot;: &quot;FELIX_TYPHACN&quot;,<br>                &quot;value&quot;: &quot;typha-server&quot;<br>              }<br>            ],<br>            &quot;volumeMounts&quot;: [<br>              {<br>                &quot;name&quot;: &quot;goldmane-ca-bundle&quot;,<br>                &quot;mountPath&quot;: &quot;/etc/pki/tls/certs&quot;,<br>                &quot;readOnly&quot;: true<br>              },<br>              {<br>                &quot;name&quot;: &quot;typha-client-key-pair&quot;,<br>                &quot;mountPath&quot;: &quot;/typha-client-key-pair&quot;,<br>                &quot;readOnly&quot;: true<br>              }<br>            ]<br>          }<br>        ]<br>      }<br>    }<br>  }<br>}&#39;</pre><p>Before proceeding to the next step, se the following command to ensure your changes have been applied to Calico and Typha.</p><p>Use the following command to verify:</p><pre>kubectl rollout status -n kube-system ds/calico-node deployment/calico-typha</pre><h3>Deploying Goldmane</h3><p>Now that our Calico and Typha workloads are running and secured, let’s start deploying Goldmane and Whisker.</p><p>First, we need a ServiceAccount. Service accounts provide workloads with an identity, allowing administrators to manage their permissions and access.</p><p>Use the following command to generate a service account for Goldmane:</p><pre>kubectl create -f -&lt;&lt;EOF<br>apiVersion: v1<br>kind: ServiceAccount<br>metadata:<br>  name: goldmane<br>  namespace: kube-system<br>EOF</pre><p>Next, we need to create a Service that points to the Goldmane ingestion port. This Service will be used by any emitter (in this case, `calico-node`) to send flow data to the Goldmane server.</p><p>Use the following command to generate the service:</p><pre>kubectl create -f -&lt;&lt;EOF<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: goldmane<br>  namespace: kube-system<br>spec:<br>  ports:<br>  - port: 7443<br>    protocol: TCP<br>    targetPort: 7443<br>  selector:<br>    k8s-app: goldmane<br>  sessionAffinity: None<br>  type: ClusterIP<br>EOF</pre><p>The Goldmane binary looks for a configuration file at startup, so we need to provide that file when launching Goldmane.</p><p>Use the following command to generate the config file as a ConfigMap.</p><pre>kubectl create -f -&lt;&lt;EOF<br>apiVersion: v1<br>data:<br>  config.json: &#39;{&quot;emitFlows&quot;:false}&#39;<br>kind: ConfigMap<br>metadata:<br>  name: goldmane<br>  namespace: kube-system<br>EOF</pre><h3>Tunning Goldmane Deployment</h3><p>The Goldmane binary looks for specific indicators to adjust its behavior. Since certificates have a finite lifetime, we use environment variables to specify which certificates Goldmane should use.</p><p>Examine the following block, it is an example that illustrate the required changes in Goldmane deployment that you will deploy later.</p><pre>        - name: SERVER_CERT_PATH<br>          value: /goldmane-key-pair/tls.crt<br>        - name: SERVER_KEY_PATH<br>          value: /goldmane-key-pair/tls.key<br>        - name: CA_CERT_PATH<br>          value: /etc/pki/tls/certs/tigera-ca-bundle.crt</pre><p>Similar to the previous steps, we need to mount the VolumeMounts to the workload so they can be accessed from within the workload.</p><pre>      volumes:<br>      - configMap:<br>          defaultMode: 420<br>          name: goldmane<br>        name: config<br>      - configMap:<br>          defaultMode: 420<br>          name: goldmane-ca-bundle<br>        name: goldmane-ca-bundle<br>      - name: goldmane-key-pair<br>        secret:<br>          defaultMode: 420<br>          secretName: goldmane-key-pair</pre><p>Finally, we need to mount these VolumeMounts at their respective paths inside the workload.</p><pre>        volumeMounts:<br>        - mountPath: /config<br>          name: config<br>          readOnly: true<br>        - mountPath: /etc/pki/tls/certs<br>          name: goldmane-ca-bundle<br>          readOnly: true<br>        - mountPath: /goldmane-key-pair<br>          name: goldmane-key-pair<br>          readOnly: true</pre><p>**Note:** The following Gist file contains all the changes we reviewed above.</p><p>Use the following command to deploy Goldmane:</p><pre>kubectl create -f https://gist.githubusercontent.com/frozenprocess/5555ec3266133e53510b4bda59f38e42/raw/7a7203c6ff7bb8b4cde29b94a6653bc016258b94/goldmane.yaml</pre><h3>Deploying Whisker UI</h3><p>Now that Goldmane is up and running, it’s time to set up the Whisker UI.</p><p>First, we need to create a ServiceAccount. Service accounts provide workloads with an identity, allowing administrators to control and manage their permissions.</p><p>Use the following command to create a ServiceAccount for Whisker:</p><pre>kubectl create -f -&lt;&lt;EOF<br>apiVersion: v1<br>kind: ServiceAccount<br>metadata:<br>  name: whisker<br>  namespace: kube-system<br>EOF</pre><p>Next, we need to create a Service that points to the Whisker UI port. This Service will be used by Whisker users (administrators) to view flow logs and policies within Whisker. Keep in mind, we recommend using a `ClusterIP` service since flow logs contain sensitive information.</p><p>Use the following command to generate the service:</p><pre>kubectl create -f -&lt;&lt;EOF<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: whisker<br>  namespace: kube-system<br>spec:<br>  ports:<br>  - port: 8081<br>    protocol: TCP<br>    targetPort: 8081<br>  selector:<br>    k8s-app: whisker<br>  sessionAffinity: None<br>  type: ClusterIP<br>EOF</pre><h3>Tunning Whisker Deployment</h3><p>Similar to the Goldmane binary, Whisker looks for specific indicators to adjust its behavior. Since certificates have a finite lifetime, we use environment variables to specify which certificates Whisker should use. Additionally, Whisker needs a URL to locate Goldmane, which is provided by setting the `GOLDMANE_HOST` environment variable in the deployment.</p><p>Examine the following block, it is an example that illustrate the required changes in Whisker deployment that you will deploy later.</p><pre>      - env:<br>        - name: LOG_LEVEL<br>          value: INFO<br>        - name: PORT<br>          value: &quot;3002&quot;<br>        - name: GOLDMANE_HOST<br>          value: goldmane.kube-system.svc.cluster.local:7443<br>        - name: TLS_CERT_PATH<br>          value: /whisker-backend-key-pair/tls.crt<br>        - name: TLS_KEY_PATH<br>          value: /whisker-backend-key-pair/tls.key</pre><p>Similar to the previous parts we need to mount the VolumeMounts to the workload so they an be accessed inside the workload.</p><pre>        volumeMounts:<br>        - mountPath: /whisker-backend-key-pair<br>          name: whisker-backend-key-pair<br>          readOnly: true<br>        - mountPath: /etc/pki/tls/certs<br>          name: goldmane-ca-bundle<br>          readOnly: true</pre><p>Finally, we need to mount these VolumeMounts in their respective path inside the workload.</p><pre>      volumes:<br>      - name: whisker-backend-key-pair<br>        secret:<br>          defaultMode: 420<br>          secretName: whisker-backend-key-pair<br>      - configMap:<br>          defaultMode: 420<br>          name: goldmane-ca-bundle<br>        name: goldmane-ca-bundle</pre><p>**Note:** The following Gist file contains all the changes we reviewed above.</p><p>Use the following command to deploy Whisker:</p><pre>kubectl create -f https://gist.githubusercontent.com/frozenprocess/5555ec3266133e53510b4bda59f38e42/raw/7a7203c6ff7bb8b4cde29b94a6653bc016258b94/whisker.yaml</pre><p>You can verify the Goldmane and Whisker deployments in a manifest-based install by using the following command:</p><pre>kubectl rollout status -n kube-system deployment/goldmane<br>kubectl rollout status -n kube-system deployment/whisker</pre><h3>Accessing Whisker</h3><p>**Note:** The following step must be running if you want to access the Whisker UI using a ClusterIP service.</p><p>Open a new terminal and run the following command:</p><pre>kubectl port-forward -n kube-system deployment/whisker 8081:8081</pre><p>Now, open a browser and navigate to `localhost:8081`. You should see the Whisker UI. However, no flows will appear because flow generation happens in Felix (the “Brian” of Calico), and we haven’t yet configured Calico to enable it.</p><p>It’s time to tweak the environment variables again!</p><h3>Instructing Felix to generate Flows Logs and ship them to Goldmane</h3><p>Now that all the certificates are in place, we just need to set two more environment variables in the `calico-node` daemonset to instruct Felix to enable flow log generation and specify where to send them — our Goldmane server.</p><pre>        - name: FELIX_FLOWLOGSGOLDMANESERVER<br>          value: goldmane.kube-system.svc:7443<br>        - name: FELIX_FLOWLOGSFLUSHINTERVAL<br>          value: &quot;15&quot;</pre><p>Use the following command to enable Flow Log generation:</p><pre><br>kubectl patch ds calico-node -n kube-system --type=strategic -p=&#39;<br>{<br>  &quot;spec&quot;: {<br>    &quot;template&quot;: {<br>      &quot;spec&quot;: {<br>        &quot;containers&quot;: [<br>          {<br>            &quot;name&quot;: &quot;calico-node&quot;,<br>            &quot;env&quot;: [<br>              {<br>                &quot;name&quot;: &quot;FELIX_FLOWLOGSGOLDMANESERVER&quot;,<br>                &quot;value&quot;: &quot;goldmane.kube-system.svc:7443&quot;<br>              },<br>              {<br>                &quot;name&quot;: &quot;FELIX_FLOWLOGSFLUSHINTERVAL&quot;,<br>                &quot;value&quot;: &quot;15&quot;<br>              }<br>            ]<br>          }<br>        ]<br>      }<br>    }<br>  }<br>}&#39;</pre><p>After this change, it will take a moment for all `calico-node` pods in your cluster to restart. However, if you check the Whisker UI, you might not see any flow logs appear immediately.</p><p>Ah, it’s puzzle!</p><h3>It is always DNS</h3><p>Up to this point, we have configured everything required for Goldmane and Whisker to run, and in an ideal scenario, things should work as expected. However, if you check the `calico-node` logs, you may see a warning similar to the following:</p><p><em>You can use the following command to check for these errors in your environment:</em></p><pre>kubectl logs -fn kube-system ds/calico-node</pre><p>You should see a result similar to the following error:</p><pre>2025-07-17 14:21:38.502 [WARNING][75] felix/client.go 175: Failed to connect to flow server error=rpc error: code = Unavailable desc = name resolver error: produced zero addresses target=&quot;dns:///goldmane.kube-system.svc:7443&quot;</pre><p>Ah, it seems there’s an issue. Back to Kubernetes 101: Pods can be connected either to the host network — meaning they communicate using the node’s IP address — or to a namespace network. This behavior is controlled by the `hostNetwork: true` field in your DaemonSet, Deployment, or Pod specification.</p><p>You might be wondering, what does this have to do with our DNS issue? Well, everything. From the perspective of `calico-node`, it tries to resolve the internal DNS record `goldmane.kube-system.svc`. However, this query is sent to the host’s DNS server and forwarders, which don’t know anything about Kubernetes records. To fix this, we need to change the `dnsPolicy` of our daemonset to `ClusterFirstWithHostNet`. This setting allows DNS queries to be routed through the cluster DNS first.</p><pre>kubectl patch ds calico-node -n kube-system --type=strategic -p=&quot;\<br>{<br>  \&quot;spec\&quot;: {<br>    \&quot;template\&quot;: {<br>      \&quot;spec\&quot;: {<br>        \&quot;dnsPolicy\&quot;: \&quot;ClusterFirstWithHostNet\&quot;<br>      }<br>    }<br>  }<br>}&quot;</pre><p>You should be able to see some flows in your Whisker UI shortly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f8Ej4wk-vs7uucc6gCdOLg.png" /></figure><p>Congratulations, you are running Calico Whisker in a manifest based installation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3df7cf49a68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing the Phantom GKE Cluster: The Google Cloud Bug That Cost Me Money]]></title>
            <link>https://medium.com/@frozenprocess/fixing-the-phantom-gke-cluster-the-google-cloud-bug-that-cost-me-money-6136de771372?source=rss-a30966012d83------2</link>
            <guid isPermaLink="false">https://medium.com/p/6136de771372</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[gke]]></category>
            <category><![CDATA[gce]]></category>
            <category><![CDATA[k8s]]></category>
            <dc:creator><![CDATA[frozenprocess]]></dc:creator>
            <pubDate>Sun, 20 Apr 2025 18:24:40 GMT</pubDate>
            <atom:updated>2025-04-20T18:46:29.977Z</atom:updated>
            <content:encoded><![CDATA[<p>For a couple of months, I’ve been paying for a phantom GKE cluster, a zombie Kubernetes cluster that shows up in the GKE dashboard, racks up bills, but refuses to be deleted, accessed, or even accept worker nodes to be operational. Basically, it was chilling in my account like it was vacationing in Cancun.</p><p>While usually you could easily delete your GKE clusters, this one wouldn’t go away, and would not allow me to create any other clusters in this Google project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*whGxuOPzSAfBMliv-mPUKw.png" /></figure><h3>🧠 TL;DR (If You’re in a Hurry)</h3><p>If you’re just here for the fix (computer not the other kind):</p><p><strong>Go to</strong><br> View All Products (left-hand sidebar) → Management → APIs &amp; Services → Compute Engine API<br> <strong>Then:</strong></p><ol><li><strong>Disable</strong> the Compute Engine API</li><li><strong>Re-enable</strong> it</li><li>Go back and delete the phantom cluster — it should finally let you</li></ol><h3>Now let’s get back to the story.</h3><p>Each time that I tried to delete this GKE cluster it would prompt a message similar to the following, complaining about permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3veT_t20xcZfW0kmMntO5Q.png" /></figure><p>You are probably now saying <strong>duh!</strong> since cloud is secure by default you need to have permission to do stuff, but I like to note that I was doing this with an account that had the Owner role (aka GOD access).</p><p>Funny thing was the error hinting at some left over resources that are being used by other resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ym_y0BQjhrwshaz8YfkXzQ.png" /></figure><p>That was a clue! The error hinted at some leftover resources being used elsewhere and the GUI showed some firewall forwarding rules that seemed suspicious. Naturally, I did what any log junkie would do: I went down the CLI rabbit hole.</p><pre>gcloud compute forwarding-rules list --global</pre><p>I tried listing and deleting those forwarding rules directly through the GUI, the CLI, and even by blindly copy-pasting commands from every semi-relevant Stack Overflow thread I could find. Nothing worked. The forwarding rules were like Schrödinger’s resources supposedly there, but totally invisible and untouchable from every tool I had.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wr7EBj58hdzRoPrYqXeLvQ.png" /></figure><p>No luck!</p><h3><strong>So how did I fix it?</strong></h3><p>Well, we know by know that problem has something to do with permissions and some lingering resources, fortunately everything is contained in the Google Compute module and whatever we do is going to send an API request to the Google platform. That is when I had the idea of let’s reinstantiate the module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*D4_v7578gWczbBRLvhHWzQ.gif" /></figure><p>Disabling and re-enabling the API likely flushed some stale state or dependency mapping in GCP allowing me to get rid of all ligering resource without a need to delete the whole project.</p><p>Basically, go to View All Products on the side bar menu -&gt; Managment -&gt; Apis &amp; Services -&gt; Compute Engine API and click on Disable. After Compute Engine is disabled re enable it and delete your phantom cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*7EGQjgMWZ24Ap59dvWBrNg.gif" /></figure><h3>🧹 Lessons Learned (a.k.a. My Emotional Support Debrief)</h3><ul><li>GCP error messages aren’t always your friend, but weird symptoms usually point to where the real problem lives</li><li>Sometimes the only way to get rid of a stuck resource is to give the underlying API a soft reboot</li><li>Phantom clusters are real, and they <em>will</em> charge you while ghosting your delete requests</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6136de771372" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>