> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmk/how-to/how-to-change-calicoipipmode-to-never-in-existing-pmk-cluster.md).

# How To Change calicoIpIpMode to Never in Existing PMK Cluster

## Problem

How to change calicoIpIpMode to Never in an existing PMK cluster?

## Environment

* Platform9 Managed Kubernetes - v5.2 and Higher
* Calico CNI

## Procedure

For example, consider a single master node Calico CNI cluster created with `calicoIpIpMode` as `Always`.

{% tabs %}
{% tab title="Bash" %}

```bash
# cat /etc/pf9/kube.env | grep -i "CALICO_IPIP_MODE"
export CALICO_IPIP_MODE="Always"
```

{% endtab %}
{% endtabs %}

Reference: [How-To Run Calicoctl Commands](https://platform9.com/kb/kubernetes/how-to-run-calicoctl-commands)

{% tabs %}
{% tab title="Bash" %}

```bash
# /opt/pf9/pf9-kube/bin/calicoctl get ippools default-ipv4-ippool
NAME                  CIDR           SELECTOR
default-ipv4-ippool   10.20.0.0/16   all()
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Bash" %}

```bash
# /opt/pf9/pf9-kube/bin/calicoctl get ippools default-ipv4-ippool --export -o yaml > default-ipv4-ippool.yaml
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Bash" %}

```bash
# cat default-ipv4-ippool.yaml
apiVersion: projectcalico.org/v3
kind: IPPool
metadata:
  creationTimestamp: null
  name: default-ipv4-ippool
spec:
  blockSize: 26
  cidr: 10.20.0.0/16
  ipipMode: Always
  natOutgoing: true
  nodeSelector: all()
  vxlanMode: Never
```

{% endtab %}
{% endtabs %}

Change the `ipipMode` from `Always` to `Never` & apply the change. Once this is done, the change will get updated on the routing table of all nodes part of the cluster.

{% tabs %}
{% tab title="Bash" %}

```bash
# cat default-ipv4-ippool.yaml
apiVersion: projectcalico.org/v3
kind: IPPool
metadata:
  creationTimestamp: null
  name: default-ipv4-ippool
spec:
  blockSize: 26
  cidr: 10.20.0.0/16
  ipipMode: Never
  natOutgoing: true
  nodeSelector: all()
  vxlanMode: Never
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Bash" %}

```bash
# /opt/pf9/pf9-kube/bin/calicoctl apply -f default-ipv4-ippool.yaml
Successfully applied 1 'IPPool' resource(s)
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Note**

As long as the IPPool object exists in the cluster, independently of the changed contents, it will not be recreated post cluster upgrade. However, as good practice, one can also opt to update the value in Qbert DB, so that when the next upgrade/reboot of the stack happens, the information displayed for the cluster with regards to the calico properties is up to date. Please reach out to [Platform9 Support](https://support.platform9.com/hc/en-us) to get the change implemented in Qbert DB for SaaS customers.
{% endhint %}

###


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/pmk/how-to/how-to-change-calicoipipmode-to-never-in-existing-pmk-cluster.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
