-
Notifications
You must be signed in to change notification settings - Fork 367
Update bankapp-ingress.yml #26
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: DevOps
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -3,26 +3,29 @@ kind: Ingress | |||||
| metadata: | ||||||
| name: bankapp-ingress | ||||||
| namespace: bankapp-namespace | ||||||
| annotations: | ||||||
| nginx.ingress.kubernetes.io/rewrite-target: / | ||||||
| nginx.ingress.kubernetes.io/proxy-body-size: "50m" | ||||||
| nginx.ingress.kubernetes.io/ssl-redirect: "true" # Force HTTPS | ||||||
| cert-manager.io/cluster-issuer: letsencrypt-prod # Use Let's Encrypt | ||||||
| spec: | ||||||
| ingressClassName: nginx | ||||||
| tls: | ||||||
| - hosts: | ||||||
| - megaproject.trainwithshubham.com | ||||||
| secretName: bankapp-tls-secret # Cert-Manager will manage this | ||||||
| - megaproject.sandeeppokhrel.cloud | ||||||
| secretName: bankapp-tls-secret | ||||||
| ingressClassName: nginx | ||||||
| rules: | ||||||
| - host: megaproject.trainwithshubham.com | ||||||
| - host: megaproject.sandeeppokhrel.cloud | ||||||
| http: | ||||||
| paths: | ||||||
| - path: / | ||||||
| pathType: Prefix | ||||||
| backend: | ||||||
| paths: | ||||||
| - path: / | ||||||
| pathType: Prefix | ||||||
| backend: | ||||||
| service: | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Fix Indentation for the - service:
+ service:📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.35.1)[warning] 19-19: wrong indentation: expected 11 but found 10 (indentation) |
||||||
| name: bankapp-service | ||||||
| port: | ||||||
| number: 8080 | ||||||
| - path: /nginx | ||||||
| pathType: Prefix | ||||||
| backend: | ||||||
| service: | ||||||
| name: nginx-service | ||||||
| port: | ||||||
| number: 80 | ||||||
| number: 8080 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove Extraneous Port Definition. - number: 8080📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.35.1)[error] 30-30: syntax error: expected , but found '' (syntax) |
||||||
|
|
||||||
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.
🛠️ Refactor suggestion
Fix Indentation for the
pathsKey.YAMLlint reports that line 15 is indented with 7 spaces instead of the expected 6. Adjust the indentation to conform with YAML best practices.
📝 Committable suggestion
🧰 Tools
🪛 YAMLlint (1.35.1)
[warning] 15-15: wrong indentation: expected 6 but found 7
(indentation)