mirror of
https://github.com/batonogov/learn-devops.git
synced 2025-11-29 08:43:01 +00:00
28 lines
582 B
YAML
28 lines
582 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: haproxy
|
|
namespace: kube-system
|
|
spec:
|
|
containers:
|
|
- image: haproxy:3.0.2
|
|
name: haproxy
|
|
livenessProbe:
|
|
failureThreshold: 8
|
|
httpGet:
|
|
host: localhost
|
|
path: /healthz
|
|
port: 8888
|
|
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
|
|
status: {}
|