Skip to content

expose blossom publicly#4

Merged
nbenmoody merged 5 commits intomainfrom
ingress-updates
Apr 18, 2025
Merged

expose blossom publicly#4
nbenmoody merged 5 commits intomainfrom
ingress-updates

Conversation

@nbenmoody
Copy link
Copy Markdown
Collaborator

@nbenmoody nbenmoody commented Apr 16, 2025

This exposes Blossom over the internet, by enabling the Ingress manifest, which will configure the ingress-nginx reverse proxy in the cluster to route to the Blossom Pod, based on the values.yaml file values.

  • create Cloudflare DNS record

Summary by CodeRabbit

  • Chores
    • Enabled ingress configuration and updated the host address for improved access.
    • Added a new certificate for secure communication with the updated host.
    • Enhanced ingress setup with updated TLS configuration for secure connections.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 16, 2025

## Walkthrough

The ingress configuration in the deployment's `values.yaml` file was updated by setting the `enabled` field to `true` and changing the ingress host from `"blossom.plur.app"` to `"blossom.verse.app"`. This change activates ingress for the deployment with a new host address. Additionally, a trailing newline was removed from the `service.yaml` file without modifying its content or structure. A new Kubernetes Certificate resource manifest was added to define a TLS certificate for the ingress host, specifying certificate details and referencing a ClusterIssuer for automatic certificate management. The ingress manifest was modified to replace the ingress class annotation with the `ingressClassName` field and to add TLS configuration referencing the new certificate.

## Changes

| File(s)                                     | Change Summary                                                                                                  |
|---------------------------------------------|-----------------------------------------------------------------------------------------------------------------|
| deployment/route96/values.yaml               | Enabled ingress by setting `ingress.enabled` from `false` to `true` and updated `ingress.host` from `"blossom.plur.app"` to `"blossom.verse.app"`. |
| deployment/route96/templates/service.yaml   | Removed trailing newline at the end of the file; no content changes.                                            |
| deployment/route96/templates/certificate.yaml, deployment/route96/templates/ingress.yaml | Added a new Kubernetes Certificate resource manifest for cert-manager named `blossom-certificate` with TLS details for `blossom.verse.app`. Modified ingress manifest to replace `kubernetes.io/ingress.class` annotation with `ingressClassName` field and added TLS configuration referencing the new certificate secret. |

## Possibly related PRs

- verse-pbc/route96#1: Introduces the initial Helm chart and Kubernetes manifests for deploying the Blossom media server, including ingress resources but without TLS and ingress class refinements; this PR builds upon and modifies those templates.

## Suggested reviewers

- dcadenas

## Poem

> A toggle flipped, ingress is live,  
> Now traffic can flow, connections arrive.  
> Through YAML’s gates, the routes align,  
> Services greet the world in kind.  
> 🐇 With a hop and a skip, the network sings—  
> Welcome, new ingress, to wonderful things!  
> And certificates shine bright, secure and true,  
> Blossoming paths, fresh and new!  

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6b9bd76 and ecb73b1.

📒 Files selected for processing (1)
  • deployment/route96/templates/ingress.yaml (2 hunks)
✅ Files skipped from review due to trivial changes (1)
  • deployment/route96/templates/ingress.yaml

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🔭 Outside diff range comments (1)
deployment/route96/values.yaml (1)

24-27: 🛠️ Refactor suggestion

Add TLS configuration for secure ingress
Unencrypted HTTP to blossom.plur.app isn’t ideal for production. It’s recommended to define a tls stanza that references a Kubernetes Secret (e.g., provisioned via cert‑manager) so traffic is served over HTTPS:

 ingress:
   enabled: true
   className: "nginx"
   host: "blossom.plur.app"
+  tls:
+    - hosts:
+        - "blossom.plur.app"
+      secretName: blossom-tls
🧹 Nitpick comments (1)
deployment/route96/values.yaml (1)

26-26: Document DNS record requirement
The PR summary notes a pending Cloudflare DNS record. Please update the README or add a TODO in this file to create an A/CNAME record for blossom.plur.app pointing at your ingress controller’s external IP.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 95b8874 and 498172d.

📒 Files selected for processing (1)
  • deployment/route96/values.yaml (1 hunks)
🔇 Additional comments (2)
deployment/route96/values.yaml (2)

24-24: Enable ingress for external access
Enabling ingress is the correct step to expose the Blossom service. Before merging, please verify that the ingress‑nginx controller is deployed and healthy in the target cluster.


25-27: Validate Helm chart ingress schema
Ensure that the chart’s values.yaml expects a singular host and a className key. Some charts instead require an array under hosts or use ingressClassName. Double‑check the chart’s values schema and adjust accordingly—for example:

ingress:
  enabled: true
  ingressClassName: nginx
  hosts:
    - host: "blossom.plur.app"
      paths:
        - path: /

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
deployment/route96/templates/service.yaml (1)

16-16: Add missing newline at end-of-file

The static analysis tool reports a missing trailing newline. While this change has no impact on the Service manifest’s behavior, adding a newline at EOF ensures compliance with POSIX conventions and satisfies yamllint’s new-line-at-end-of-file rule.

@@ -15,1 +15,2
-  type: ClusterIP
+  type: ClusterIP
+
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 16-16: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 498172d and 36d2eee.

📒 Files selected for processing (2)
  • deployment/route96/templates/service.yaml (1 hunks)
  • deployment/route96/values.yaml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • deployment/route96/values.yaml
🧰 Additional context used
🪛 YAMLlint (1.35.1)
deployment/route96/templates/service.yaml

[error] 16-16: no new line character at the end of file

(new-line-at-end-of-file)

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
deployment/route96/templates/certificate.yaml (2)

21-25: Fix indentation under dnsNames.
YAMLLint reports “wrong indentation” for the list item on line 25. The list entry must be indented two spaces further than its key:

   dnsNames:
-  - blossom.verse.app
+    - blossom.verse.app

Also, verify this DNS name matches the host in your Ingress values (blossom.verse.app).

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 25-25: wrong indentation: expected 4 but found 2

(indentation)


28-28: Add a trailing newline at end of file.
YAML parsers and linters expect a final newline.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 28-28: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 36d2eee and dfd9f26.

📒 Files selected for processing (1)
  • deployment/route96/templates/certificate.yaml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
deployment/route96/templates/certificate.yaml

[warning] 25-25: wrong indentation: expected 4 but found 2

(indentation)


[error] 28-28: no new line character at the end of file

(new-line-at-end-of-file)

🔇 Additional comments (4)
deployment/route96/templates/certificate.yaml (4)

1-9: Header and metadata look good.
The apiVersion, kind, metadata.name, and labels correctly define a new Certificate resource.


10-17: Private key and certificate duration settings are correct.
Using RSA/PKCS1 with a 2048‑bit key, 90‑day validity, and 15‑day renewal window aligns with best practices for Let's Encrypt certificates.


18-20: Usages block is valid.
Specifying both server auth and client auth is appropriate for a public‑facing Ingress certificate.


26-28: Issuer reference is correctly configured.
Referencing the letsencrypt-prod ClusterIssuer is appropriate for automated ACME certificate issuance.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 28-28: no new line character at the end of file

(new-line-at-end-of-file)

Comment thread deployment/route96/templates/certificate.yaml
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dfd9f26 and 6b9bd76.

📒 Files selected for processing (1)
  • deployment/route96/templates/ingress.yaml (2 hunks)
🔇 Additional comments (1)
deployment/route96/templates/ingress.yaml (1)

26-26: Verify support for ingressClassName.

You’ve removed the old kubernetes.io/ingress.class annotation in favor of spec.ingressClassName, which is the newer convention. Please confirm that your target Kubernetes version (and ingress-nginx controller) supports ingressClassName. If you need to maintain compatibility with older clusters, consider documenting the minimum supported version or retaining the annotation as a fallback.

Comment thread deployment/route96/templates/ingress.yaml Outdated
@nbenmoody nbenmoody merged commit 76caeae into main Apr 18, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant