Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Nginx IPv6 enable by default but can be disable through ENV var #216

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

carlosthe19916
Copy link
Contributor

@carlosthe19916 carlosthe19916 commented Jul 14, 2021

The current Nginx server enables by default both IPv4 and IPv6; however, it has been reported that certain K8s instances might not have IPv6 enabled so it is required to disable IPv6 otherwise the pod associated with the UI will throw an error:

2021/07/14 02:07:04 [emerg] 1#0: socket() [::]:8080 failed (97: Address family not supported by protocol)
nginx: [emerg] socket() [::]:8080 failed (97: Address family not supported by protocol)

The way of disabling IPv6 in a K8s/OCP environment will be to set an environment variable DISABLE_IPV6 whose value can be true or false.

  • If DISABLE_IPV6=true => the IPv6 will be disabled.

  • If DISABLE_IPV6=false or DISABLE_IPV6 doesn't exists => the IPv6 will be enabled.

  • @mrizzi If this PR is merged eventually then the new ENV DISABLE_IPV6 will be also needed to be included inside the Operator source code. Ideally, the Operator should be able to detect whether or not the K8s instance has enabled/disabled IPv6 and then set the correct value to DISABLE_IPV6. Anyway, this is just a reminder for doing something on the operator side.

  • If this PR is merged it might also be required to enhance the docs (if we have any).

@codecov
Copy link

codecov bot commented Jul 14, 2021

Codecov Report

Merging #216 (8e7c70d) into main (55b2a21) will increase coverage by 1.53%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #216      +/-   ##
==========================================
+ Coverage   54.82%   56.36%   +1.53%     
==========================================
  Files         169      169              
  Lines        3969     3969              
  Branches      778      794      +16     
==========================================
+ Hits         2176     2237      +61     
+ Misses       1789     1728      -61     
  Partials        4        4              
Flag Coverage Δ
e2etests 62.38% <ø> (-0.47%) ⬇️
unitests 26.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...components/job-function-form/job-function-form.tsx 3.12% <0.00%> (+3.12%) ⬆️
...c/layout/AppAboutModalState/AppAboutModalState.tsx 100.00% <0.00%> (+16.66%) ⬆️
...hooks/useFetchJobFunctions/useFetchJobFunctions.ts 78.94% <0.00%> (+18.42%) ⬆️
src/pages/controls/job-functions/job-functions.tsx 55.00% <0.00%> (+55.00%) ⬆️
.../new-job-function-modal/new-job-function-modal.tsx 100.00% <0.00%> (+100.00%) ⬆️
...e-job-function-modal/update-job-function-modal.tsx 100.00% <0.00%> (+100.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 55b2a21...8e7c70d. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant