Skip to content

Commit

Permalink
update samples for version 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maqiuyujoyce committed Feb 22, 2020
1 parent f5df31c commit b6c7578
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: computefirewall-dep-allow
spec:
routingMode: REGIONAL
autoCreateSubnetworks: true
autoCreateSubnetworks: false
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: computefirewall-dep-deny
spec:
routingMode: REGIONAL
autoCreateSubnetworks: true
autoCreateSubnetworks: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: computenetworkendpointgroup-dep
spec:
routingMode: REGIONAL
autoCreateSubnetworks: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetworkEndpointGroup
metadata:
name: computenetworkendpointgroup-sample
spec:
networkRef:
name: computenetworkendpointgroup-dep
subnetworkRef:
name: computenetworkendpointgroup-dep
location: us-west1-a
defaultPort: 90
description: A network endpoint group living in a specific us-west1 subnetwork, whose member endpoints will serve on port number 90 by default.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: computenetworkendpointgroup-dep
spec:
ipCidrRange: 10.2.0.0/16
region: us-west1
networkRef:
name: computenetworkendpointgroup-dep
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# **WARNING**: The bindings here represent the full declarative intent for the project.
# It will fully overwrite the existing policy on the given project.
#
# For finer-grained control over the project's IAM policy, it is recommended
# that the IAMPolicyMember resource be used instead.
#
# This sample assumes the following additional APIs are enabled:
# - compute.googleapis.com
# - container.googleapis.com
Expand All @@ -12,6 +15,13 @@
apiVersion: iam.cnrm.cloud.google.com/v1beta1
kind: IAMPolicy
metadata:
annotations:
# By default, the underlying GCP resource is deleted upon deletion of the
# K8s resource representing it (i.e. the entire IAM policy object of the
# GCP project will be wiped out if you delete this IAMPolicy resource). Set
# the 'deletion-policy' to 'abandon' to prevent the underlying GCP resource
# from being deleted upon deletion of this K8s resource.
cnrm.cloud.google.com/deletion-policy: abandon
labels:
label-one: value-one
name: iampolicy-sample-projectlevel
Expand Down

0 comments on commit b6c7578

Please sign in to comment.