This message was deleted.
# general
a
This message was deleted.
s
Try Kube-VIP
b
Will try the same. In the mean time tried to install Ha proxy into rke2's self-installing manifest folder.Facing an issue with ha-proxy pods going to crashloopback with error "Liveness probe failed: HTTP probe failed with statuscode: 401"
#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
log /dev/log local0
log /dev/log local1 notice
daemon
#---------------------------------------------------------------------
# common defaults that all the 'listen' and 'backend' sections will
# use if not designated in their block
#---------------------------------------------------------------------
defaults
mode                    http
log                     global
option                  httplog
option                  dontlognull
option http-server-close
option forwardfor       except 127.0.0.0/8
option                  redispatch
retries                 1
timeout http-request    10s
timeout queue           20s
timeout connect         5s
timeout client          20s
timeout server          20s
timeout http-keep-alive 10s
timeout check           10s
#---------------------------------------------------------------------
# apiserver frontend which proxys to the masters
#---------------------------------------------------------------------
frontend apiserver
bind *:7443
mode tcp
option tcplog
default_backend apiserver
#---------------------------------------------------------------------
# round robin balancing for apiserver
#---------------------------------------------------------------------
backend apiserver
option httpchk GET /healthz
http-check expect status 200
mode tcp
option ssl-hello-chk
balance     roundrobin
server kube-master-0 10.108.34.223:6443 check
server kube-master-1 10.108.34.224:6443 check
server kube-master-2 10.108.34.226:6443 check
Copy code
apiVersion: v1
kind: Pod
metadata:
  name: haproxy
  namespace: kube-system
spec:
  containers:
  - image: test-articatory/docker/haproxy:2.1.4
    name: haproxy
    livenessProbe:
      failureThreshold: 8
      httpGet:
        host: localhost
        path: /healthz
        port: 7443
        scheme: HTTPS
    volumeMounts:
    - mountPath: /usr/local/etc/haproxy/haproxy.cfg
      name: haproxyconf
      readOnly: true
  hostNetwork: true
  volumes:
  - hostPath:
      path: /etc/haproxy/haproxy.cfg
      type: FileOrCreate
    name: haproxyconf
Any idea about this issue on how to resolve. And is there any way we can specify the control-plane-endpoints similar to kubeadm?