forked from Azure-Samples/azure-service-operator-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcosmos-sql-demo.yaml
64 lines (64 loc) · 1.32 KB
/
cosmos-sql-demo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
apiVersion: v1
kind: Namespace
metadata:
name: cosmos-todo
---
apiVersion: resources.azure.com/v1alpha1api20200601
kind: ResourceGroup
metadata:
name: aso-cosmos-demo
namespace: cosmos-todo
spec:
location: westcentralus
---
apiVersion: documentdb.azure.com/v1alpha1api20210515
kind: DatabaseAccount
metadata:
name: cosmostodoacct
namespace: cosmos-todo
spec:
location: westcentralus
owner:
name: aso-cosmos-demo
kind: GlobalDocumentDB
databaseAccountOfferType: Standard
locations:
- locationName: westcentralus
operatorSpec:
secrets:
primaryMasterKey:
name: cosmos-connection-settings
key: key
documentEndpoint:
name: cosmos-connection-settings
key: documentEndpoint
---
apiVersion: documentdb.azure.com/v1alpha1api20210515
kind: SqlDatabase
metadata:
name: sample-sql-db
namespace: cosmos-todo
spec:
location: westcentralus
owner:
name: cosmostodoacct
options:
autoscaleSettings:
maxThroughput: 4000
resource:
id: sample-sql-db
---
apiVersion: documentdb.azure.com/v1alpha1api20210515
kind: SqlDatabaseContainer
metadata:
name: sample-sql-container
namespace: cosmos-todo
spec:
location: westcentralus
owner:
name: sample-sql-db
resource:
id: sample-sql-container
partitionKey:
kind: Hash
paths: ["/id"]