selvag
August 14, 2020, 6:17am
#1
Hi Team, @Tej-Singh-Rana @Inderpreet @Ayman @kodekloud-support3
I have done below steps. But its failed. Can you check anything missing here?
my mail : [email protected]
Configuration
yum -y install haproxy
vi /etc/haproxy/haproxy.cfg
frontend Local_Server
bind 172.16.238.14:80
mode http
default_backend My_Web_Servers
backend My_Web_Servers
mode http
balance roundrobin
option forwardfor
http-request set-header X-Forwarded-Port %[dst_port]
http-request add-header X-Forwarded-Proto https if { ssl_fc }
option httpchk HEAD / HTTP/1.1rnHost:localhost
server stapp01.stratos.xfusioncorp.com 172.16.238.10:6300
server stapp02.stratos.xfusioncorp.com 172.16.238.11:6300
server stapp03.stratos.xfusioncorp.com 172.16.238.12:6300
Validate
haproxy -c -f /etc/haproxy/haproxy.cfg
Configuration validation after changes. verified before restart.
Curl is success in all server.
Able to see output in port.
#systemctl status httpd
Am able to curl from all server and LBR server.
but failed like below.
selvag
August 15, 2020, 3:55pm
#2
@Inderpreet @Tej-Singh-Rana any help/update here? Thanks
selvag
August 18, 2020, 12:18pm
#3
@Inderpreet @Tej-Singh-Rana i have completed all steps correctly. am able to test with curl and web page as well. but still its failed. added my steps in above screenshots . could you please check anything missing?
KKE team will look into this. Wait for their response.
1 Like
selvag
August 27, 2020, 6:01am
#5
@Inderpreet @Ayman @kodekloud-support3 Team, Any update on this.? I believe this task is marked as failed wrongly. Can anyone check this please? thanks.
selvag
August 30, 2020, 2:14pm
#6
I got same task again . Its success now . unlucky no one respond previous failure @Inderpreet @Ayman @kodekloud-support3
selvag
August 30, 2020, 2:22pm
#7
Below steps worked for me
in app servers
cat /etc/httpd/conf/httpd.conf| grep Listen → to check httpd port to configure in LBR
systemctl enable httpd && service httpd start && service httpd status
LBR server
yum -y install haproxy
cp /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.cfg.bkp
cat /etc/haproxy/haproxy.cfg | grep haproxy/stat
vi /etc/haproxy/haproxy.cfg
frontend main *:**80**
acl url_static path_beg -i /static /images /javascript /stylesheets
acl url_static path_end -i .jpg .gif .png .css .js
use_backend static if url_static
default_backend **app**
backend **app**
balance roundrobin
server stapp01 172.16.238.10:8085 check
server stapp02 172.16.238.11:8085 check
server stapp03 172.16.238.12:8085 check
To validate
haproxy -f /etc/haproxy/haproxy.cfg
systemctl enable haproxy && service haproxy start && service haproxy status
to Validate LBR and all app servers
curl 172.16.238.10:8085
curl 172.16.238.11:8085
curl 172.16.238.12:8085
curl 172.16.238.14:80
1 Like
I did mine and passed the validation but was failed because I changed apache port on all app servers to default.
I don’t see how this should be failed as it does not explicitly say not to modify the app server ports.
hi @proflanky , can you please share your KKE username or email ?
@proflanky , you should stick to the question, the validation run as per the question requirements and the things which are pre-configured for the questions.