Skip to content

Commit 8e4f806

Browse files
committed
Add EKS examples for stop property
1 parent 3245f3a commit 8e4f806

8 files changed

+131
-3
lines changed

k8s-scaling/chi-aws-00.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# ClickHouse using default storage class.
2+
apiVersion: "clickhouse.altinity.com/v1"
3+
kind: "ClickHouseInstallation"
4+
metadata:
5+
name: "aws"
6+
spec:
7+
configuration:
8+
clusters:
9+
- name: "ch"
10+
layout:
11+
replicasCount: 1
12+
shardsCount: 1
13+
templates:
14+
volumeClaimTemplate: storage
15+
podTemplate: replica
16+
templates:
17+
podTemplates:
18+
- name: replica
19+
podDistribution:
20+
- type: ClickHouseAntiAffinity
21+
scope: ClickHouseInstallation
22+
spec:
23+
containers:
24+
- name: clickhouse
25+
image: altinity/clickhouse-server:23.3.8.22.altinitystable
26+
nodeSelector:
27+
node.kubernetes.io/instance-type: m6i.large
28+
volumeClaimTemplates:
29+
- name: storage
30+
reclaimPolicy: Retain
31+
spec:
32+
accessModes:
33+
- ReadWriteOnce
34+
resources:
35+
requests:
36+
storage: 10Gi

k8s-scaling/chi-aws-01.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# ClickHouse using default storage class.
2+
apiVersion: "clickhouse.altinity.com/v1"
3+
kind: "ClickHouseInstallation"
4+
metadata:
5+
name: "aws"
6+
spec:
7+
stop: "yes"
8+
configuration:
9+
clusters:
10+
- name: "ch"
11+
layout:
12+
replicasCount: 1
13+
shardsCount: 1
14+
templates:
15+
volumeClaimTemplate: storage
16+
podTemplate: replica
17+
templates:
18+
podTemplates:
19+
- name: replica
20+
podDistribution:
21+
- type: ClickHouseAntiAffinity
22+
scope: ClickHouseInstallation
23+
spec:
24+
containers:
25+
- name: clickhouse
26+
image: altinity/clickhouse-server:23.3.8.22.altinitystable
27+
nodeSelector:
28+
node.kubernetes.io/instance-type: m6i.large
29+
volumeClaimTemplates:
30+
- name: storage
31+
reclaimPolicy: Retain
32+
spec:
33+
accessModes:
34+
- ReadWriteOnce
35+
resources:
36+
requests:
37+
storage: 10Gi

k8s-scaling/chi-aws-02.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# ClickHouse using default storage class.
2+
apiVersion: "clickhouse.altinity.com/v1"
3+
kind: "ClickHouseInstallation"
4+
metadata:
5+
name: "aws"
6+
spec:
7+
stop: "no"
8+
configuration:
9+
clusters:
10+
- name: "ch"
11+
layout:
12+
replicasCount: 1
13+
shardsCount: 1
14+
templates:
15+
volumeClaimTemplate: storage
16+
podTemplate: replica
17+
templates:
18+
podTemplates:
19+
- name: replica
20+
podDistribution:
21+
- type: ClickHouseAntiAffinity
22+
scope: ClickHouseInstallation
23+
spec:
24+
containers:
25+
- name: clickhouse
26+
image: altinity/clickhouse-server:23.3.8.22.altinitystable
27+
nodeSelector:
28+
node.kubernetes.io/instance-type: m6i.xlarge
29+
volumeClaimTemplates:
30+
- name: storage
31+
reclaimPolicy: Retain
32+
spec:
33+
accessModes:
34+
- ReadWriteOnce
35+
resources:
36+
requests:
37+
storage: 10Gi

k8s-scaling/chi-stop-00.yaml k8s-scaling/chi-generic-00.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: "clickhouse.altinity.com/v1"
33
kind: "ClickHouseInstallation"
44
metadata:
5-
name: "stop"
5+
name: "generic"
66
spec:
77
configuration:
88
clusters:

k8s-scaling/chi-stop-01.yaml k8s-scaling/chi-generic-01.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: "clickhouse.altinity.com/v1"
33
kind: "ClickHouseInstallation"
44
metadata:
5-
name: "stop"
5+
name: "generic"
66
spec:
77
stop: "yes"
88
configuration:

k8s-scaling/chi-stop-02.yaml k8s-scaling/chi-generic-02.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: "clickhouse.altinity.com/v1"
33
kind: "ClickHouseInstallation"
44
metadata:
5-
name: "stop"
5+
name: "generic"
66
spec:
77
stop: "no"
88
configuration:

k8s-scaling/create-node-group.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
set -x
3+
eksctl create nodegroup --config-file eks-nodegroups.yaml

k8s-scaling/eks-nodegroups.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: eksctl.io/v1alpha5
2+
kind: ClusterConfig
3+
4+
metadata:
5+
name: ubuntu-altinity-cloud-anywhere-demo
6+
region: us-west-2
7+
8+
managedNodeGroups:
9+
- name: m6i-large-workers
10+
labels: { role: workers }
11+
instanceType: m6i.large
12+
minSize: 0
13+
maxSize: 5
14+
volumeSize: 25
15+
privateNetworking: true

0 commit comments

Comments
 (0)