...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/cloudcodesnippets/networkservices-v1beta1-networkservicesendpointpolicy.yaml

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

     1label: Config Connector NetworkServicesEndpointPolicy
     2markdownDescription: Creates yaml for a NetworkServicesEndpointPolicy resource
     3insertText: |
     4  apiVersion: networkservices.cnrm.cloud.google.com/v1beta1
     5  kind: NetworkServicesEndpointPolicy
     6  metadata:
     7    labels:
     8      \${1:key-one}: \${2:value-one}
     9    name: \${3:networkservicesendpointpolicy-name}
    10  spec:
    11    projectRef:
    12      external: \${4:projects/[PROJECT_ID?]}
    13    location: \${5:global}
    14    type: \${6:SIDECAR_PROXY}
    15    authorizationPolicyRef:
    16      name: \${7:networksecurityauthorizationpolicy-sample}
    17    endpointMatcher:
    18      metadataLabelMatcher:
    19        metadataLabelMatchCriteria: \${8:MATCH_ANY}
    20        metadataLabels:
    21        - labelName: \${9:filter-test}
    22          labelValue: \${10:true}
    23    trafficPortSelector:
    24      ports:
    25      - \${11:6767}
    26    description: \${12:A sample endpoint policy}
    27    serverTlsPolicyRef:
    28      name: \${13:networksecurityservertlspolicy-sample}
    29    clientTlsPolicyRef:
    30      name: \${14:networksecurityclienttlspolicy-sample}

View as plain text