Hello,
Does anybody know where I can find the error code and error message explanation on this error while trying to create ServiceAttachment
in regards to Private Service Connect?
ServiceAttachment definition:
apiVersion: networking.gke.io/v1beta1
kind: ServiceAttachment
metadata:
name: emoji-sa
namespace: psc-producer
spec:
connectionPreference: ACCEPT_AUTOMATIC
natSubnets:
- my-cluster-us-west1
proxyProtocol: false
resourceRef:
kind: Service
name: gke-l4-psc
Error message:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ProcessServiceAttachmentFailed 31s (x21 over 25m) loadbalancer-controller error processing service attachment "psc-producer/emoji-sa": "failed to create GCE Service Attachment: googleapi: Error 412: CONDITION_NOT_MET - Subnet resource_type: SUBNETWORK\nresource_name: \"my-cluster-us-west1\"\nproject {\n canonical_project_id: my-project-id\n}\nscope {\n scope_type: REGION\n scope_name: \"us-west1\"\n}\n does not have the purpose PRIVATE_SERVICE_CONNECT"
my-cluster-us-west1
subnet is Private Google Access enabled.
Thank you,
Laurentius
Best answer by alexmoore
View original