-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from Altinity/0.4.3
0.4.3
- Loading branch information
Showing
22 changed files
with
285 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
apiVersion: "clickhouse.altinity.com/v1" | ||
kind: "ClickHouseInstallation" | ||
metadata: | ||
name: "verityprod" | ||
namespace: dev | ||
spec: | ||
defaults: | ||
replicasUseFQDN: "0" | ||
distributedDDL: | ||
profile: default | ||
templates: | ||
podTemplate: clickhouse-template | ||
volumeClaimTemplate: aws-ebs-volume-claim | ||
serviceTemplate: chi-service-template | ||
|
||
configuration: | ||
settings: | ||
compression/case/method: zstd | ||
users: | ||
verity_prod/password: "verity" | ||
verity_prod/networks/ip: "::/0" | ||
verity_prod/profile: "default" | ||
verity_prod/allow_databases/database: | ||
- "veritytest" | ||
- "verityprod" | ||
clusters: | ||
- name: replicas-only | ||
templates: | ||
podTemplate: clickhouse-template | ||
volumeClaimTemplate: aws-ebs-volume-claim | ||
layout: | ||
replicasCount: 1 | ||
|
||
templates: | ||
serviceTemplates: | ||
- name: chi-service-template | ||
generateName: "service-{chi}" | ||
metadata: | ||
annotations: | ||
external-dns.alpha.kubernetes.io/hostname: XXXXXXXXXXXXXXXXXXXX. | ||
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp | ||
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0 | ||
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: arn:aws:acm:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | ||
service.beta.kubernetes.io/aws-load-balancer-ssl-negotiation-policy: ELBSecurityPolicy-TLS-1-2-2017-01 | ||
spec: | ||
ports: | ||
- name: http | ||
port: 8123 | ||
- name: client | ||
port: 9000 | ||
type: LoadBalancer | ||
|
||
volumeClaimTemplates: | ||
- name: aws-ebs-volume-claim | ||
spec: | ||
# storageClassName: ebs-volume-class | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
|
||
podTemplates: | ||
- name: clickhouse-template | ||
metadata: | ||
labels: | ||
app: clickhouse | ||
spec: | ||
containers: | ||
- name: clickhouse | ||
image: yandex/clickhouse-server | ||
ports: | ||
- name: http | ||
containerPort: 8123 | ||
- name: client | ||
containerPort: 9000 | ||
volumeMounts: | ||
- name: aws-ebs-volume-claim | ||
mountPath: /var/lib/clickhouse | ||
# nodeSelector: | ||
# beta.kubernetes.io/instance-type: r5a.xlarge | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Get all nodes with output header | ||
# Skip master node | ||
# Skip output header | ||
# Extract node names | ||
# Label each node | ||
kubectl get nodes | \ | ||
grep -v master | \ | ||
awk '{print $1}' | \ | ||
tail -n +2 | \ | ||
while read -r line; do | ||
NODE=$line | ||
#kubectl label nodes <node-name> <label-key>=<label-value> | ||
#kubectl label nodes --overwrite=true $NODE clickhouse=allow | ||
kubectl label nodes $NODE clickhouse=allow | ||
awk '{print $1}' | \ | ||
while read -r LINE; do | ||
# Label each node | ||
NODE="${LINE}" | ||
#kubectl label nodes <node-name> <label-key>=<label-value> | ||
#kubectl label nodes --overwrite=true "${NODE}" clickhouse=allow | ||
kubectl label nodes "${NODE}" clickhouse=allow | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.