...
1label: Config Connector NetworkServicesGRPCRoute
2markdownDescription: Creates yaml for a NetworkServicesGRPCRoute resource
3insertText: |
4 apiVersion: networkservices.cnrm.cloud.google.com/v1beta1
5 kind: NetworkServicesGRPCRoute
6 metadata:
7 labels:
8 \${1:foo}: \${2:bar}
9 name: \${3:networkservicesgrpcroute-name}
10 spec:
11 description: \${4:A test GrpcRoute}
12 meshes:
13 - name: \${5:networkservicesgrpcroute-dep}
14 gateways:
15 - name: \${6:networkservicesgrpcroute-dep}
16 location: \${7:global}
17 hostnames:
18 - \${8:test1}
19 - \${9:test2}
20 rules:
21 - matches:
22 - method:
23 type: \${10:EXACT}
24 grpcService: \${11:helloworld.Greeter}
25 grpcMethod: \${12:SayHello}
26 caseSensitive: \${13:false}
27 headers:
28 - type: \${14:EXACT}
29 key: \${15:foo}
30 value: \${16:bar}
31 action:
32 destinations:
33 - serviceRef:
34 name: \${17:networkservicesgrpcroute-dep}
35 weight: \${18:50}
36 - serviceRef:
37 name: \${19:networkservicesgrpcroute-dep}
38 weight: \${20:50}
39 faultInjectionPolicy:
40 abort:
41 httpStatus: \${21:501}
42 percentage: \${22:1}
43 delay:
44 fixedDelay: \${23:10s}
45 percentage: \${24:2}
46 retryPolicy:
47 numRetries: \${25:3}
48 retryConditions:
49 - \${26:refused-stream}
50 - \${27:cancelled}
51 timeout: \${28:30s}
52 - action:
53 destinations:
54 - serviceRef:
55 name: \${29:networkservicesgrpcroute-dep}
56 projectRef:
57 external: \${30:projects/[PROJECT_ID?]}
View as plain text