Apache webserver handles TLS on Ironic#728
Conversation
|
Do we want to use a "reverse proxy" or mod_wsgi? @dtantsur what is the recommendation for deploying Ironic outside of kubernetes? If we don't want to use mod_wsgi, is there any reason not to use a sidecar for the TLS proxy? |
eb51cfe to
ae9fbe5
Compare
ae9fbe5 to
0cf4650
Compare
1f7eee3 to
647b7f9
Compare
|
/assign @maelk |
@dhellmann Yes, we use mod_wsgi for Ironic-api, and use proxy for Ironic-conductor and ironic inspector. The proxy is deployed in the same container with the application (the conductor, the inspector) to improve security. |
647b7f9 to
0002778
Compare
a3378c0 to
b866e68
Compare
| - configMapRef: | ||
| name: ironic-bmo-configmap | ||
| - name: httpd-reverse-proxy | ||
| image: quay.io/metal3-io/ironic-inspector |
There was a problem hiding this comment.
Should it be inspector image or ironic image?
There was a problem hiding this comment.
I think I got the answer. It was added here metal3-io/ironic-inspector-image@7e2757d#diff-9f9f6a924db88783257f0da0c2ae75be9d01b5b1ea71d522caaafab42362392f
|
/lgtm |
| - name: ironic-httpd | ||
| image: quay.io/metal3-io/ironic | ||
| imagePullPolicy: Always | ||
| securityContext: | ||
| capabilities: | ||
| add: ["NET_ADMIN"] | ||
| command: | ||
| - /bin/runhttpd | ||
| volumeMounts: | ||
| - mountPath: /shared | ||
| name: ironic-data-volume | ||
| envFrom: | ||
| - configMapRef: | ||
| name: ironic-bmo-configmap |
There was a problem hiding this comment.
you should not remove this. This is the webserver for IPA image and other PXE related files
There was a problem hiding this comment.
@maelk I remove it because the httpd server which works as a WSGI server inside the ironic-api pod will also serve the IPA image.
|
/lgtm |
|
/assign @dtantsur |
6758178 to
04f0acb
Compare
|
/test-integration |
04f0acb to
6cfc9b4
Compare
Add option to let Apache web server handle TLS on Ironic and Ironic-inspector sides Force the use of WSGI and remove the httpd container Remove the option to use reverse proxy for inspector Add option to use reverse proxy on ironic inspector
6cfc9b4 to
cbdff6d
Compare
|
/test-integration |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: elfosardo, maelk, namnx228 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
|
Thanks very much everyone for your review and approval. |
Now that metal3-io/baremetal-operator#728 has merged, we can remove net-tools installation command.
Now that metal3-io/baremetal-operator#728 has merged, we can remove net-tools installation command and the netstat entry in runironic-api.
Now that metal3-io/baremetal-operator#728 has merged, we can remove net-tools installation command and the netstat entry in runironic-api.
This PR let Apache web server handle TLS on Ironic
Related PRs:
metal3-io/ironic-image#230 (This PR needs to be merged before the current PR can pass the CI)
metal3-io/ironic-inspector-image#70