Skip to content

Commit 197a375

Browse files
emanick8s-ci-robot
authored andcommitted
Updates the Calico installation page (#7094)
1 parent bddc6c0 commit 197a375

File tree

1 file changed

+23
-32
lines changed

1 file changed

+23
-32
lines changed

docs/tasks/administer-cluster/calico-network-policy.md

+23-32
Original file line numberDiff line numberDiff line change
@@ -5,57 +5,48 @@ title: Use Calico for NetworkPolicy
55
---
66

77
{% capture overview %}
8-
This page shows how to use Calico for NetworkPolicy.
8+
This page shows a couple of quick ways to create a Calico cluster on Kubernetes.
99
{% endcapture %}
1010

1111
{% capture prerequisites %}
12-
* [Install Calico for Kubernetes](https://docs.projectcalico.org/latest/getting-started/kubernetes/installation/).
12+
Decide whether you want to deploy a [cloud](#creating-a-calico-cluster-with-google-kubernetes-engine-gke) or [local](#creating-a-local-calico-cluster-with-kubeadm) cluster.
1313
{% endcapture %}
1414

1515
{% capture steps %}
16-
## Deploying a cluster using Calico
16+
## Creating a Calico cluster with Google Kubernetes Engine (GKE)
1717

18-
You can deploy a cluster using Calico for network policy in the default [GCE deployment](/docs/getting-started-guides/gce/) using the following set of commands:
18+
**Prerequisite**: [gcloud](https://cloud.google.com/sdk/docs/quickstarts).
1919

20-
```shell
21-
export NETWORK_POLICY_PROVIDER=calico
22-
export KUBE_NODE_OS_DISTRIBUTION=debian
23-
curl -sS https://get.k8s.io | bash
24-
```
20+
1. To launch a GKE cluster with Calico, just include the `--enable-network-policy` flag.
2521

26-
See the [Calico documentation](http://docs.projectcalico.org/) for more options to deploy Calico with Kubernetes.
27-
{% endcapture %}
28-
29-
{% capture discussion %}
30-
## Understanding Calico components
22+
**Syntax**
23+
```shell
24+
gcloud container clusters create [CLUSTER_NAME] --enable-network-policy
25+
```
3126

32-
Deploying a cluster with Calico adds Pods that support Kubernetes NetworkPolicy. These Pods run in the `kube-system` Namespace.
27+
**Example**
28+
```shell
29+
gcloud container clusters create my-calico-cluster --enable-network-policy
30+
```
3331

34-
To see this list of Pods run:
32+
1. To verify the deployment, use the following command.
3533

36-
```shell
37-
kubectl get pods --namespace=kube-system
38-
```
34+
```shell
35+
kubectl get pods --namespace=kube-system
36+
```
3937

40-
You'll see a list of Pods similar to this:
38+
The Calico pods begin with `calico`. Check to make sure each one has a status of `Running`.
4139

42-
```console
43-
NAME READY STATUS RESTARTS AGE
44-
calico-node-kubernetes-minion-group-jck6 1/1 Running 0 46m
45-
calico-node-kubernetes-minion-group-k9jy 1/1 Running 0 46m
46-
calico-node-kubernetes-minion-group-szgr 1/1 Running 0 46m
47-
calico-policy-controller-65rw1 1/1 Running 0 46m
48-
...
49-
```
40+
## Creating a local Calico cluster with kubeadm
5041

51-
There are two main components to be aware of:
42+
To get a local single-host Calico cluster in fifteen minutes using kubeadm, refer to the
43+
[Calico Quickstart](https://docs.projectcalico.org/latest/getting-started/kubernetes/).
5244

53-
- One `calico-node` Pod runs on each node in your cluster and enforces network policy on the traffic to/from Pods on that machine by configuring iptables.
54-
- The `calico-policy-controller` Pod reads the policy and label information from the Kubernetes API and configures Calico appropriately.
5545
{% endcapture %}
5646

47+
5748
{% capture whatsnext %}
5849
Once your cluster is running, you can follow the [Declare Network Policy](/docs/tasks/administer-cluster/declare-network-policy/) to try out Kubernetes NetworkPolicy.
5950
{% endcapture %}
6051

61-
{% include templates/task.md %}
52+
{% include templates/task.md %}

0 commit comments

Comments
 (0)