4 Star 95 Fork 20

wujiawei/wu-framework-parent

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
k8s-clickhose.yaml 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
wujiawei 提交于 2024-08-10 22:46 . [fix] 修改clickhouse 镜像问题
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations: {}
labels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: clickhouse-server
name: clickhouse-server
namespace: click-house
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: clickhouse-server
serviceName: clickhouse-server
template:
metadata:
labels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: clickhouse-server
spec:
containers:
- image: registry.cn-hangzhou.aliyuncs.com/wu-library/clickhouse-server:22.2.2.1
imagePullPolicy: Always
name: clickhouse-server
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
env:
- name: CLICKHOUSE_USER
value: root
- name: CLICKHOUSE_PASSWORD
value: wujiawei
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
---
apiVersion: v1
kind: Service
metadata:
annotations: {}
labels:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: clickhouse-server
name: clickhouse-server
namespace: click-house
spec:
ipFamilyPolicy: SingleStack
ports:
- name: ynapyh
nodePort: 29729
port: 9000
protocol: TCP
targetPort: 9000
- name: y7hn4z
nodePort: 1391
port: 8123
protocol: TCP
targetPort: 8123
selector:
k8s.kuboard.cn/layer: db
k8s.kuboard.cn/name: clickhouse-server
sessionAffinity: None
type: NodePort
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/wujiawei1207537021/wu-framework-parent.git
git@gitee.com:wujiawei1207537021/wu-framework-parent.git
wujiawei1207537021
wu-framework-parent
wu-framework-parent
master

搜索帮助