Skip to content

Latest commit

 

History

History
 
 

setup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

kpt package for gatekeeper-securitycenter prerequisites

This package creates the following prerequisite resources for the gatekeeper-securitycenter controller using Config Connector:

  • a Google Kubernetes Engine (GKE) cluster;
  • Open Policy Agent Gatekeeper installed in the GKE cluster;
  • Google service accounts with Cloud IAM policy bindings; and
  • a Security Command Center source for Gatekeeper audit findings

If you have already set up the prerequisite resources and want to deploy the gatekeeper-securitycenter controller, skip these steps and use the manifests package instead.

Deploying the controller

Tools required:

Fetch the package

kpt pkg get https://github.com/GoogleCloudPlatform/gatekeeper-securitycenter.git/setup setup

Set environment variables

source setup/setup.env

If you want to use an exisiting GKE cluster and/or existing Google service accounts, edit the values in setup.env to match the names of your existing resources before you source the file.

Create the prerequisite resources

./setup/setup.sh

This script initializes and applies the resource manifests in these directories:

  1. config-connector
  2. gatekeeper
  3. iam
  4. securitycenter

When the script is done, it prints the values you need to deploy the controller resources using the kpt package in the manifests directory.

Troubleshooting

The script is designed to be idempotent. This means that if you encounter issues, you can run the script again.