zoukankan      html  css  js  c++  java
  • kubernetes的api-server高可用配置

    https://520mwx.com/view/51242

    实现工具:haproxy+keepalived

    haproxy.cfg的配置:

    global
        log         127.0.0.1 local2
        chroot      /var/lib/haproxy
        pidfile     /var/run/haproxy.pid
        maxconn     4000
        user        haproxy
        group       haproxy
        daemon
        stats socket /var/lib/haproxy/stats
    defaults
        mode                   tcp
        log                     global
        timeout connect         10s
        timeout client          1m
        timeout server          1m
        timeout check           10s
        maxconn                 3000
    frontend   kube-api
        bind   0.0.0.0:6443
        mode   tcp
        log    global
        default_backend   kube-master
    
    backend         kube-master
        balance     source
        server  master01  10.10.5.84:6443 check inter 2000 fall 2
        server  master02  10.10.5.85:6443 check inter 2000 fall 2
        server  master03  10.10.5.92:6443 check inter 2000 fall 2
    listen stats
        mode http
        bind 0.0.0.0:1080
        stats enable
        stats hide-version
        stats uri /haproxyadmin?stats
        stats realm Haproxy Statistics
        stats auth admin:admin
        stats admin if TRUE
  • 相关阅读:
    Go语言程序调试
    IDA FLIRT使用
    通过PEB寻找函数地址
    使用IWebBrowser2操控浏览器页面测试(IE)
    虚拟机检测手段
    初步了解PE分析
    CG-CTF simple-machine
    调试器原理初步学习
    简单shellcode编写
    使用ReportViewer的远程模式
  • 原文地址:https://www.cnblogs.com/dhcn/p/12571009.html
Copyright © 2011-2022 走看看