云服务器内容精选
-
Simple example 本示例来源于https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/01-simple-layout-01-1shard-1repl.yaml。 yaml文件如下: apiVersion: "clickhouse.altinity.com/v1"kind: "ClickHouseInstallation"metadata: name: "simple-01" 使用如下命令创建: kubectl apply -n test-clickhouse-operator -f https://raw.githubusercontent.com/Altinity/clickhouse-operator/master/docs/chi-examples/01-simple-layout-01-1shard-1repl.yaml 一段时间后,查看资源运行情况: kubectl get pod -n test-clickhouse-operator kubectl get service -n test-clickhouse-operator 连接ClickHouse Database: kubectl -n test-clickhouse-operator exec -ti chi-simple-01-cluster-0-0-0 -- clickhouse-client
-
Simple Persistent Volume Example 本示例来源于https://github.com/Altinity/clickhouse-operator/blob/master/docs/chi-examples/03-persistent-volume-01-default-volume.yaml。 在CCE使用PVC时,yaml文件需做一些适配: 使用云硬盘存储卷EVS 创建storageClass CCE默认支持的csi-disk为SAS类型的云硬盘。 若想使用超高I/O类型的云硬盘,需要创建对应的storageClass。 vim csi-disk-ssd.yaml 复制以下内容: allowVolumeExpansion: trueapiVersion: storage.k8s.io/v1kind: StorageClassmetadata: name: csi-disk-ssdparameters: csi.storage.k8s.io/csi-driver-name: disk.csi.everest.io csi.storage.k8s.io/fstype: ext4 everest.io/disk-volume-type: SSD everest.io/passthrough: "true"provisioner: everest-csi-provisionerreclaimPolicy: DeletevolumeBindingMode: Immediate 保存后退出: kubectl create -f csi-disk-ssd.yaml accessModes需填写为ReadWriteOnce。 添加storageClassName: csi-disk-ssd。 使用文件存储卷SFS accessModes需填写为ReadWriteMany。 添加storageClassName: csi-nas。 下面以文件存储卷SFS为例,yaml文件如下: apiVersion: "clickhouse.altinity.com/v1"kind: "ClickHouseInstallation"metadata: name: "pv-simple"spec: defaults: templates: dataVolumeClaimTemplate: data-volume-template logVolumeClaimTemplate: log-volume-template configuration: clusters: - name: "simple" layout: shardsCount: 1 replicasCount: 1 templates: volumeClaimTemplates: - name: data-volume-template spec: accessModes: - ReadWriteMany resources: requests: storage: 10Gi storageClassName: csi-nas - name: log-volume-template spec: accessModes: - ReadWriteMany resources: requests: storage: 10Gi storageClassName: csi-nas 使用如下命令创建: kubectl -n test-clickhouse-operator create -f 03-persistent-volume-01-default-volume.yaml 一段时间后,查看资源运行情况: kubectl get pvc -n test-clickhouse-operator kubectl get pod -n test-clickhouse-operator 查看存储卷挂载情况: kubectl -n test-clickhouse-operator exec -ti chi-pv-simple-simple-0-0-0 -c clickhouse bash df -h 连接ClickHouse Database: kubectl -n test-clickhouse-operator exec -ti chi-pv-simple-simple-0-0-0 -- clickhouse-client
更多精彩内容
CDN加速
GaussDB
文字转换成语音
免费的服务器
如何创建网站
域名网站购买
私有云桌面
云主机哪个好
域名怎么备案
手机云电脑
SSL证书申请
云点播服务器
免费OCR是什么
电脑云桌面
域名备案怎么弄
语音转文字
文字图片识别
云桌面是什么
网址安全检测
网站建设搭建
国外CDN加速
SSL免费证书申请
短信批量发送
图片OCR识别
云数据库MySQL
个人域名购买
录音转文字
扫描图片识别文字
OCR图片识别
行驶证识别
虚拟电话号码
电话呼叫中心软件
怎么制作一个网站
Email注册网站
华为VNC
图像文字识别
企业网站制作
个人网站搭建
华为云计算
免费租用云托管
云桌面云服务器
ocr文字识别免费版
HTTPS证书申请
图片文字识别转换
国外域名注册商
使用免费虚拟主机
云电脑主机多少钱
鲲鹏云手机
短信验证码平台
OCR图片文字识别
SSL证书是什么
申请企业邮箱步骤
免费的企业用邮箱
云免流搭建教程
域名价格