Sign inSign up

xwjh/lvscare

By xwjh

•Updated about 3 years ago

基于开源项目构建:https://github.com/labring/lvscare

Image
0

209

xwjh/lvscare repository overview

⁠Dockerfile

FROM scratch
COPY lvscare /usr/bin/lvscare

⁠使用方式

master1="10.1.1.100"
master2="10.1.1.101"
master3="10.1.1.102"
VIP="240.8.8.8"

cat << EOF | tee /etc/kubernetes/manifests/lvscare.yaml
apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    component: lvscare
    tier: control-plane
  name: lvscare
  namespace: kube-system
spec:
  containers:
  - args:
    - care
    - --vs
    - ${VIP}:6443
    - --health-path
    - /healthz
    - --health-schem
    - https
    - --rs
    - ${master1}:6443
    - --rs
    - ${master2}:6443
    - --rs
    - ${master3}:6443
    command:
    - /usr/bin/lvscare
    image: xwjh/lvscare:4.0.0
    imagePullPolicy: IfNotPresent
    name: lvscare
    resources: {}
    securityContext:
      privileged: true
    volumeMounts:
    - mountPath: /lib/modules
      name: lib-modules
      readOnly: true
  hostNetwork: true
  priorityClassName: system-cluster-critical
  volumes:
  - hostPath:
      path: /lib/modules
      type: ""
    name: lib-modules
status: {}
EOF
}

Tag summary

Content type

Image

Digest

sha256:4a28da9f7…

Size

13 MB

Last updated

about 3 years ago

docker pull xwjh/lvscare:v4.3.3