in Education by
I got an openshift cluster with 2 nodes (a master and a slave), I want to change the config file of my HAproxy router, so i choose to do a configmap. After i follow this tuto: https://docs.openshift.org/latest/install_config/install/deploy_router.html the configmap is created, but the pod doesnt want to restart, i got this error: I0830 12:35:37.112924 1 router.go:161] Router is including routes in all >namespaces E0830 12:35:37.372029 1 ratelimiter.go:50] error reloading router: exit >status 1 [ALERT] 242/123537 (28) : [/usr/sbin/haproxy.main()] No enabled listener found >(check the keywords) ! Exiting. After i deleate the "livenessProb" and "readenesProb" in the rc I can access my router pod, but the configfile is empty. When i do "findmnt -o +PROPAGATION" in the pod i got this : TARGET SOURCE FSTYPE OPTIONS PROPAGATION / /dev/mapper/docker-253:0-202065893- 4b0b4dede29e355551067e03212ee75cd293545839a9e5014525b8fc8453e5e4[/rootfs] xfs rw,relat private |-/proc proc proc rw,nosui private | |-/proc/bus proc[/bus] proc ro,nosui private | |-/proc/fs proc[/fs] proc ro,nosui private | |-/proc/irq proc[/irq] proc ro,nosui private | |-/proc/sys proc[/sys] proc ro,nosui private | |-/proc/sysrq-trigger proc[/sysrq-trigger] proc ro,nosui private | |-/proc/kcore tmpfs[/null] tmpfs rw,nosui private | `-/proc/timer_stats tmpfs[/null] tmpfs rw,nosui private |-/dev tmpfs tmpfs rw,nosui private | |-/dev/pts devpts devpts rw,nosui private | |-/dev/mqueue mqueue mqueue rw,nosui private | |-/dev/termination-log /dev/mapper/centos- root[/var/lib/origin/openshift.local.volumes/pods/3deedc57-6eae-11e6-8091- 020000a17bb0/containers/router/58cbfd4d] xfs rw,relat private,slave | `-/dev/shm shm tmpfs rw,nosui private |-/sys sysfs sysfs ro,nosui private | `-/sys/fs/cgroup tmpfs tmpfs ro,nosui private | |-/sys/fs/cgroup/systemd cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave | |-/sys/fs/cgroup/cpuacct,cpu cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave | |-/sys/fs/cgroup/cpuset cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave | |-/sys/fs/cgroup/net_cls cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave | |-/sys/fs/cgroup/memory cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave | |-/sys/fs/cgroup/blkio cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave | |-/sys/fs/cgroup/perf_event cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave | |-/sys/fs/cgroup/devices cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave | |-/sys/fs/cgroup/freezer cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave | `-/sys/fs/cgroup/hugetlb cgroup[/system.slice/docker-297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c.scope] cgroup ro,nosui private,slave |-/run/secrets /dev/mapper/centos- root[/var/lib/docker/containers/297a37b2903e3a3bcd64d74a4e0c8e71d90cf240377bbc4b778e73ebda53af0c/secrets] xfs rw,relat private,slave | `-/run/secrets/kubernetes.io/serviceaccount tmpfs tmpfs ro,relat private,slave |-/etc/hosts /dev/mapper/centos-root[/var/lib/docker/containers/56f5ea1e5e2fb9392b9cb3cfc6eecc43d42eb23f9769793e6b2e4f7250c7cf5c/hosts] xfs rw,relat private |-/etc/resolv.conf /dev/mapper/centos-root[/var/lib/docker/containers/56f5ea1e5e2fb9392b9cb3cfc6eecc43d42eb23f9769793e6b2e4f7250c7cf5c/resolv.conf] xfs rw,relat private |-/etc/hostname /dev/mapper/centos-root[/var/lib/docker/containers/56f5ea1e5e2fb9392b9cb3cfc6eecc43d42eb23f9769793e6b2e4f7250c7cf5c/hostname] xfs rw,relat private `-/var/lib/haproxy/conf/custom tmpfs tmpfs rw,relat private,slave Any help ? Thanks JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
You need to use a template file for the openshift router. This explains in detail what you need to do. https://docs.openshift.org/latest/install_config/install/deploy_router.html#using-configmap-replace-template

Related questions

0 votes
    We switched from citrix to HAProxy for load balancing recently. The Problem is that for some requests ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 23, 2022 in Education by JackTerrance
0 votes
    I am trying to start a local Kubernetes cluster using minikube start and getting the following error. Starting local ... this slow? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I've been using K8S ConfigMap and Secret to manage our properties. My design is pretty simple, that keeps ... 't been created Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I've made a fresh eclipse reinstall + Android SDK v4.0. I am trying to create a new 4.0 AVD ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 30, 2022 in Education by JackTerrance
0 votes
    I have some wizard-like pages in my application, its keeping state while navigating between small steps, the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
0 votes
    I am using simple thread to execute the httpGet to server when a button is clicked, but I get ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    I have a GKE Cluster current scaled upto multiple nodes, the scale up happened during high load due to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    The situation I have a kubernetes pod stuck in "Terminating" state that resists pod deletions NAME READY STATUS ... not exist. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    How to get the central logs from POD?...
asked Jul 15, 2021 in Technology by JackTerrance
0 votes
    What is PDB (Pod Disruption Budget)?...
asked Jul 15, 2021 in Technology by JackTerrance
0 votes
    How do we control the resource usage of POD?...
asked Jul 15, 2021 in Education by JackTerrance
0 votes
    This question already has answers here: Saving path in String (4 answers) Closed 5 years ago. I'm ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 30, 2022 in Education by JackTerrance
0 votes
    This question already has answers here: Saving path in String (4 answers) Closed 5 years ago. I'm ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 23, 2022 in Education by JackTerrance
0 votes
    I've following two path path1- test/hello/hello.php path2- test/hello1/hello1.php //notice the one ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 19, 2022 in Education by JackTerrance
0 votes
    I've following two path path1- test/hello/hello.php path2- test/hello1/hello1.php //notice the one ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 17, 2022 in Education by JackTerrance
...