...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/cloudcodesnippets/networkservices_v1beta1_networkservicestcproute.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/config/cloudcodesnippets

     1label: Config Connector NetworkServicesTCPRoute
     2markdownDescription: Creates yaml for a NetworkServicesTCPRoute resource
     3insertText: |
     4  apiVersion: networkservices.cnrm.cloud.google.com/v1beta1
     5  kind: NetworkServicesTCPRoute
     6  metadata:
     7    labels:
     8      \${1:foo}: \${2:bar}
     9    name: \${3:networkservicestcproute-name}
    10  spec:
    11    meshes:
    12    - name: \${4:networkservicestcproute-dep}
    13    gateways:
    14    - name: \${5:networkservicestcproute-dep}
    15    location: \${6:global}
    16    description: \${7:A test TcpRoute}
    17    rules:
    18    - matches:
    19      - address: \${8:10.0.0.1/32}
    20        port: \${9:7777}
    21      action:
    22        destinations:
    23        - serviceRef:
    24            name: \${10:networkservicestcproute-dep}
    25          weight: \${11:1}
    26    - matches:
    27      - address: \${12:10.0.0.1/0}
    28        port: \${13:1}
    29      action:
    30        originalDestination: \${14:false}
    31        destinations:
    32        - serviceRef:
    33            name: \${15:networkservicestcproute-dep}
    34          weight: \${16:1}
    35    projectRef:
    36      external: \${17:projects/[PROJECT_ID?]}

View as plain text