Skip to content

Commit 387c1d6

Browse files
committed
feat: add kind deployments examples
1 parent 8125bba commit 387c1d6

File tree

5 files changed

+194
-0
lines changed

5 files changed

+194
-0
lines changed

samples/kind/database.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: ydb.tech/v1alpha1
2+
kind: Database
3+
metadata:
4+
name: database-kind-sample
5+
spec:
6+
image:
7+
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:24.2.7
8+
nodes: 3
9+
resources:
10+
storageUnits:
11+
- count: 1
12+
unitKind: ssd
13+
storageClusterRef:
14+
name: storage-kind-sample

samples/kind/kind-3dc-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
kind: Cluster
2+
apiVersion: kind.x-k8s.io/v1alpha4
3+
nodes:
4+
- role: control-plane
5+
- role: worker
6+
- role: worker
7+
- role: worker

samples/kind/kind-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kind: Cluster
2+
apiVersion: kind.x-k8s.io/v1alpha4
3+
nodes:
4+
- role: control-plane
5+
- role: worker
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
apiVersion: ydb.tech/v1alpha1
2+
kind: Storage
3+
metadata:
4+
name: storage-kind-sample
5+
spec:
6+
dataStore: []
7+
image:
8+
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:24.2.7
9+
nodes: 9
10+
domain: Root
11+
erasure: mirror-3-dc
12+
configuration: |-
13+
actor_system_config:
14+
cpu_count: 1
15+
node_type: STORAGE
16+
use_auto_config: true
17+
blob_storage_config:
18+
service_set:
19+
availability_domains: 1
20+
groups:
21+
- erasure_species: mirror-3-dc
22+
group_id: 0
23+
group_generation: 1
24+
rings:
25+
- fail_domains:
26+
- vdisk_locations:
27+
- node_id: 1
28+
path: SectorMap:1:64
29+
pdisk_category: SSD
30+
- vdisk_locations:
31+
- node_id: 2
32+
path: SectorMap:1:64
33+
pdisk_category: SSD
34+
- vdisk_locations:
35+
- node_id: 3
36+
path: SectorMap:1:64
37+
pdisk_category: SSD
38+
- fail_domains:
39+
- vdisk_locations:
40+
- node_id: 4
41+
path: SectorMap:1:64
42+
pdisk_category: SSD
43+
- vdisk_locations:
44+
- node_id: 5
45+
path: SectorMap:1:64
46+
pdisk_category: SSD
47+
- vdisk_locations:
48+
- node_id: 6
49+
path: SectorMap:1:64
50+
pdisk_category: SSD
51+
- fail_domains:
52+
- vdisk_locations:
53+
- node_id: 7
54+
path: SectorMap:1:64
55+
pdisk_category: SSD
56+
- vdisk_locations:
57+
- node_id: 8
58+
path: SectorMap:1:64
59+
pdisk_category: SSD
60+
- vdisk_locations:
61+
- node_id: 9
62+
path: SectorMap:1:64
63+
pdisk_category: SSD
64+
channel_profile_config:
65+
profile:
66+
- channel:
67+
- erasure_species: mirror-3-dc
68+
pdisk_category: 0
69+
storage_pool_kind: ssd
70+
- erasure_species: mirror-3-dc
71+
pdisk_category: 0
72+
storage_pool_kind: ssd
73+
- erasure_species: mirror-3-dc
74+
pdisk_category: 0
75+
storage_pool_kind: ssd
76+
profile_id: 0
77+
domains_config:
78+
domain:
79+
- name: Root
80+
storage_pool_types:
81+
- kind: ssd
82+
pool_config:
83+
box_id: 1
84+
erasure_species: mirror-3-dc
85+
kind: ssd
86+
pdisk_filter:
87+
- property:
88+
- type: SSD
89+
vdisk_kind: Default
90+
state_storage:
91+
- ring:
92+
node: [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
93+
nto_select: 5
94+
ssid: 1
95+
grpc_config:
96+
port: 2135
97+
host_configs:
98+
- drive:
99+
- path: SectorMap:1:64
100+
type: SSD
101+
host_config_id: 1
102+
static_erasure: mirror-3-dc

samples/kind/storage.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
apiVersion: ydb.tech/v1alpha1
2+
kind: Storage
3+
metadata:
4+
name: storage-kind-sample
5+
spec:
6+
dataStore: []
7+
image:
8+
name: cr.yandex/crptqonuodf51kdj7a7d/ydb:24.2.7
9+
nodes: 1
10+
domain: Root
11+
erasure: none
12+
configuration: |-
13+
actor_system_config:
14+
cpu_count: 1
15+
node_type: STORAGE
16+
use_auto_config: true
17+
blob_storage_config:
18+
service_set:
19+
groups:
20+
- erasure_species: none
21+
rings:
22+
- fail_domains:
23+
- vdisk_locations:
24+
- node_id: 1
25+
path: SectorMap:1:64
26+
pdisk_category: SSD
27+
channel_profile_config:
28+
profile:
29+
- channel:
30+
- erasure_species: none
31+
pdisk_category: 0
32+
storage_pool_kind: ssd
33+
- erasure_species: none
34+
pdisk_category: 0
35+
storage_pool_kind: ssd
36+
- erasure_species: none
37+
pdisk_category: 0
38+
storage_pool_kind: ssd
39+
profile_id: 0
40+
domains_config:
41+
domain:
42+
- name: Root
43+
storage_pool_types:
44+
- kind: ssd
45+
pool_config:
46+
box_id: 1
47+
erasure_species: none
48+
kind: ssd
49+
pdisk_filter:
50+
- property:
51+
- type: SSD
52+
vdisk_kind: Default
53+
state_storage:
54+
- ring:
55+
node:
56+
- 1
57+
nto_select: 1
58+
ssid: 1
59+
grpc_config:
60+
port: 2135
61+
host_configs:
62+
- drive:
63+
- path: SectorMap:1:64
64+
type: SSD
65+
host_config_id: 1
66+
static_erasure: none

0 commit comments

Comments
 (0)