├── .github ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── dependabot.yml └── workflows │ ├── lint-test.yaml │ └── release.yaml ├── .gitignore ├── LICENSE ├── README.md ├── charts ├── rafiki-auth │ ├── Chart.yaml │ ├── templates │ │ ├── _helpers.tpl │ │ ├── configmap.yaml │ │ ├── deployment.yaml │ │ ├── secret.yaml │ │ ├── service.yaml │ │ └── serviceaccount.yaml │ └── values.yaml ├── rafiki-backend │ ├── Chart.yaml │ ├── templates │ │ ├── _helpers.tpl │ │ ├── configmap.yaml │ │ ├── deployment.yaml │ │ ├── secret.yaml │ │ ├── service.yaml │ │ └── serviceaccount.yaml │ └── values.yaml └── rafiki-frontend │ ├── Chart.yaml │ ├── templates │ ├── _helpers.tpl │ ├── configmap.yaml │ ├── deployment.yaml │ ├── service.yaml │ └── serviceaccount.yaml │ └── values.yaml └── cr.yaml /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. 8 | 9 | ## Our Standards 10 | 11 | Examples of behavior that contributes to a positive environment for our community include: 12 | 13 | - Demonstrating empathy and kindness toward other people 14 | - Being respectful of differing opinions, viewpoints, and experiences 15 | - Giving and gracefully accepting constructive feedback 16 | - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience 17 | - Focusing on what is best not just for us as individuals, but for the overall community 18 | 19 | Examples of unacceptable behavior include: 20 | 21 | - The use of sexualized language or imagery, and sexual attention or advances of any kind 22 | - Trolling, insulting or derogatory comments, and personal or political attacks 23 | - Public or private harassment 24 | - Publishing others' private information, such as a physical or email address, without their explicit permission 25 | - Contacting individual members, contributors, or leaders privately, outside designated community mechanisms, without their explicit permission 26 | - Other conduct which could reasonably be considered inappropriate in a professional setting 27 | 28 | ## Enforcement Responsibilities 29 | 30 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. 31 | 32 | Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. 33 | 34 | ## Scope 35 | 36 | This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. 37 | 38 | ## Enforcement 39 | 40 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at coc@interledger.org. All complaints will be reviewed and investigated promptly and fairly. 41 | 42 | All community leaders are obligated to respect the privacy and security of the reporter of any incident. 43 | 44 | ## Enforcement Guidelines 45 | 46 | Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: 47 | 48 | ### 1. Correction 49 | 50 | **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. 51 | 52 | **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. 53 | 54 | ### 2. Warning 55 | 56 | **Community Impact**: A violation through a single incident or series of actions. 57 | 58 | **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. 59 | 60 | ### 3. Temporary Ban 61 | 62 | **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. 63 | 64 | **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. 65 | 66 | ### 4. Permanent Ban 67 | 68 | **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. 69 | 70 | **Consequence**: A permanent ban from any sort of public interaction within the community. 71 | 72 | ## Attribution 73 | 74 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at . 75 | 76 | Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). 77 | 78 | [homepage]: https://www.contributor-covenant.org 79 | 80 | For answers to common questions about this code of conduct, see the FAQ at . Translations are available at . 81 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to this repository 2 | 3 | Thank you for contributing to Helm Charts :tada: Your contributions are essential to making this project better. 4 | 5 | ## Getting Started 6 | 7 | - Have you read the [code of conduct](CODE_OF_CONDUCT.md)? 8 | - Check out the [existing issues](https://github.com/interledger/helm-charts/issues) & see if we [accept contributions](#types-of-contributions) for your type of issue. 9 | 10 | ## Table of Contents 11 | 12 | - [Types of contributions](#types-of-contributions) 13 | - [:beetle: Issues](#beetle-issues) 14 | - [:hammer_and_wrench: Pull requests](#hammer_and_wrench-pull-requests) 15 | - [Working in the Helm Charts repository](#working-in-the-helm-charts-repository) 16 | - [CI](#ci) 17 | - [Reporting Issues](#reporting-issues) 18 | - [Submitting Pull Requests](#submitting-pull-requests) 19 | - [Review Process](#review-process) 20 | 21 | ### Types of contributions 22 | 23 | You can contribute to Helm Charts in several ways. 24 | 25 | #### :beetle: Issues 26 | 27 | We use GitHub issues to track tasks that contributors can help with. We haven't finalized labels yet for contributors to tackle. If you want to help with work related to an issue, please comment on the issue before starting work on it. 28 | 29 | If you've found something that needs fixing, search open issues to see if someone else has reported the same thing. If it's something new, open an issue. We'll use the issue to discuss the problem you want to fix. 30 | 31 | #### :hammer_and_wrench: Pull requests 32 | 33 | Feel free to fork and create a pull request on changes you think you can contribute. 34 | 35 | The team will review your pull request as soon as possible. 36 | 37 | ### Working in the Helm Charts repository 38 | 39 | This project uses [helm](https://helm.sh/). Please refer to Helm's [documentation](https://helm.sh/docs/) to get started.. 40 | 41 | #### CI 42 | 43 | We use GitHub actions to manage our CI pipeline. 44 | 45 | The workflows can be found in `.github/workflows` 46 | 47 | ### Reporting Issues 48 | 49 | If you encounter any issues or have a feature request, please [create a new issue](https://github.com/interledger/helm-charts/issues/new/choose) and provide the following details: 50 | 51 | - A clear and descriptive title. 52 | - A detailed description of the issue, including steps to reproduce if applicable. 53 | - Information about your environment (e.g., operating system, browser, version). 54 | - Any relevant screenshots or error messages. 55 | 56 | ### Submitting Pull Requests 57 | 58 | 1. [Fork](https://github.com/interledger/helm-charts) the repository. 59 | 2. Create a new branch from `main`. 60 | 3. Make your changes and commit them. 61 | 4. Create a pull request (PR) to `main`. 62 | 5. Ensure your PR includes a clear title and description following the [Conventional Commits Specification](https://www.conventionalcommits.org/en/v1.0.0/). 63 | 6. If your PR addresses an issue, reference the issue in the description using `Closes #123`. 64 | 7. Be patient and be prepared to address feedback and make changes if needed. 65 | 66 | ### Review Process 67 | 68 | - Project maintainers will review your PR for code quality, correctness, and adherence to guidelines. 69 | - Please respond to any feedback promptly and make necessary changes. 70 | - Once the PR is approved, it will be merged into the main branch. 71 | 72 | Thank you for contributing to Helm Charts! We appreciate your time and effort in helping make the Extension better. Join our community on [Slack](https://communityinviter.com/apps/interledger/interledger-working-groups-slack) to connect with other contributors and stay updated on project developments. 73 | 74 | Happy coding! 75 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: "[BUG]" 5 | labels: 'type: bug' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Thanks for taking the time to file a bug report! Please fill out this form as completely as possible. 11 | 12 | ## Bug Report 13 | 14 | **Describe the bug** 15 | 16 | A clear and concise description of what the bug is. 17 | 18 | **To Reproduce** 19 | 20 | Steps and commands to reproduce the behavior. Please provide clear code snippets that always reproduce the bug. 21 | 1. run 'helm template ...' 22 | 2. See error 23 | 24 | **Expected behavior** 25 | 26 | A clear and concise description of what you expected to happen. 27 | 28 | **General information (please complete the following information):** 29 | - Chart name that has a problem 30 | - Chart version 31 | - App version 32 | - Helm version: [output of `helm version`] 33 | - Kubectl version: [output of `kubectl version`] 34 | - Cloud Provider/Platform (GKE, EKS, AKS, Minikube etc.): 35 | 36 | **Screenshots** 37 | 38 | If applicable, add screenshots to help explain your problem. 39 | 40 | **Additional context** 41 | 42 | Add any other context about the problem here. -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: "[FEATURE REQUEST]" 5 | labels: 'discussions: ideas' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Thanks for taking the time to file a feature request! Please fill out this form as completely as possible. 11 | 12 | Note that feature requests will be converted to the GitHub Discussions "Ideas" section. 13 | 14 | ## Feature Request 15 | 16 | **Describe the feature you'd like to request** 17 | 18 | A clear and concise description of what you want and what your use case is. 19 | 20 | **Describe the solution you'd like** 21 | 22 | A clear and concise description of what you want to happen. 23 | 24 | **Describe alternatives you've considered** 25 | 26 | A clear and concise description of any alternative solutions or features you've considered. 27 | 28 | **Additional context** 29 | 30 | Add any other context or screenshots about the feature request here. -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "github-actions" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "daily" 12 | -------------------------------------------------------------------------------- /.github/workflows/lint-test.yaml: -------------------------------------------------------------------------------- 1 | name: Lint and Test Charts 2 | 3 | on: pull_request 4 | 5 | jobs: 6 | lint-test: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - name: Checkout 10 | uses: actions/checkout@v4 11 | with: 12 | fetch-depth: 0 13 | 14 | - name: Set up Helm 15 | uses: azure/setup-helm@v4 16 | with: 17 | version: v3.11.2 18 | 19 | - uses: actions/setup-python@v5 20 | with: 21 | python-version: '3.9' 22 | check-latest: true 23 | 24 | - name: Set up chart-testing 25 | uses: helm/chart-testing-action@v2.6.1 26 | 27 | - name: Run chart-testing (list-changed) 28 | id: list-changed 29 | run: | 30 | changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) 31 | if [[ -n "$changed" ]]; then 32 | echo "changed=true" >> "$GITHUB_OUTPUT" 33 | fi 34 | 35 | - name: Run chart-testing (lint) 36 | run: ct lint --target-branch ${{ github.event.repository.default_branch }} 37 | 38 | - name: Create kind cluster 39 | uses: helm/kind-action@v1.10.0 40 | 41 | - name: Deploy 42 | run: | 43 | tee -a values.ci.yaml << END 44 | primary: 45 | initdb: 46 | scripts: 47 | initialize_backend.sql: | 48 | CREATE USER backend PASSWORD 'backend'; 49 | CREATE DATABASE backend OWNER backend; 50 | initialize_auth.sql: | 51 | CREATE USER auth PASSWORD 'auth'; 52 | CREATE DATABASE auth OWNER auth; 53 | END 54 | helm install postgresql oci://registry-1.docker.io/bitnamicharts/postgresql -f values.ci.yaml 55 | 56 | - name: Run chart-testing (install) 57 | if: steps.list-changed.outputs.changed == 'true' 58 | run: ct install --target-branch ${{ github.event.repository.default_branch }} 59 | -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- 1 | name: Release Charts 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | release: 10 | # depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions 11 | # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token 12 | permissions: 13 | contents: write 14 | runs-on: ubuntu-latest 15 | steps: 16 | - name: Checkout 17 | uses: actions/checkout@v4 18 | with: 19 | fetch-depth: 0 20 | 21 | - name: Configure Git 22 | run: | 23 | git config user.name "$GITHUB_ACTOR" 24 | git config user.email "$GITHUB_ACTOR@users.noreply.github.com" 25 | 26 | - name: Install Helm 27 | uses: azure/setup-helm@v4 28 | 29 | - name: Run chart-releaser 30 | uses: helm/chart-releaser-action@v1.6.0 31 | with: 32 | charts_dir: charts 33 | config: cr.yaml 34 | env: 35 | CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Helm chart automated files 2 | /charts/*/charts 3 | .idea 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Interledger Kubernetes Helm Charts 2 | 3 | [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Release Charts](https://github.com/interledger/helm-charts/actions/workflows/release.yaml/badge.svg?branch=main)](https://github.com/interledger/helm-charts/actions/workflows/release.yaml) 4 | 5 | This functionality is in alpha and is subject to change. The code is provided as-is with no warranties. 6 | 7 | ## Usage 8 | 9 | [Helm](https://helm.sh) must be installed to use the charts. 10 | Please refer to Helm's [documentation](https://helm.sh/docs/) to get started. 11 | 12 | Once Helm is set up properly, add the repo as follows: 13 | 14 | ```console 15 | helm repo add interledger https://interledger.github.io/helm-charts 16 | ``` 17 | 18 | You can then run `helm search repo interledger` to see the charts. 19 | 20 | ## Contributing 21 | 22 | The source code of all [Interledger](https://interledger.org) community [Helm](https://helm.sh) charts can be found on Github: 23 | 24 | 25 | 26 | We'd love to have you contribute! 27 | 28 | 29 | 30 | ## License 31 | 32 | 33 | 34 | [Apache 2.0 License](https://github.com/interledger/helm-charts/blob/main/LICENSE). 35 | 36 | ## Helm charts build status 37 | 38 | [![Release Charts](https://github.com/interledger/helm-charts/actions/workflows/release.yaml/badge.svg?branch=main)](https://github.com/interledger/helm-charts/actions/workflows/release.yaml) 39 | -------------------------------------------------------------------------------- /charts/rafiki-auth/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v2 2 | name: rafiki-auth 3 | description: Rafiki Auth Service 4 | maintainers: 5 | - name: sabineschaller 6 | 7 | # A chart can be either an 'application' or a 'library' chart. 8 | # 9 | # Application charts are a collection of templates that can be packaged into versioned archives 10 | # to be deployed. 11 | # 12 | # Library charts provide useful utilities or functions for the chart developer. They're included as 13 | # a dependency of application charts to inject those utilities and functions into the rendering 14 | # pipeline. Library charts do not define any templates and therefore cannot be deployed. 15 | type: application 16 | 17 | # This is the chart version. This version number should be incremented each time you make changes 18 | # to the chart and its templates, including the app version. 19 | # Versions are expected to follow Semantic Versioning (https://semver.org/) 20 | version: 0.4.3 21 | 22 | # This is the version number of the application being deployed. This version number should be 23 | # incremented each time you make changes to the application. Versions are not expected to 24 | # follow Semantic Versioning. They should reflect the version the application is using. 25 | # It is recommended to use it with quotes. 26 | appVersion: 'v1.0.0-alpha.8' 27 | -------------------------------------------------------------------------------- /charts/rafiki-auth/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | 2 | {{/* vim: set filetype=mustache: */}} 3 | {{/* 4 | Expand the name of the chart. 5 | */}} 6 | {{- define "rafiki-auth.name" -}} 7 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 8 | {{- end -}} 9 | 10 | {{/* 11 | Create a default fully qualified app name. 12 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 13 | If release name contains chart name it will be used as a full name. 14 | */}} 15 | {{- define "rafiki-auth.fullname" -}} 16 | {{- if .Values.fullnameOverride -}} 17 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 18 | {{- else -}} 19 | {{- $name := default .Chart.Name .Values.nameOverride -}} 20 | {{- if contains $name .Release.Name -}} 21 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 22 | {{- else -}} 23 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 24 | {{- end -}} 25 | {{- end -}} 26 | {{- end -}} 27 | 28 | {{- define "auth.redisUrl" -}} 29 | redis://{{ .Values.redis.host }}:{{ .Values.redis.port }} 30 | {{- end -}} 31 | {{- define "auth.postgresqlUrl" -}} 32 | postgresql://{{ .Values.postgresql.username }}:{{ .Values.postgresql.password }}@{{ .Values.postgresql.host }}:{{ .Values.postgresql.port | int}}/{{ .Values.postgresql.database }} 33 | {{- end -}} 34 | {{- define "auth.grantUrl" -}} 35 | http://{{ include "rafiki-auth.fullname" . }}:{{ .Values.port.auth }} 36 | {{- end -}} 37 | {{- define "auth.introspectionUrl" -}} 38 | http://{{ include "rafiki-auth.fullname" . }}:{{ .Values.port.introspection }} 39 | {{- end -}} 40 | 41 | {{/* 42 | Create chart name and version as used by the chart label. 43 | */}} 44 | {{- define "rafiki-auth.chart" -}} 45 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 46 | {{- end -}} 47 | 48 | {{/* 49 | Common labels 50 | */}} 51 | {{- define "rafiki-auth.labels" -}} 52 | app: {{ include "rafiki-auth.name" . }} 53 | app.kubernetes.io/name: {{ include "rafiki-auth.name" . }} 54 | helm.sh/chart: {{ include "rafiki-auth.chart" . }} 55 | app.kubernetes.io/instance: {{ .Release.Name }} 56 | {{- if .Chart.AppVersion }} 57 | app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} 58 | {{- end }} 59 | app.kubernetes.io/managed-by: {{ .Release.Service }} 60 | {{- end -}} 61 | 62 | {{/* 63 | Create the name of the auth service account to use 64 | */}} 65 | {{- define "auth.serviceAccountName" -}} 66 | {{- if .Values.serviceAccount.create -}} 67 | {{ default (include "rafiki-auth.fullname" .) .Values.serviceAccount.name }} 68 | {{- else -}} 69 | {{ default "default" .Values.serviceAccount.name }} 70 | {{- end -}} 71 | {{- end -}} 72 | 73 | {{/* 74 | Create the auth image 75 | */}} 76 | {{- define "auth.image" -}} 77 | {{ if .Values.image.tag }} 78 | {{- .Values.image.repository -}}:{{- .Values.image.tag -}} 79 | {{ else if .Values.image.digest }} 80 | {{- .Values.image.repository -}}@{{- .Values.image.digest -}} 81 | {{ else }} 82 | {{- .Values.image.repository -}}:latest 83 | {{ end }} 84 | {{- end -}} -------------------------------------------------------------------------------- /charts/rafiki-auth/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ include "rafiki-auth.fullname" . }} 5 | labels: 6 | {{ include "rafiki-auth.labels" . | indent 4 }} 7 | data: 8 | ACCESS_TOKEN_DELETION_DAYS: "{{ .Values.accessToken.deletionDays }}" 9 | ACCESS_TOKEN_EXPIRY_SECONDS: "{{ .Values.accessToken.expirySeconds }}" 10 | ADMIN_PORT: "{{ .Values.port.admin }}" 11 | AUTH_PORT: "{{ .Values.port.auth }}" 12 | AUTH_SERVER_DOMAIN: {{ include "auth.grantUrl" . | quote }} 13 | DATABASE_CLEANUP_WORKERS: "{{ .Values.workers.cleanup }}" 14 | IDENTITY_SERVER_DOMAIN: "{{ .Values.identityServer.domain }}" 15 | INCOMING_PAYMENT_INTERACTION: "{{ .Values.interaction.incomingPayment }}" 16 | QUOTE_INTERACTION: "{{ .Values.interaction.quote }}" 17 | INTROSPECTION_PORT: "{{ .Values.port.introspection }}" 18 | LOG_LEVEL: "{{ .Values.logLevel }}" 19 | NODE_ENV: "{{ .Values.nodeEnv }}" 20 | PORT: "{{ .Values.port.auth }}" 21 | WAIT_SECONDS: "{{ .Values.grant.waitSeconds }}" 22 | ENABLE_MANUAL_MIGRATIONS: "{{ .Values.enableManualMigrations }}" 23 | REDIS_TLS_CA_FILE_PATH: "{{ .Values.redis.tlsCaFile }}" 24 | REDIS_TLS_CERT_FILE_PATH: "{{ .Values.redis.tlsCertFile }}" 25 | REDIS_TLS_KEY_FILE_PATH: "{{ .Values.redis.tlsKeyFile }}" 26 | -------------------------------------------------------------------------------- /charts/rafiki-auth/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: {{ include "rafiki-auth.fullname" . }} 5 | labels: 6 | {{ include "rafiki-auth.labels" . | indent 4 }} 7 | spec: 8 | replicas: {{ .Values.replicas }} 9 | strategy: 10 | type: RollingUpdate 11 | rollingUpdate: 12 | maxSurge: {{ .Values.rollingUpdate.maxSurge }} 13 | maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }} 14 | selector: 15 | matchLabels: 16 | app.kubernetes.io/name: {{ include "rafiki-auth.name" . }} 17 | app.kubernetes.io/instance: {{ .Release.Name }} 18 | template: 19 | metadata: 20 | labels: 21 | app.kubernetes.io/name: {{ include "rafiki-auth.name" . }} 22 | app.kubernetes.io/instance: {{ .Release.Name }} 23 | spec: 24 | {{- with .Values.imagePullSecrets -}} 25 | imagePullSecrets: 26 | {{- toYaml . | nindent 8 }} 27 | {{- end -}} 28 | {{- if .Values.serviceAccount.create }} 29 | serviceAccountName: {{ template "auth.serviceAccountName" . }} 30 | {{ with .Values.podSecurityContext -}} 31 | securityContext: 32 | {{- toYaml . | nindent 8 -}} 33 | {{- end -}} 34 | {{- end }} 35 | {{- if .Values.serviceAccount.create -}} 36 | volumes: 37 | - name: {{ include "rafiki-auth.fullname" . }}-sa-key 38 | secret: 39 | secretName: {{ include "rafiki-auth.fullname" . }}-sa-key 40 | {{- end }} 41 | {{- if .Values.enableManualMigrations }} 42 | initContainers: 43 | - name: database-migrations 44 | image: {{ include "auth.image" . }} 45 | command: ["npm", "run", "knex", "--", "migrate:latest", "--env", "production"] 46 | workingDir: /home/rafiki/packages/auth/ 47 | envFrom: 48 | - configMapRef: 49 | name: {{ include "rafiki-auth.fullname" . }} 50 | - secretRef: 51 | name: {{ include "rafiki-auth.fullname" . }}-secrets 52 | {{- end }} 53 | containers: 54 | - name: {{ .Chart.Name }} 55 | securityContext: 56 | {{- toYaml .Values.securityContext | nindent 12 }} 57 | image: {{ include "auth.image" . }} 58 | imagePullPolicy: {{ .Values.image.pullPolicy }} 59 | envFrom: 60 | - configMapRef: 61 | name: {{ include "rafiki-auth.fullname" . }} 62 | - secretRef: 63 | name: {{ include "rafiki-auth.fullname" . }}-secrets 64 | ports: 65 | - name: auth 66 | containerPort: {{ .Values.port.auth }} 67 | protocol: TCP 68 | - name: admin 69 | containerPort: {{ .Values.port.admin }} 70 | protocol: TCP 71 | - name: introspection 72 | containerPort: {{ .Values.port.introspection }} 73 | protocol: TCP 74 | {{- with .Values.resources -}} 75 | resources: 76 | {{- toYaml . | nindent 12 }} 77 | {{- end -}} 78 | -------------------------------------------------------------------------------- /charts/rafiki-auth/templates/secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Secret 3 | metadata: 4 | name: {{ include "rafiki-auth.fullname" . }}-secrets 5 | labels: 6 | {{ include "rafiki-auth.labels" . | indent 4 }} 7 | data: 8 | AUTH_DATABASE_URL: {{ include "auth.postgresqlUrl" . | b64enc | quote }} 9 | COOKIE_KEY: "{{ .Values.cookieKey | b64enc }}" 10 | IDENTITY_SERVER_SECRET: "{{ .Values.identityServer.secret | b64enc }}" 11 | REDIS_URL: {{ include "auth.redisUrl" . | b64enc | quote }} -------------------------------------------------------------------------------- /charts/rafiki-auth/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ include "rafiki-auth.fullname" . }} 5 | labels: 6 | app: {{ include "rafiki-auth.name" . }} 7 | chart: {{ include "rafiki-auth.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: ClusterIP 12 | ports: 13 | - port: {{ .Values.port.auth }} 14 | targetPort: {{ .Values.port.auth }} 15 | protocol: TCP 16 | name: auth 17 | - port: {{ .Values.port.admin }} 18 | targetPort: {{ .Values.port.admin }} 19 | protocol: TCP 20 | name: admin 21 | - port: {{ .Values.port.introspection }} 22 | targetPort: {{ .Values.port.introspection }} 23 | protocol: TCP 24 | name: introspection 25 | selector: 26 | app.kubernetes.io/name: {{ include "rafiki-auth.name" . }} 27 | app.kubernetes.io/instance: {{ .Release.Name }} 28 | -------------------------------------------------------------------------------- /charts/rafiki-auth/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ template "auth.serviceAccountName" . }} 6 | labels: 7 | {{ include "rafiki-auth.labels" . | indent 4 }} 8 | {{- end -}} 9 | -------------------------------------------------------------------------------- /charts/rafiki-auth/values.yaml: -------------------------------------------------------------------------------- 1 | nodeEnv: development 2 | logLevel: debug 3 | enableManualMigrations: true 4 | postgresql: 5 | host: "postgresql.default" 6 | port: 5432 7 | username: "auth" 8 | database: "auth" 9 | password: "auth" 10 | redis: 11 | host: 'redis.example.com' 12 | port: 6379 13 | tlsCaFile: 'tlsCaFile/path' 14 | tlsCertFile: 'tlsCertFile/path' 15 | tlsKeyFile: 'tlsKeyFile/path' 16 | port: 17 | admin: 3003 18 | auth: 3006 19 | introspection: 3007 20 | identityServer: 21 | domain: "http://cloud-nine-wallet/idp" 22 | secret: "changeme" 23 | interaction: 24 | incomingPayment: "false" 25 | quote: "false" 26 | grant: 27 | waitSeconds: 5 28 | accessToken: 29 | deletionDays: 30 30 | expirySeconds: 600 31 | cookieKey: '' 32 | workers: 33 | cleanup: 1 34 | image: 35 | repository: ghcr.io/interledger/rafiki-auth 36 | tag: 'v1.0.0-alpha.8' 37 | digest: '' 38 | pullPolicy: IfNotPresent 39 | rollingUpdate: 40 | maxSurge: 100% 41 | maxUnavailable: 50% 42 | serviceAccount: 43 | # Specifies whether a service account should be created 44 | create: true 45 | # The name of the service account to use. 46 | # If not set and create is true, a name is generated using the fullname template 47 | name: '' 48 | securityContext: 49 | {} 50 | # resources: 51 | # limits: 52 | # memory: 1Gi 53 | # cpu: 450m 54 | # requests: 55 | # memory: 800Mi 56 | # cpu: 300m 57 | -------------------------------------------------------------------------------- /charts/rafiki-backend/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v2 2 | name: rafiki-backend 3 | description: Rafiki Backend Service 4 | maintainers: 5 | - name: sabineschaller 6 | 7 | # A chart can be either an 'application' or a 'library' chart. 8 | # 9 | # Application charts are a collection of templates that can be packaged into versioned archives 10 | # to be deployed. 11 | # 12 | # Library charts provide useful utilities or functions for the chart developer. They're included as 13 | # a dependency of application charts to inject those utilities and functions into the rendering 14 | # pipeline. Library charts do not define any templates and therefore cannot be deployed. 15 | type: application 16 | 17 | # This is the chart version. This version number should be incremented each time you make changes 18 | # to the chart and its templates, including the app version. 19 | # Versions are expected to follow Semantic Versioning (https://semver.org/) 20 | version: 0.4.4 21 | 22 | # This is the version number of the application being deployed. This version number should be 23 | # incremented each time you make changes to the application. Versions are not expected to 24 | # follow Semantic Versioning. They should reflect the version the application is using. 25 | # It is recommended to use it with quotes. 26 | appVersion: 'v1.0.0-alpha.8' 27 | -------------------------------------------------------------------------------- /charts/rafiki-backend/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | 2 | {{/* vim: set filetype=mustache: */}} 3 | {{/* 4 | Expand the name of the chart. 5 | */}} 6 | {{- define "rafiki-backend.name" -}} 7 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 8 | {{- end -}} 9 | 10 | {{/* 11 | Create a default fully qualified app name. 12 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 13 | If release name contains chart name it will be used as a full name. 14 | */}} 15 | {{- define "rafiki-backend.fullname" -}} 16 | {{- if .Values.fullnameOverride -}} 17 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 18 | {{- else -}} 19 | {{- $name := default .Chart.Name .Values.nameOverride -}} 20 | {{- if contains $name .Release.Name -}} 21 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 22 | {{- else -}} 23 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 24 | {{- end -}} 25 | {{- end -}} 26 | {{- end -}} 27 | 28 | {{- define "backend.postgresqlUrl" -}} 29 | postgresql://{{ .Values.postgresql.username }}:{{ .Values.postgresql.password }}@{{ .Values.postgresql.host }}:{{ .Values.postgresql.port | int}}/{{ .Values.postgresql.database }} 30 | {{- end -}} 31 | {{- define "backend.redisUrl" -}} 32 | redis://{{ .Values.redis.host }}:{{ .Values.redis.port }} 33 | {{- end -}} 34 | 35 | {{/* 36 | Create chart name and version as used by the chart label. 37 | */}} 38 | {{- define "rafiki-backend.chart" -}} 39 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 40 | {{- end -}} 41 | 42 | {{/* 43 | Common labels 44 | */}} 45 | {{- define "rafiki-backend.labels" -}} 46 | app: {{ include "rafiki-backend.name" . }} 47 | app.kubernetes.io/name: {{ include "rafiki-backend.name" . }} 48 | helm.sh/chart: {{ include "rafiki-backend.chart" . }} 49 | app.kubernetes.io/instance: {{ .Release.Name }} 50 | {{- if .Chart.AppVersion }} 51 | app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} 52 | {{- end }} 53 | app.kubernetes.io/managed-by: {{ .Release.Service }} 54 | {{- end -}} 55 | 56 | {{/* 57 | Create the name of the backend service account to use 58 | */}} 59 | {{- define "backend.serviceAccountName" -}} 60 | {{- if .Values.serviceAccount.create -}} 61 | {{ default (include "rafiki-backend.fullname" .) .Values.serviceAccount.name }} 62 | {{- else -}} 63 | {{ default "default" .Values.serviceAccount.name }} 64 | {{- end -}} 65 | {{- end -}} 66 | 67 | {{/* 68 | Create the backend image 69 | */}} 70 | {{- define "backend.image" -}} 71 | {{ if .Values.image.tag }} 72 | {{- .Values.image.repository -}}:{{- .Values.image.tag -}} 73 | {{ else if .Values.image.digest }} 74 | {{- .Values.image.repository -}}@{{- .Values.image.digest -}} 75 | {{ else }} 76 | {{- .Values.image.repository -}}:latest 77 | {{ end }} 78 | {{- end -}} 79 | -------------------------------------------------------------------------------- /charts/rafiki-backend/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ include "rafiki-backend.fullname" . }} 5 | labels: 6 | {{ include "rafiki-backend.labels" . | indent 4 }} 7 | data: 8 | ADMIN_PORT: "{{ .Values.port.admin }}" 9 | AUTH_SERVER_GRANT_URL: "{{ .Values.serviceUrls.AUTH_SERVER_GRANT_URL }}" 10 | AUTH_SERVER_INTROSPECTION_URL: "{{ .Values.serviceUrls.AUTH_SERVER_INTROSPECTION_URL }}" 11 | CONNECTOR_PORT: "{{ .Values.port.connector }}" 12 | EXCHANGE_RATES_LIFETIME: "{{ .Values.lifetime.exchangeRate }}" 13 | EXCHANGE_RATES_URL: "{{ .Values.serviceUrls.EXCHANGE_RATES_URL }}" 14 | GRAPHQL_IDEMPOTENCY_KEY_TTL_MS: "{{ .Values.idempotency.keyTTL}}" 15 | GRAPHQL_IDEMPOTENCY_KEY_LOCK_MS: "{{ .Values.idempotency.keyLock}}" 16 | ILP_ADDRESS: "{{ .Values.ilp.address }}" 17 | INCOMING_PAYMENT_WORKERS: "{{ .Values.workers.incomingPayment }}" 18 | INCOMING_PAYMENT_WORKER_IDLE: "{{ .Values.workerIdle }}" 19 | KEY_ID: "{{ .Values.key.id }}" 20 | LOG_LEVEL: "{{ .Values.logLevel }}" 21 | NODE_ENV: "{{ .Values.nodeEnv }}" 22 | OPEN_PAYMENTS_PORT: "{{ .Values.port.openPayments }}" 23 | OPEN_PAYMENTS_URL: "{{ .Values.serviceUrls.OPEN_PAYMENTS_URL }}" 24 | OUTGOING_PAYMENT_WORKERS: "{{ .Values.workers.outgoingPayment }}" 25 | OUTGOING_PAYMENT_WORKER_IDLE: "{{ .Values.workerIdle }}" 26 | PAYMENT_POINTER_WORKERS: "{{ .Values.workers.paymentPointer }}" 27 | PAYMENT_POINTER_WORKER_IDLE: "{{ .Values.workerIdle }}" 28 | PRIVATE_KEY_FILE: "{{ .Values.key.file }}" 29 | PUBLIC_HOST: "{{ .Values.serviceUrls.PUBLIC_HOST }}" 30 | QUOTE_LIFESPAN: "{{ .Values.lifetime.quote }}" 31 | QUOTE_URL: "{{ .Values.serviceUrls.QUOTE_URL }}" 32 | REDIS_TLS_CA_FILE_PATH: "{{ .Values.redis.tlsCaFile }}" 33 | REDIS_TLS_CERT_FILE_PATH: "{{ .Values.redis.tlsCertFile }}" 34 | REDIS_TLS_KEY_FILE_PATH: "{{ .Values.redis.tlsKeyFile }}" 35 | REDIS_URL: {{ include "backend.redisUrl" . | quote }} 36 | SIGNATURE_VERSION: "1" 37 | SLIPPAGE: "{{ .Values.ilp.slippage }}" 38 | TIGERBEETLE_CLUSTER_ID: none 39 | TIGERBEETLE_REPLICA_ADDRESSES: none 40 | USE_TIGERBEETLE: "false" 41 | WALLET_ADDRESS_URL: "{{ .Values.serviceUrls.WALLET_ADDRESS_URL }}" 42 | WEBHOOK_TIMEOUT: "{{ .Values.lifetime.webhook }}" 43 | WEBHOOK_URL: "{{ .Values.serviceUrls.WEBHOOK_URL }}" 44 | WEBHOOK_WORKERS: "{{ .Values.workers.webhook }}" 45 | WEBHOOK_WORKER_IDLE: "{{ .Values.workerIdle }}" 46 | WITHDRAWAL_THROTTLE_DELAY: "{{ .Values.withdrawalThrottleDelay }}" 47 | ENABLE_MANUAL_MIGRATIONS: "{{ .Values.enableManualMigrations }}" -------------------------------------------------------------------------------- /charts/rafiki-backend/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: {{ include "rafiki-backend.fullname" . }} 5 | labels: 6 | {{ include "rafiki-backend.labels" . | indent 4 }} 7 | spec: 8 | replicas: {{ .Values.replicas }} 9 | strategy: 10 | type: RollingUpdate 11 | rollingUpdate: 12 | maxSurge: {{ .Values.rollingUpdate.maxSurge }} 13 | maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }} 14 | selector: 15 | matchLabels: 16 | app.kubernetes.io/name: {{ include "rafiki-backend.name" . }} 17 | app.kubernetes.io/instance: {{ .Release.Name }} 18 | template: 19 | metadata: 20 | labels: 21 | app.kubernetes.io/name: {{ include "rafiki-backend.name" . }} 22 | app.kubernetes.io/instance: {{ .Release.Name }} 23 | spec: 24 | {{- with .Values.imagePullSecrets -}} 25 | imagePullSecrets: 26 | {{- toYaml . | nindent 8 }} 27 | {{- end -}} 28 | {{- if .Values.serviceAccount.create }} 29 | serviceAccountName: {{ template "backend.serviceAccountName" . }} 30 | {{ with .Values.podSecurityContext -}} 31 | securityContext: 32 | {{- toYaml . | nindent 8 -}} 33 | {{- end -}} 34 | {{- end }} 35 | {{- if .Values.serviceAccount.create -}} 36 | volumes: 37 | - name: {{ include "rafiki-backend.fullname" . }}-sa-key 38 | secret: 39 | secretName: {{ include "rafiki-backend.fullname" . }}-sa-key 40 | {{- end }} 41 | {{- if .Values.enableManualMigrations }} 42 | initContainers: 43 | - name: database-migrations 44 | image: {{ include "backend.image" . }} 45 | command: ["npm", "run", "knex", "--", "migrate:latest", "--env", "production"] 46 | workingDir: /home/rafiki/packages/backend/ 47 | envFrom: 48 | - configMapRef: 49 | name: {{ include "rafiki-backend.fullname" . }} 50 | - secretRef: 51 | name: {{ include "rafiki-backend.fullname" . }}-secrets 52 | {{- end }} 53 | containers: 54 | - name: {{ .Chart.Name }} 55 | securityContext: 56 | {{- toYaml .Values.securityContext | nindent 12 }} 57 | image: {{ include "backend.image" . }} 58 | imagePullPolicy: {{ .Values.image.pullPolicy }} 59 | envFrom: 60 | - configMapRef: 61 | name: {{ include "rafiki-backend.fullname" . }} 62 | - secretRef: 63 | name: {{ include "rafiki-backend.fullname" . }}-secrets 64 | ports: 65 | - name: open-payments 66 | containerPort: {{ .Values.port.openPayments }} 67 | protocol: TCP 68 | - name: admin 69 | containerPort: {{ .Values.port.admin }} 70 | protocol: TCP 71 | - name: connector 72 | containerPort: {{ .Values.port.connector }} 73 | protocol: TCP 74 | resources: 75 | {{- toYaml .Values.resources | nindent 12 }} 76 | -------------------------------------------------------------------------------- /charts/rafiki-backend/templates/secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Secret 3 | metadata: 4 | name: {{ include "rafiki-backend.fullname" . }}-secrets 5 | labels: 6 | {{ include "rafiki-backend.labels" . | indent 4 }} 7 | data: 8 | DATABASE_URL: {{ include "backend.postgresqlUrl" . | b64enc | quote }} 9 | REDIS_URL: {{ include "backend.redisUrl" . | b64enc | quote }} 10 | SIGNATURE_SECRET: "{{ .Values.quoteSignatureSecret | b64enc }}" 11 | STREAM_SECRET: "{{ .Values.ilp.streamSecret | b64enc }}" 12 | -------------------------------------------------------------------------------- /charts/rafiki-backend/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ include "rafiki-backend.fullname" . }} 5 | labels: 6 | app: {{ include "rafiki-backend.name" . }} 7 | chart: {{ include "rafiki-backend.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: ClusterIP 12 | ports: 13 | - port: {{ .Values.port.admin }} 14 | targetPort: {{ .Values.port.admin }} 15 | protocol: TCP 16 | name: admin 17 | - port: {{ .Values.port.openPayments }} 18 | targetPort: {{ .Values.port.openPayments }} 19 | protocol: TCP 20 | name: open-payments 21 | - port: {{ .Values.port.connector}} 22 | targetPort: {{ .Values.port.connector }} 23 | protocol: TCP 24 | name: connector 25 | selector: 26 | app.kubernetes.io/name: {{ include "rafiki-backend.name" . }} 27 | app.kubernetes.io/instance: {{ .Release.Name }} 28 | -------------------------------------------------------------------------------- /charts/rafiki-backend/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ template "backend.serviceAccountName" . }} 6 | labels: 7 | {{ include "rafiki-backend.labels" . | indent 4 }} 8 | {{- end -}} 9 | -------------------------------------------------------------------------------- /charts/rafiki-backend/values.yaml: -------------------------------------------------------------------------------- 1 | nodeEnv: development 2 | logLevel: debug 3 | enableManualMigrations: true 4 | serviceUrls: 5 | PUBLIC_HOST: http://rafiki-backend 6 | OPEN_PAYMENTS_URL: http://rafiki-backend 7 | WALLET_ADDRESS_URL: http://rafiki-backend/.well-known/pay 8 | WEBHOOK_URL: http://cloud-nine-wallet/webhooks 9 | EXCHANGE_RATES_URL: http://cloud-nine-wallet/prices 10 | QUOTE_URL: http://cloud-nine-wallet/quotes 11 | AUTH_SERVER_GRANT_URL: http://rafiki-auth:3006 12 | AUTH_SERVER_INTROSPECTION_URL: http://rafiki-auth:3007 13 | redis: 14 | host: 'redis.example.com' 15 | port: 6379 16 | tlsCaFile: '' 17 | tlsCertFile: '' 18 | tlsKeyFile: '' 19 | postgresql: 20 | host: "postgresql.default" 21 | port: 5432 22 | username: "backend" 23 | database: "backend" 24 | password: "backend" 25 | port: 26 | admin: 3001 27 | connector: 3002 28 | openPayments: 80 29 | ilp: 30 | address: test.cloud-nine-wallet # override this value 31 | streamSecret: "BjPXtnd00G2mRQwP/8ZpwyZASOch5sUXT5o0iR5b5wU=" # override this value 32 | slippage: 0.01 33 | key: 34 | id: rafiki 35 | file: '' 36 | quoteSignatureSecret: "overridethisValue" 37 | withdrawalThrottleDelay: '' 38 | lifetime: 39 | exchangeRate: 15000 40 | quote: 300000 41 | webhook: 200 42 | workers: 43 | incomingPayment: 1 44 | outgoingPayment: 4 45 | paymentPointer: 1 46 | webhook: 1 47 | workerIdle: 200 48 | idempotency: 49 | keyTTL: 86400000 50 | keyLock: 2000 51 | image: 52 | repository: ghcr.io/interledger/rafiki-backend 53 | tag: 'v1.0.0-alpha.8' 54 | digest: '' 55 | pullPolicy: IfNotPresent 56 | rollingUpdate: 57 | maxSurge: 100% 58 | maxUnavailable: 50% 59 | serviceAccount: 60 | # Specifies whether a service account should be created 61 | create: true 62 | # The name of the service account to use. 63 | # If not set and create is true, a name is generated using the fullname template 64 | name: '' 65 | securityContext: 66 | {} 67 | # resources: 68 | # limits: 69 | # memory: 1Gi 70 | # cpu: 450m 71 | # requests: 72 | # memory: 800Mi 73 | # cpu: 300m 74 | -------------------------------------------------------------------------------- /charts/rafiki-frontend/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v2 2 | name: rafiki-frontend 3 | description: Rafiki Frontend Service 4 | maintainers: 5 | - name: sabineschaller 6 | 7 | # A chart can be either an 'application' or a 'library' chart. 8 | # 9 | # Application charts are a collection of templates that can be packaged into versioned archives 10 | # to be deployed. 11 | # 12 | # Library charts provide useful utilities or functions for the chart developer. They're included as 13 | # a dependency of application charts to inject those utilities and functions into the rendering 14 | # pipeline. Library charts do not define any templates and therefore cannot be deployed. 15 | type: application 16 | 17 | # This is the chart version. This version number should be incremented each time you make changes 18 | # to the chart and its templates, including the app version. 19 | # Versions are expected to follow Semantic Versioning (https://semver.org/) 20 | version: 0.4.3 21 | 22 | # This is the version number of the application being deployed. This version number should be 23 | # incremented each time you make changes to the application. Versions are not expected to 24 | # follow Semantic Versioning. They should reflect the version the application is using. 25 | # It is recommended to use it with quotes. 26 | appVersion: 'v1.0.0-alpha.8' 27 | -------------------------------------------------------------------------------- /charts/rafiki-frontend/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | 2 | {{/* vim: set filetype=mustache: */}} 3 | {{/* 4 | Expand the name of the chart. 5 | */}} 6 | {{- define "rafiki-frontend.name" -}} 7 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 8 | {{- end -}} 9 | 10 | {{/* 11 | Create a default fully qualified app name. 12 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 13 | If release name contains chart name it will be used as a full name. 14 | */}} 15 | {{- define "rafiki-frontend.fullname" -}} 16 | {{- if .Values.fullnameOverride -}} 17 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 18 | {{- else -}} 19 | {{- $name := default .Chart.Name .Values.nameOverride -}} 20 | {{- if contains $name .Release.Name -}} 21 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 22 | {{- else -}} 23 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 24 | {{- end -}} 25 | {{- end -}} 26 | {{- end -}} 27 | 28 | {{/* 29 | Create chart name and version as used by the chart label. 30 | */}} 31 | {{- define "rafiki-frontend.chart" -}} 32 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} 33 | {{- end -}} 34 | 35 | {{/* 36 | Common labels 37 | */}} 38 | {{- define "rafiki-frontend.labels" -}} 39 | app: {{ include "rafiki-frontend.name" . }} 40 | app.kubernetes.io/name: {{ include "rafiki-frontend.name" . }} 41 | helm.sh/chart: {{ include "rafiki-frontend.chart" . }} 42 | app.kubernetes.io/instance: {{ .Release.Name }} 43 | {{- if .Chart.AppVersion }} 44 | app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} 45 | {{- end }} 46 | app.kubernetes.io/managed-by: {{ .Release.Service }} 47 | {{- end -}} 48 | 49 | {{/* 50 | Create the name of the frontend service account to use 51 | */}} 52 | {{- define "frontend.serviceAccountName" -}} 53 | {{- if .Values.serviceAccount.create -}} 54 | {{ default (include "rafiki-frontend.fullname" .) .Values.serviceAccount.name }} 55 | {{- else -}} 56 | {{ default "default" .Values.serviceAccount.name }} 57 | {{- end -}} 58 | {{- end -}} 59 | 60 | {{/* 61 | Create the frontend image 62 | */}} 63 | {{- define "frontend.image" -}} 64 | {{ if .Values.image.tag }} 65 | {{- .Values.image.repository -}}:{{- .Values.image.tag -}} 66 | {{ else if .Values.image.digest }} 67 | {{- .Values.image.repository -}}@{{- .Values.image.digest -}} 68 | {{ else }} 69 | {{- .Values.image.repository -}}:latest 70 | {{ end }} 71 | {{- end -}} -------------------------------------------------------------------------------- /charts/rafiki-frontend/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ include "rafiki-frontend.fullname" . }} 5 | labels: 6 | {{ include "rafiki-frontend.labels" . | indent 4 }} 7 | data: 8 | GRAPHQL_URL: "{{ .Values.serviceUrls.GRAPHQL_URL}}" 9 | LOG_LEVEL: debug 10 | NODE_ENV: "{{ .Values.nodeEnv }}" 11 | PORT: "{{ .Values.port }}" 12 | KRATOS_CONTAINER_PUBLIC_URL: "{{ .Values.kratos.containerPublicUrl }}" 13 | KRATOS_BROWSER_PUBLIC_URL: "{{ .Values.kratos.browserPublicUrl }}" 14 | KRATOS_ADMIN_URL: "{{ .Values.kratos.adminUrl }}" 15 | -------------------------------------------------------------------------------- /charts/rafiki-frontend/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: {{ include "rafiki-frontend.fullname" . }} 5 | labels: 6 | {{ include "rafiki-frontend.labels" . | indent 4 }} 7 | spec: 8 | replicas: {{ .Values.replicas }} 9 | strategy: 10 | type: RollingUpdate 11 | rollingUpdate: 12 | maxSurge: {{ .Values.rollingUpdate.maxSurge }} 13 | maxUnavailable: {{ .Values.rollingUpdate.maxUnavailable }} 14 | selector: 15 | matchLabels: 16 | app.kubernetes.io/name: {{ include "rafiki-frontend.name" . }} 17 | app.kubernetes.io/instance: {{ .Release.Name }} 18 | template: 19 | metadata: 20 | labels: 21 | app.kubernetes.io/name: {{ include "rafiki-frontend.name" . }} 22 | app.kubernetes.io/instance: {{ .Release.Name }} 23 | spec: 24 | {{- with .Values.imagePullSecrets }} 25 | imagePullSecrets: 26 | {{- toYaml . | nindent 8 }} 27 | {{- end }} 28 | {{ if .Values.serviceAccount.create }} 29 | serviceAccountName: {{ template "frontend.serviceAccountName" . }} 30 | securityContext: 31 | {{- toYaml .Values.podSecurityContext | nindent 8 }} 32 | {{ end }} 33 | containers: 34 | - name: {{ .Chart.Name }}-frontend 35 | securityContext: 36 | {{- toYaml .Values.securityContext | nindent 12 }} 37 | image: {{ include "frontend.image" . }} 38 | imagePullPolicy: {{ .Values.image.pullPolicy }} 39 | envFrom: 40 | - configMapRef: 41 | name: {{ include "rafiki-frontend.fullname" . }} 42 | ports: 43 | - name: http 44 | containerPort: {{ .Values.port }} 45 | protocol: TCP 46 | #livenessProbe: 47 | # failureThreshold: 15 48 | # initialDelaySeconds: 30 49 | # periodSeconds: 10 50 | # timeoutSeconds: 10 51 | # httpGet: 52 | # path: /healthz 53 | # port: admin 54 | #readinessProbe: 55 | # failureThreshold: 3 56 | # initialDelaySeconds: 5 57 | # periodSeconds: 5 58 | # timeoutSeconds: 5 59 | # httpGet: 60 | # path: /healthz 61 | # port: http 62 | resources: 63 | {{- toYaml .Values.resources | nindent 12 }} 64 | -------------------------------------------------------------------------------- /charts/rafiki-frontend/templates/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ include "rafiki-frontend.fullname" . }} 5 | labels: 6 | app: {{ include "rafiki-frontend.name" . }} 7 | chart: {{ include "rafiki-frontend.chart" . }} 8 | release: {{ .Release.Name }} 9 | heritage: {{ .Release.Service }} 10 | spec: 11 | type: ClusterIP 12 | ports: 13 | - port: {{ .Values.port }} 14 | targetPort: {{ .Values.port }} 15 | protocol: TCP 16 | name: http 17 | selector: 18 | app.kubernetes.io/name: {{ include "rafiki-frontend.name" . }} 19 | app.kubernetes.io/instance: {{ .Release.Name }} 20 | -------------------------------------------------------------------------------- /charts/rafiki-frontend/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ template "frontend.serviceAccountName" . }} 6 | labels: 7 | {{ include "rafiki-frontend.labels" . | indent 4 }} 8 | {{- end -}} 9 | -------------------------------------------------------------------------------- /charts/rafiki-frontend/values.yaml: -------------------------------------------------------------------------------- 1 | nodeEnv: production 2 | serviceUrls: 3 | GRAPHQL_URL: http://rafiki-backend:3001/graphql 4 | port: 3010 5 | image: 6 | repository: ghcr.io/interledger/rafiki-frontend 7 | tag: 'v1.0.0-alpha.8' 8 | digest: '' 9 | pullPolicy: IfNotPresent 10 | rollingUpdate: 11 | maxSurge: 100% 12 | maxUnavailable: 50% 13 | serviceAccount: 14 | # Specifies whether a service account should be created 15 | create: true 16 | # The name of the service account to use. 17 | # If not set and create is true, a name is generated using the fullname template 18 | name: '' 19 | securityContext: 20 | {} 21 | kratos: 22 | containerPublicUrl: 23 | browserPublicUrl: 24 | adminUrl: 25 | -------------------------------------------------------------------------------- /cr.yaml: -------------------------------------------------------------------------------- 1 | # Skip upload if release exists 2 | skip-existing: true 3 | --------------------------------------------------------------------------------