Skip to content

Commit

Permalink
modify the yaml file based comments: to comment the vnet/iprules part.
Browse files Browse the repository at this point in the history
  • Loading branch information
buhongw7583c committed May 11, 2020
1 parent bf9c26b commit cfa34c6
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions config/samples/azure_v1alpha1_cosmosdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,48 @@ kind: CosmosDB
metadata:
name: cosmosdb-sample-1
spec:
# possible values are 'GlobalDocumentDB', 'MongoDB'.
# #possible values are 'GlobalDocumentDB', 'MongoDB'.
kind: GlobalDocumentDB
location: westus
resourceGroup: resourcegroup-azure-operators
# Start of properties
# #Start of properties
properties:
databaseAccountOfferType: Standard

# optionally turn on multi-region writes
# #optionally turn on multi-region writes
# enableMultipleWriteLocations: true

# Optionally set the capabilities name to the following options: (the default is SQL)
# "EnableCassandra", "EnableTable", "EnableGremlin", "EnableMongo"
# NOTE: If using "EnableMongo" kind must be set to MongoDB for this to take effect
# #Optionally set the capabilities name to the following options: (the default is SQL)
# #"EnableCassandra", "EnableTable", "EnableGremlin", "EnableMongo"
# #NOTE: If using "EnableMongo" kind must be set to MongoDB for this to take effect
#capabilities:
# - name: "EnableCassandra"

# optionally set the mongoDBVersion to "3.2" or "3.6", if omitted the default is "3.2"
# NOTE: kind must be set to MongoDB for this to take effect
# #optionally set the mongoDBVersion to "3.2" or "3.6", if omitted the default is "3.2"
# #NOTE: kind must be set to MongoDB for this to take effect
# mongoDBVersion: "3.6"

# enable virtual network rules if configured below
# #enable virtual network rules if configured below
isVirtualNetworkFilterEnabled: true
# End of properties
# #End of properties

# optionally restrict access to specific virtual networks
virtualNetworkRules:
- subnetID: /subscriptions/{subscription_id}/resourceGroups/{resourcegroup}/providers/Microsoft.Network/virtualNetworks/{vnet_name}/subnets/{subnet_name}
ignoreMissingVNetServiceEndpoint: true
# #optionally restrict access to specific virtual networks
# virtualNetworkRules:
# - subnetID: /subscriptions/{subscription_id}/resourceGroups/{resourcegroup}/providers/Microsoft.Network/virtualNetworks/{vnet_name}/subnets/{subnet_name}
# ignoreMissingVNetServiceEndpoint: true

# optionally configure different CIDR IP ranges for allowed-list, omitting allows all or falls back to vNetRules
ipRules:
# # the ips in this rule are needed to access your db from the portal
- 104.42.195.92
# # add additional ips you would like to grant access
- 1.2.3.4
# #optionally configure different CIDR IP ranges for allowed-list, omitting allows all or falls back to vNetRules
# ipRules:
# #the ips in this rule are needed to access your db from the portal
# - 104.42.195.92
# - 40.76.54.131
# - 52.176.6.30
# - 52.169.50.45
# - 52.187.184.26
# #add additional ips you would like to grant access
# - 1.2.3.4

# optionally configure multiple regions and availability zone redundancy
# #optionally configure multiple regions and availability zone redundancy
# locations:
# - locationName: eastus
# failoverPriority: 0
Expand Down

0 comments on commit cfa34c6

Please sign in to comment.