1 Star 0 Fork 3

lokywang/glusterfs-k8s

forked from 刘帅/glusterfs-k8s 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gluster-daemonset.yaml 2.83 KB
一键复制 编辑 原始数据 按行查看 历史
刘帅 提交于 2020-07-31 16:47 . update gluster-daemonset.yaml.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: glusterfs
labels:
glusterfs: deployment
annotations:
description: GlusterFS Daemon Set
tags: glusterfs
spec:
selector:
matchLabels:
glusterfs-node: daemonset
template:
metadata:
creationTimestamp: null
labels:
glusterfs-node: daemonset
name: glusterfs
spec:
tolerations:
- key: "glusterfs"
operator: "Equal"
value: "true"
effect: "NoSchedule"
nodeSelector:
storagenode: glusterfs
hostNetwork: true
containers:
- env:
- name: TZ
value: Asia/Shanghai
image: gluster/gluster-centos:latest
imagePullPolicy: IfNotPresent
name: glusterfs
volumeMounts:
- mountPath: /var/lib/heketi
name: glusterfs-heketi
- mountPath: /run
name: glusterfs-run
- mountPath: /run/lvm
name: glusterfs-lvm
- mountPath: /etc/glusterfs
name: glusterfs-etc
- mountPath: /var/log/glusterfs
name: glusterfs-logs
- mountPath: /var/lib/glusterd
name: glusterfs-config
- mountPath: /dev
name: glusterfs-dev
- mountPath: /sys/fs/cgroup
name: glusterfs-cgroup
- mountPath: /data
name: glusterfs-data
securityContext:
capabilities: {}
privileged: true
readinessProbe:
exec:
command:
- /bin/bash
- -c
- systemctl status glusterd.service
initialDelaySeconds: 60
timeoutSeconds: 3
livenessProbe:
exec:
command:
- /bin/bash
- -c
- systemctl status glusterd.service
failureThreshold: 3
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3
volumes:
- hostPath:
path: /var/lib/heketi
type: ""
name: glusterfs-heketi
- emptyDir: {}
name: glusterfs-run
- hostPath:
path: /run/lvm
type: ""
name: glusterfs-lvm
- hostPath:
path: /etc/glusterfs
type: ""
name: glusterfs-etc
- hostPath:
path: /var/log/glusterfs
type: ""
name: glusterfs-logs
- hostPath:
path: /var/lib/glusterd
type: ""
name: glusterfs-config
- hostPath:
path: /dev
type: ""
name: glusterfs-dev
- hostPath:
path: /sys/fs/cgroup
type: ""
name: glusterfs-cgroup
- hostPath:
path: /data
type: ""
name: glusterfs-data
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lokywang/gfs-k8s.git
[email protected]:lokywang/gfs-k8s.git
lokywang
gfs-k8s
glusterfs-k8s
master

搜索帮助