...

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

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

     1label: Config Connector NetworkServicesTLSRoute
     2markdownDescription: Creates yaml for a NetworkServicesTLSRoute resource
     3insertText: |
     4  apiVersion: networkservices.cnrm.cloud.google.com/v1beta1
     5  kind: NetworkServicesTLSRoute
     6  metadata:
     7    name: \${1:networkservicestlsroute-name}
     8  spec:
     9    meshes:
    10    - name: \${2:networkservicestlsroute-dep}
    11    gateways:
    12    - name: \${3:networkservicestlsroute-dep}
    13    description: \${4:A test TcpRoute}
    14    location: \${5:global}
    15    rules:
    16    - matches:
    17      - sniHost:
    18        - \${6:*.foo.example.com}
    19        - \${7:foo.example.com}
    20        alpn:
    21        - \${8:h2}
    22        - \${9:http/1.1}
    23      action:
    24        destinations:
    25        - serviceRef:
    26            name: \${10:networkservicestlsroute-dep}
    27          weight: \${11:1}
    28    projectRef:
    29      external: \${12:projects/[PROJECT_ID?]}

View as plain text