1.6 KiB
reviewers, title
| reviewers | title | |
|---|---|---|
|
Use Calico for NetworkPolicy |
{% capture overview %} This page shows a couple of quick ways to create a Calico cluster on Kubernetes. {% endcapture %}
{% capture prerequisites %} Decide whether you want to deploy a cloud or local cluster. {% endcapture %}
{% capture steps %}
Creating a Calico cluster with Google Kubernetes Engine (GKE)
Prerequisite: gcloud.
-
To launch a GKE cluster with Calico, just include the
--enable-network-policyflag.Syntax
gcloud container clusters create [CLUSTER_NAME] --enable-network-policyExample
gcloud container clusters create my-calico-cluster --enable-network-policy -
To verify the deployment, use the following command.
kubectl get pods --namespace=kube-systemThe Calico pods begin with
calico. Check to make sure each one has a status ofRunning.
Creating a local Calico cluster with kubeadm
To get a local single-host Calico cluster in fifteen minutes using kubeadm, refer to the Calico Quickstart.
{% endcapture %}
{% capture whatsnext %} Once your cluster is running, you can follow the Declare Network Policy to try out Kubernetes NetworkPolicy. {% endcapture %}
{% include templates/task.md %}