...

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

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

     1label: Config Connector ComputeURLMap
     2markdownDescription: Creates yaml for a ComputeURLMap resource
     3insertText: |
     4  apiVersion: compute.cnrm.cloud.google.com/v1beta1
     5  kind: ComputeURLMap
     6  metadata:
     7    name: \${1:computeurlmap-name}
     8  spec:
     9    location: \${2:global}
    10    defaultService:
    11      backendServiceRef:
    12        name: \${3:computeurlmap-dep1}
    13    pathMatcher:
    14    - name: \${4:allpaths}
    15      defaultService:
    16        backendServiceRef:
    17          name: \${5:computeurlmap-dep2}
    18      pathRule:
    19      - paths:
    20        - \${6:/home}
    21        service:
    22          backendServiceRef:
    23            name: \${7:computeurlmap-dep3}
    24      - paths:
    25        - \${8:/foo}
    26        service:
    27          backendBucketRef:
    28            name: \${9:computeurlmap-dep}
    29    hostRule:
    30    - hosts:
    31      - \${10:example.com}
    32      pathMatcher: \${11:allpaths}

View as plain text