[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Enable Personalized Service Health for a project using Config Connector\n\nThis document explains how to enable a project for service health events\nprocessing using [Config Connector](https://cloud.google.com/config-connector/docs/overview)\nprogrammatically, if you're using Kubernetes and want to use the\nService Health API.\n\n1. Follow the [prerequisites](https://cloud.google.com/config-connector/docs/how-to/getting-started#before_you_begin)\n for using Config Connector.\n\n2. Decide on the \u003cvar class=\"readonly\" scope=\"API_VERSION\" translate=\"no\"\u003eAPI VERSION\u003c/var\u003e: `v1` or `v1beta`.\n\n3. Create a file named `psh-enable.yaml` and copy the following snippet into it:\n\n apiVersion: serviceusage.cnrm.cloud.google.com/\u003cvar scope=\"API_VERSION\" translate=\"no\"\u003eAPI VERSION\u003c/var\u003e\n kind: Service\n metadata:\n name: servicehealth.googleapis.com\n spec:\n projectRef:\n external: projects/\u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\n\n4. Run the following command:\n\n kubectl apply -f psh-enable.yaml \n\n The following message appears: \n\n service.serviceusage.cnrm.cloud.google.com/servicehealth.googleapis.com created\n\nPersonalized Service Health will take up to 24 hours to start processing service health\nevents."]]