This document explains how to enable a project for service health events
processing using [Config Connector](https://cloud.google.com/config-connector/docs/overview)
programmatically, if you're using Kubernetes and want to use the
Service Health API.

1. Follow the [prerequisites](https://cloud.google.com/config-connector/docs/how-to/getting-started#before_you_begin)
   for using Config Connector.

2. Decide on the <var class="readonly" scope="API_VERSION" translate="no">API VERSION</var>: `v1` or `v1beta`.

3. Create a file named `psh-enable.yaml` and copy the following snippet into it:

   ```yaml
   apiVersion: serviceusage.cnrm.cloud.google.com/API VERSION
   kind: Service
   metadata:
     name: servicehealth.googleapis.com
   spec:
     projectRef:
       external: projects/PROJECT_ID
   ```
4. Run the following command:

   ```bash
   kubectl apply -f psh-enable.yaml 
   ```

   The following message appears:

       service.serviceusage.cnrm.cloud.google.com/servicehealth.googleapis.com created

Personalized Service Health will take up to 24 hours to start processing service health
events.