Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates minikube commands #1815

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions calico/getting-started/kubernetes/minikube.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,48 @@ Enabling preinstalled $[prodname] might be the quickest way for testing. However
:::

```bash
minikube start --network-plugin=cni --cni=calico
minikube start --cni=calico
```

</TabItem>
<TabItem label="Operator" value="Operator-1">

1. Start your minikube cluster with one control plane node using the following command.

:::note
:::note

If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.
If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.

:::
:::

```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```
```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```

2. Install the Tigera $[prodname] operator and custom resource definitions.

```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```

:::note
:::note

Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.
Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.

:::
:::

3. Install $[prodname] by creating the necessary custom resource. For more information on configuration options available in this manifest, see [the installation reference](../../reference/installation/api.mdx).

:::note
:::note

Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.
Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.

:::
:::

```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```

</TabItem>
<TabItem label="Manifest" value="Manifest-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,48 @@ Enabling preinstalled $[prodname] might be the quickest way for testing. However
:::

```bash
minikube start --network-plugin=cni --cni=calico
minikube start --cni=calico
```

</TabItem>
<TabItem label="Operator" value="Operator-1">

1. Start your minikube cluster with one control plane node using the following command.

:::note
:::note

If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.
If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.

:::
:::

```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```
```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```

2. Install the Tigera $[prodname] operator and custom resource definitions.

```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```

:::note
:::note

Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.
Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.

:::
:::

3. Install $[prodname] by creating the necessary custom resource. For more information on configuration options available in this manifest, see [the installation reference](../../reference/installation/api.mdx).

:::note
:::note

Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.
Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.

:::
:::

```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```

</TabItem>
<TabItem label="Manifest" value="Manifest-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,48 @@ Enabling preinstalled $[prodname] might be the quickest way for testing. However
:::

```bash
minikube start --network-plugin=cni --cni=calico
minikube start --cni=calico
```

</TabItem>
<TabItem label="Operator" value="Operator-1">

1. Start your minikube cluster with one control plane node using the following command.

:::note
:::note

If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.
If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.

:::
:::

```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```
```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```

2. Install the Tigera $[prodname] operator and custom resource definitions.

```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```

:::note
:::note

Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.
Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.

:::
:::

3. Install $[prodname] by creating the necessary custom resource. For more information on configuration options available in this manifest, see [the installation reference](../../reference/installation/api.mdx).

:::note
:::note

Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.
Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.

:::
:::

```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```

</TabItem>
<TabItem label="Manifest" value="Manifest-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,48 @@ Enabling preinstalled $[prodname] might be the quickest way for testing. However
:::

```bash
minikube start --network-plugin=cni --cni=calico
minikube start --cni=calico
```

</TabItem>
<TabItem label="Operator" value="Operator-1">

1. Start your minikube cluster with one control plane node using the following command.

:::note
:::note

If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.
If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.

:::
:::

```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```
```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```

2. Install the Tigera $[prodname] operator and custom resource definitions.

```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```

:::note
:::note

Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.
Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.

:::
:::

3. Install $[prodname] by creating the necessary custom resource. For more information on configuration options available in this manifest, see [the installation reference](../../reference/installation/api.mdx).

:::note
:::note

Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.
Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.

:::
:::

```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```

</TabItem>
<TabItem label="Manifest" value="Manifest-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,48 +39,48 @@ Enabling preinstalled $[prodname] might be the quickest way for testing. However
:::

```bash
minikube start --cni="calico"
minikube start --cni=calico
```

</TabItem>
<TabItem label="Operator" value="Operator-1">

1. Start your minikube cluster with one control plane node using the following command.

:::note
:::note

If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.
If `192.168.0.0/16` is already in use within your network you must select a different pod network CIDR, by replacing `192.168.0.0/16` in the following command.

:::
:::

```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```
```bash
minikube start --cni=false --network-plugin=cni --extra-config=kubeadm.pod-network-cidr=192.168.0.0/16 --subnet=172.16.0.0/24
```

2. Install the Tigera $[prodname] operator and custom resource definitions.

```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/tigera-operator.yaml
```

:::note
:::note

Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.
Due to the large size of the CRD bundle, `kubectl apply` might exceed request limits. Instead, use `kubectl create` or `kubectl replace`.

:::
:::

3. Install $[prodname] by creating the necessary custom resource. For more information on configuration options available in this manifest, see [the installation reference](../../reference/installation/api.mdx).

:::note
:::note

Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.
Before creating this manifest, read its contents and make sure its settings are correct for your environment. For example,
if you have replaced `pod-network-cidr` you must change it in this file as well.

:::
:::

```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```
```bash
kubectl create -f $[manifestsUrl]/manifests/custom-resources.yaml
```

</TabItem>
<TabItem label="Manifest" value="Manifest-2">
Expand Down
Loading