diff --git a/samples/kind/database-3dc.yaml b/samples/kind/database-3dc.yaml new file mode 100644 index 00000000..51646414 --- /dev/null +++ b/samples/kind/database-3dc.yaml @@ -0,0 +1,24 @@ +apiVersion: ydb.tech/v1alpha1 +kind: Database +metadata: + name: database-kind-sample +spec: + image: + name: cr.yandex/crptqonuodf51kdj7a7d/ydb:24.2.7 + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - storage-node + topologyKey: "kubernetes.io/hostname" + nodes: 3 + resources: + storageUnits: + - count: 1 + unitKind: ssd + storageClusterRef: + name: storage-kind-sample diff --git a/samples/kind/database.yaml b/samples/kind/database.yaml new file mode 100644 index 00000000..15b607bb --- /dev/null +++ b/samples/kind/database.yaml @@ -0,0 +1,14 @@ +apiVersion: ydb.tech/v1alpha1 +kind: Database +metadata: + name: database-kind-sample +spec: + image: + name: cr.yandex/crptqonuodf51kdj7a7d/ydb:24.2.7 + nodes: 1 + resources: + storageUnits: + - count: 1 + unitKind: ssd + storageClusterRef: + name: storage-kind-sample diff --git a/samples/kind/kind-3dc-config.yaml b/samples/kind/kind-3dc-config.yaml new file mode 100644 index 00000000..c21201fc --- /dev/null +++ b/samples/kind/kind-3dc-config.yaml @@ -0,0 +1,13 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: + - role: control-plane + - role: worker + labels: + topology.kubernetes.io/zone: az-1 + - role: worker + labels: + topology.kubernetes.io/zone: az-2 + - role: worker + labels: + topology.kubernetes.io/zone: az-3 diff --git a/samples/kind/kind-config.yaml b/samples/kind/kind-config.yaml new file mode 100644 index 00000000..33738683 --- /dev/null +++ b/samples/kind/kind-config.yaml @@ -0,0 +1,7 @@ +kind: Cluster +apiVersion: kind.x-k8s.io/v1alpha4 +nodes: + - role: control-plane + - role: worker + labels: + topology.kubernetes.io/zone: az-1 diff --git a/samples/kind/storage-mirror-3dc.yaml b/samples/kind/storage-mirror-3dc.yaml new file mode 100644 index 00000000..cfe42a77 --- /dev/null +++ b/samples/kind/storage-mirror-3dc.yaml @@ -0,0 +1,113 @@ +apiVersion: ydb.tech/v1alpha1 +kind: Storage +metadata: + name: storage-kind-sample +spec: + image: + name: cr.yandex/crptqonuodf51kdj7a7d/ydb:24.2.7 + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/component + operator: In + values: + - storage-node + topologyKey: "kubernetes.io/hostname" + dataStore: [] + nodes: 3 + domain: Root + erasure: mirror-3-dc + configuration: |- + actor_system_config: + cpu_count: 1 + node_type: STORAGE + use_auto_config: true + blob_storage_config: + service_set: + groups: + - erasure_species: mirror-3-dc + rings: + - fail_domains: + - vdisk_locations: + - node_id: 1 + pdisk_category: SSD + path: SectorMap:1:64 + - vdisk_locations: + - node_id: 1 + pdisk_category: SSD + path: SectorMap:2:64 + - vdisk_locations: + - node_id: 1 + pdisk_category: SSD + path: SectorMap:3:64 + - fail_domains: + - vdisk_locations: + - node_id: 2 + pdisk_category: SSD + path: SectorMap:1:64 + - vdisk_locations: + - node_id: 2 + pdisk_category: SSD + path: SectorMap:2:64 + - vdisk_locations: + - node_id: 2 + pdisk_category: SSD + path: SectorMap:3:64 + - fail_domains: + - vdisk_locations: + - node_id: 3 + pdisk_category: SSD + path: SectorMap:1:64 + - vdisk_locations: + - node_id: 3 + pdisk_category: SSD + path: SectorMap:2:64 + - vdisk_locations: + - node_id: 3 + pdisk_category: SSD + path: SectorMap:3:64 + channel_profile_config: + profile: + - channel: + - erasure_species: mirror-3-dc + pdisk_category: 0 + storage_pool_kind: ssd + - erasure_species: mirror-3-dc + pdisk_category: 0 + storage_pool_kind: ssd + - erasure_species: mirror-3-dc + pdisk_category: 0 + storage_pool_kind: ssd + profile_id: 0 + domains_config: + domain: + - name: Root + storage_pool_types: + - kind: ssd + pool_config: + box_id: 1 + erasure_species: mirror-3-dc + kind: ssd + pdisk_filter: + - property: + - type: SSD + vdisk_kind: Default + state_storage: + - ring: + node: [1, 2, 3] + nto_select: 3 + ssid: 1 + grpc_config: + port: 2135 + host_configs: + - drive: + - path: SectorMap:1:64 + type: SSD + - path: SectorMap:2:64 + type: SSD + - path: SectorMap:3:64 + type: SSD + host_config_id: 1 + static_erasure: mirror-3-dc diff --git a/samples/kind/storage.yaml b/samples/kind/storage.yaml new file mode 100644 index 00000000..84874e1f --- /dev/null +++ b/samples/kind/storage.yaml @@ -0,0 +1,65 @@ +apiVersion: ydb.tech/v1alpha1 +kind: Storage +metadata: + name: storage-kind-sample +spec: + dataStore: [] + image: + name: cr.yandex/crptqonuodf51kdj7a7d/ydb:24.2.7 + nodes: 1 + domain: Root + erasure: none + configuration: |- + actor_system_config: + cpu_count: 1 + node_type: STORAGE + use_auto_config: true + blob_storage_config: + service_set: + groups: + - erasure_species: none + rings: + - fail_domains: + - vdisk_locations: + - node_id: 1 + path: SectorMap:1:64 + pdisk_category: SSD + channel_profile_config: + profile: + - channel: + - erasure_species: none + pdisk_category: 0 + storage_pool_kind: ssd + - erasure_species: none + pdisk_category: 0 + storage_pool_kind: ssd + - erasure_species: none + pdisk_category: 0 + storage_pool_kind: ssd + profile_id: 0 + domains_config: + domain: + - name: Root + storage_pool_types: + - kind: ssd + pool_config: + box_id: 1 + erasure_species: none + kind: ssd + pdisk_filter: + - property: + - type: SSD + vdisk_kind: Default + state_storage: + - ring: + node: [1] + nto_select: 1 + ssid: 1 + grpc_config: + port: 2135 + host_configs: + - drive: + - path: SectorMap:1:64 + type: SSD + host_config_id: 1 + static_erasure: none