Use Calico for NetworkPolicy
This page shows a couple of quick ways to create a Calico cluster on Kubernetes.
Before you begin
Decide whether you want to deploy a cloud or local cluster.
Creating a Calico cluster with Google Kubernetes Engine (GKE)
Prerequisite:
To launch a GKE cluster with Calico, include the Syntax Example To verify the deployment, use the following command. The Calico pods begin with To get a local single-host Calico cluster in fifteen minutes using kubeadm, refer to the
. Once your cluster is running, you can follow the Declare Network Policy to try out Kubernetes NetworkPolicy.
--enable-network-policy
flag.gcloud container clusters create [CLUSTER_NAME] --enable-network-policy
gcloud container clusters create my-calico-cluster --enable-network-policy
kubectl get pods --namespace=kube-system
calico
. Check to make sure each one has a status of Running
.Creating a local Calico cluster with kubeadm
What's next