Cephadm部署rgw ingress和nfs ingress(Pacific版本)
rgw ingress自动生成的配置
- keepalived的配置文件:/etc/keepalived/keepalived.conf
# This file is generated by cephadm.
vrrp_script check_backend {
script "/usr/bin/curl http://localhost:1967/health"
weight -20
interval 2
rise 2
fall 2
}
vrrp_instance VI_0 {
state MASTER
priority 100
interface ens33
virtual_router_id 50
advert_int 1
authentication {
auth_type PASS
auth_pass umubwzqwgsnyckfooqze
}
unicast_src_ip 192.168.100.10
unicast_peer {
}
virtual_ipaddress {
192.168.100.201/24 dev ens33
}
track_script {
check_backend
}
}
- haproxy的配置文件: /var/lib/haproxy/haproxy.cfg
# This file is generated by cephadm.
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/lib/haproxy/haproxy.pid
maxconn 8000
daemon
stats socket /var/lib/haproxy/stats
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout queue 20s
timeout connect 5s
timeout http-request 1s
timeout http-keep-alive 5s
timeout client 1s
timeout server 1s
timeout check 5s
maxconn 8000
frontend stats
mode http
bind *:1967
bind localhost:1967
stats enable
stats uri /stats
stats refresh 10s
stats auth admin:vdbusxzrjnghoxjjtpzw
http-request use-service prometheus-exporter if { path /metrics }
monitor-uri /health
frontend frontend
bind *:80
default_backend backend
backend backend
option forwardfor
balance static-rr
option httpchk HEAD / HTTP/1.0
server rgw.rgw.ubuntu-20-04-lts.clsfte 192.168.100.10:8081 check weight 100
server rgw.rgw.ubuntu-20-04-lts.fkhojn 192.168.100.10:8080 check weight 100
nfs ingress自动生成的配置
- keepalived的配置文件:/etc/keepalived/keepalived.conf
# This file is generated by cephadm.
vrrp_script check_backend {
script "/usr/bin/curl http://localhost:1968/health"
weight -20
interval 2
rise 2
fall 2
}
vrrp_instance VI_0 {
state MASTER
priority 100
interface ens33
virtual_router_id 50
advert_int 1
authentication {
auth_type PASS
auth_pass spzhspekgwlbhubpieoc
}
unicast_src_ip 192.168.100.10
unicast_peer {
}
virtual_ipaddress {
192.168.100.204/24 dev ens33
}
track_script {
check_backend
}
}
- haproxy的配置文件:/var/lib/haproxy/haproxy.cfg
# This file is generated by cephadm.
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/lib/haproxy/haproxy.pid
maxconn 8000
daemon
stats socket /var/lib/haproxy/stats
defaults
mode tcp
log global
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout check 10s
maxconn 8000
frontend stats
mode http
bind 192.168.100.204:1968
bind localhost:1968
stats enable
stats uri /stats
stats refresh 10s
stats auth admin:yshkycetxdhgxwceukcn
http-request use-service prometheus-exporter if { path /metrics }
monitor-uri /health
frontend frontend
bind 192.168.100.204:2049
default_backend backend
backend backend
mode tcp
balance source
hash-type consistent
server nfs.nfs.0 192.168.100.10:2050
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· 字符编码:从基础到乱码解决
· Open-Sora 2.0 重磅开源!
2022-02-27 Ceph 监控 OSD 和 PG
2022-02-27 Ceph 监控集群
2022-02-27 Ceph 健康检查