Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.43 KB

setup-istio-gatekeeper-gke.md

File metadata and controls

57 lines (44 loc) · 1.43 KB

Install Istio and Gatekeeper on GKE

As prerequisites, you need to have these tools installed:

Set current project

PROJECT_ID=FIXME
gcloud config set project ${PROJECT_ID}

Create Kubernetes cluster

Create a GKE cluster:

CLUSTER_NAME=istio-gatekeeper-demo
CLUSTER_ZONE=northamerica-northeast1

gcloud services enable container.googleapis.com

gcloud container clusters create ${CLUSTER_NAME} \
    --zone ${CLUSTER_ZONE} \
    --machine-type e2-standard-4 \
    --num-nodes 4

Install Istio

Install Istio in your cluster:

istioctl install \
    --set profile=minimal \
    -y

Install Gatekeeper

Install Gatekeeper in your cluster:

helm repo add gatekeeper https://open-policy-agent.github.io/gatekeeper/charts
helm install gatekeeper/gatekeeper \
    --name-template=gatekeeper \
    --namespace gatekeeper-system \
    --create-namespace \
    --set auditInterval=5

(Optional) Install Config Sync

Install Config Sync in your cluster:

CONFIG_SYNC_VERSION=$(curl -s https://api.github.com/repos/GoogleContainerTools/kpt-config-sync/releases/latest | jq -r .tag_name)
kubectl apply -f https://github.com/GoogleContainerTools/kpt-config-sync/releases/download/${CONFIG_SYNC_VERSION}/config-sync-manifest.yaml