-
Notifications
You must be signed in to change notification settings - Fork 5
refactor: Remove nginx proxy and use Ingress directly #5
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -41,7 +41,7 @@ spec: | |||||
| port: | ||||||
| number: 80 | ||||||
|
||||||
| number: 80 | |
| number: {{ $svcPort }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,15 +2,15 @@ | |
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: {{ include "..fullname" . }}-nginx | ||
| name: {{ include "..fullname" . }} | ||
| labels: | ||
| {{- include "..labels" . | nindent 4 }} | ||
| spec: | ||
| type: {{ .Values.service.type }} | ||
| ports: | ||
| - name: nginx-http | ||
| - name: odoo-http | ||
| port: {{ .Values.service.port }} | ||
| targetPort: nginx-http | ||
| targetPort: odoo-http | ||
|
||
| protocol: TCP | ||
| selector: | ||
| {{- include "..selectorLabels" . | nindent 4 }} | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,7 +23,6 @@ image: | |||||||||||
| repository: odoo | ||||||||||||
| # Pull policy can be set to Always, IfNotPresent, or Never | ||||||||||||
| # ref: https://kubernetes.io/docs/concepts/containers/images/#updating-images | ||||||||||||
| # Will set the policy for Odoo and Nginx | ||||||||||||
| pullPolicy: IfNotPresent | ||||||||||||
| # Overrides the image tag whose default is the chart appVersion. | ||||||||||||
| tag: "16.0" | ||||||||||||
|
|
@@ -146,7 +145,7 @@ securityContext: | |||||||||||
|
|
||||||||||||
| service: | ||||||||||||
| type: ClusterIP | ||||||||||||
| port: 80 | ||||||||||||
| port: 8069 | ||||||||||||
|
|
||||||||||||
| ingress: | ||||||||||||
| enabled: false | ||||||||||||
|
|
@@ -155,6 +154,15 @@ ingress: | |||||||||||
| cert-manager.io/cluster-issuer: letsencrypt | ||||||||||||
| nginx.ingress.kubernetes.io/backend-protocol: HTTP | ||||||||||||
| nginx.ingress.kubernetes.io/force-ssl-redirect: "true" | ||||||||||||
|
||||||||||||
| nginx.ingress.kubernetes.io/force-ssl-redirect: "true" | |
| nginx.ingress.kubernetes.io/force-ssl-redirect: "true" | |
| # Setting proxy-body-size to "0" disables upload size limits. | |
| # This allows unlimited upload sizes, which may have security or performance implications. | |
| # Ensure this is intentional. To set a limit, use e.g. "50m" for 50 megabytes. |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The configuration snippet doesn't include WebSocket upgrade headers that were present in the nginx ConfigMap. Consider documenting whether WebSocket support (previously handled via /websocket location in nginx) is now managed differently or if additional configuration is needed.
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The container name includes '-service' suffix which may be confusing now that the nginx proxy is removed. Consider renaming to just use the fullname template without the suffix for clarity.