Skip to content

Commit

Permalink
Fix ebpf docs for kOps.
Browse files Browse the repository at this point in the history
  • Loading branch information
sridhartigera authored and bmckercher123 committed Nov 20, 2023
1 parent e969c4b commit 837c7c7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 34 deletions.
29 changes: 12 additions & 17 deletions calico-enterprise/operations/ebpf/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,18 @@ In this example, you would use `60F939227672BC3D5A1B3EC9744B2B21.gr7.us-west-2.e
</TabItem>
</Tabs>

### Install the Tigera Operator

Follow the steps in the main install for your platform that installs the Tigera Operator, without applying the custom-resources.yaml (you will update this file in a later step in this doc).

If you have a KOPS cluster, you must also patch the tigera-operator deployment with DNS config so the operator can resolve the apiserver DNS.

```bash
kubectl patch deployment -n tigera-operator tigera-operator -p '{"spec":{"template":{"spec":{"dnsConfig":{"nameservers":["127.0.0.53"]}}}}}'
```

### Create the Config Map

Create the following config map in the `tigera-operator` namespace using the host and port determined above:

```bash
Expand All @@ -262,23 +274,6 @@ data:
EOF
```

:::tip

If you forget to create the config map before installing the operator you can create it afterwards and
then wait 60 seconds (for the config map to propagate) before restarting the operator:

```bash
kubectl delete pod -n tigera-operator -l k8s-app=tigera-operator
```

:::

### Install the Tigera Operator

Follow the steps in the main install guide for your platform to install the Tigera Operator (and possibly the
Prometheus Operator). However, **stop** before applying the `custom-resources.yaml`; we'll customise that file
to enable eBPF mode in the next step...

### Tweak and apply installation Custom Resources

When the main install guide tells you to apply the `custom-resources.yaml`, typically by running `kubectl create` with
Expand Down
29 changes: 12 additions & 17 deletions calico/operations/ebpf/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,18 @@ In this example, you would use `60F939227672BC3D5A1B3EC9744B2B21.gr7.us-west-2.e
</TabItem>
</Tabs>

### Install the Tigera Operator

Follow the steps in the main install for your platform that installs the Tigera Operator, without applying the custom-resources.yaml (you will update this file in a later step in this doc).

If you have a kOps cluster, you must also patch the tigera-operator deployment with DNS config so the operator can resolve the apiserver DNS.

```bash
kubectl patch deployment -n tigera-operator tigera-operator -p '{"spec":{"template":{"spec":{"dnsConfig":{"nameservers":["127.0.0.53"]}}}}}'
```

### Create the Config Map

Create the following config map in the `tigera-operator` namespace using the host and port determined above:

```bash
Expand All @@ -280,23 +292,6 @@ data:
EOF
```

:::tip

If you forget to create the config map before installing the operator you can create it afterwards and
then wait 60 seconds (for the config map to propagate) before restarting the operator:

```bash
kubectl delete pod -n tigera-operator -l k8s-app=tigera-operator
```

:::

### Install the Tigera Operator

Follow the steps in the main install guide for your platform to install the Tigera Operator (and possibly the
Prometheus Operator). However, **stop** before applying the `custom-resources.yaml`; we'll customise that file
to enable eBPF mode in the next step...

### Tweak and apply installation Custom Resources

When the main install guide tells you to apply the `custom-resources.yaml`, typically by running `kubectl create` with
Expand Down

0 comments on commit 837c7c7

Please sign in to comment.