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

Add extra resources #138

Merged
merged 4 commits into from
Jan 14, 2025
Merged

Conversation

jyje
Copy link
Contributor

@jyje jyje commented Jan 14, 2025

Opinion

Hello, folks. I suggest applying values for extraResources in the open-webui and pipelines charts. Adding this will allow us to include extra resources such as ConfigMaps and SealedSecrets in the cluster.

What we can do with this

  • We can deploy resources together for open-webui without extra deployment.
    • Add static configuration from users
    • Add synced configuration from other k8s operators
    • Add secrets for secure GitOps

Usage

Default
No resources added from extraResources

values.yaml:

extraResources:
  []

Deploy ConfigMap and SealedSecret

values.yaml:

extraResources:
  # Static resources
  - apiVersion: v1
    kind: ConfigMap
    metadata:
      name: open-webui-example-configmap
    data:
      replicaCount: "3"
      backup: "...."

  # Synced resources
  - apiVersion: v1
    kind: ConfigMap
    metadata:
      name: open-webui-synced-configmap
      annotations:
        reflector.v1.k8s.emberstack.com/reflects: "etcd-system/etcd-cluster-config"
    data: {} # Updated automatically by other operators
  - apiVersion: v1
    kind: Secret
    metadata:
      name: open-webui-synced-secret
      annotations:
        reflector.v1.k8s.emberstack.com/reflects: "etcd-system/etcd-cluster-secret"
    data: {} # Updated automatically by other operators

  # Encrypted resources
  - apiVersion: bitnami.com/v1alpha1
    kind: SealedSecret
    metadata:
      name: open-webui-example-creds
    spec:
      template:
        type: Opaque
        metadata:
          name: open-webui-example-creds
      encryptedData:
        redis.url: "batf5ogUFBRp2o7Sdzz6NTx...<skip>"
        vectordb.uri: "iTcLhC/dzUKQOEsrbatf5ogUFBRp2o7Sdzz...<skip>"

Please give me any advise.

Thank you!


Copilot Summary

This pull request includes several updates to the open-webui and pipelines charts, primarily focusing on adding support for extra resources and updating chart versions.

Updates to open-webui chart:

Updates to pipelines chart:

jyje added 2 commits January 7, 2025 12:30
- list of ConfigMaps, SealedSecrets, other CRDs
- no Secrets for secure GitOps
@0xThresh
Copy link
Collaborator

Thanks for this @jyje, I think I'll be merging this one next since I still haven't gotten to the Redis PR yet. Do you want to bump the chart version up on this PR so we can make sure everything gets released once it's merged?

Thank you again for all your amazing work!

@jyje
Copy link
Contributor Author

jyje commented Jan 14, 2025

@0xThresh Sure! I’m about to bump the target chart version from 5.2.0 to 5.3.0 to align with the Redis PR and ensure everything gets released smoothly after merging. Thank you for good feedbacks

@0xThresh 0xThresh merged commit 15b9ccb into open-webui:main Jan 14, 2025
4 checks passed
@jyje jyje deleted the feat/add-extra-resources branch January 14, 2025 17:49
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.

2 participants