Skip to content

Commit 6e5088f

Browse files
author
Mathieu Benoit
committed
Fix enable cloudtrace API
1 parent 2931f5b commit 6e5088f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

content/service-mesh/allow-asm.md

+19
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,25 @@ spec:
3636
EOF
3737
```
3838

39+
Define the Cloud Trace API [`Service`](https://cloud.google.com/config-connector/docs/reference/resource-docs/serviceusage/service) resource in the Tenant project:
40+
```Bash
41+
cat <<EOF > ${WORK_DIR}$HOST_PROJECT_DIR_NAME/projects/$TENANT_PROJECT_ID/cloudtrace-service.yaml
42+
apiVersion: serviceusage.cnrm.cloud.google.com/v1beta1
43+
kind: Service
44+
metadata:
45+
annotations:
46+
cnrm.cloud.google.com/deletion-policy: "abandon"
47+
cnrm.cloud.google.com/disable-dependent-services: "false"
48+
config.kubernetes.io/depends-on: resourcemanager.cnrm.cloud.google.com/namespaces/config-control/Project/${TENANT_PROJECT_ID}
49+
name: ${TENANT_PROJECT_ID}-cloudtrace
50+
namespace: config-control
51+
spec:
52+
projectRef:
53+
name: ${TENANT_PROJECT_ID}
54+
resourceID: cloudtrace.googleapis.com
55+
EOF
56+
```
57+
3958
## Deploy Kubernetes manifests
4059

4160
```Bash

0 commit comments

Comments
 (0)