mirror of
https://github.com/batonogov/learn-devops.git
synced 2025-11-29 00:33:02 +00:00
32 lines
748 B
YAML
32 lines
748 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
creationTimestamp: null
|
|
name: keepalived
|
|
namespace: kube-system
|
|
spec:
|
|
containers:
|
|
- image: ghcr.io/batonogov/docker-keepalived:2.0.20
|
|
name: keepalived
|
|
resources: {}
|
|
securityContext:
|
|
capabilities:
|
|
add:
|
|
- NET_ADMIN
|
|
- NET_BROADCAST
|
|
- NET_RAW
|
|
volumeMounts:
|
|
- mountPath: /usr/local/etc/keepalived/keepalived.conf
|
|
name: config
|
|
- mountPath: /etc/keepalived/check_apiserver.sh
|
|
name: check
|
|
hostNetwork: true
|
|
volumes:
|
|
- hostPath:
|
|
path: /etc/keepalived/keepalived.conf
|
|
name: config
|
|
- hostPath:
|
|
path: /etc/keepalived/check_apiserver.sh
|
|
name: check
|
|
status: {}
|