Hi guys,
iam facing the same issue i.e. my frontend haproxy in kubernetes is going in a crashloopbackoff please help, here is my frontend code:
apiVersion: apps/v1
kind: Deployment
metadata:
name: haproxy-ingress-devops
namespace: haproxy-controller-devops
labels:
run: haproxy-ingress
spec:
replicas: 1
selector:
matchLabels:
run: haproxy-ingress
template:
metadata:
labels:
run: haproxy-ingress
spec:
serviceAccountName: haproxy-service-account-devops
containers:
- name: ingress-container-devops
image: haproxytech/kubernetes-ingress
resources:
requests:
memory: "50Mi"
cpu: "500m"
command: ["/bin/sh"]
args: ["-c","--default-backend-service=haproxy-controller-devops/service-backend-devops"]
livenessProbe:
httpGet:
path: /healthz
port: 1024
ports:
- name: http
containerPort: 80
- name: https
containerPort: 443
- name: stat
containerPort: 1024
env:
- name: TZ
value: Etc/UTC
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
Please also see attached file: