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