...

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

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

     1label: Config Connector ComputeFirewall
     2markdownDescription: Creates yaml for a ComputeFirewall resource
     3insertText: |
     4  apiVersion: compute.cnrm.cloud.google.com/v1beta1
     5  kind: ComputeFirewall
     6  metadata:
     7    labels:
     8      \${1:label-one}: \${2:value-one}
     9    name: \${3:computefirewall-name}
    10  spec:
    11    allow:
    12    - protocol: \${4:tcp}
    13      ports:
    14      - \${5:80}
    15      - \${6:1000-2000}
    16    networkRef:
    17      name: \${7:computefirewall-dep-allow}
    18    sourceTags:
    19    - \${8:web}

View as plain text