1
0
Fork 0
docker-easy-haproxy/examples/kubernetes/easyhaproxy.yml
Joao Gilberto Magalhaes 5c5f01df2b Using docker python
2022-08-23 23:01:07 -05:00

55 lines
1.2 KiB
YAML

---
apiVersion: v1
kind: Namespace
metadata:
name: easyhaproxy
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: easyhaproxy-ingress
namespace: easyhaproxy
spec:
selector:
matchLabels:
app: easyhaproxy-ingress
template:
metadata:
labels:
app: easyhaproxy-ingress
spec:
#serviceAccountName: easyhaproxy-ingress
containers:
- image: byjg/easy-haproxy:test
imagePullPolicy: Always
name: easyhaproxy-ingress
ports:
- name: http
containerPort: 80
hostPort: 80
- name: https
containerPort: 443
hostPort: 443
- name: stats
containerPort: 1943
hostPort: 1943
resources:
requests:
cpu: "100m"
memory: "128Mi"
env:
- name: EASYHAPROXY_DISCOVER
value: kubernetes
- name: HAPROXY_USERNAME
value: admin
- name: HAPROXY_PASSWORD
value: password
- name: EASYHAPROXY_REFRESH_CONF
value: "10"
- name: HAPROXY_CUSTOMERRORS
value: "true"
- name: EASYHAPROXY_SSL_MODE
value: loose