├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ └── feature_request.yml ├── PULL_REQUEST_TEMPLATE.md ├── assets │ ├── gitroom-darkmode-logo.png │ ├── gitroom-lightmode-logo.png │ ├── gitroom-main-youtube.png │ ├── screen-002.png │ ├── screen-003.png │ └── screen-004.png └── workflows │ └── helm-chart-ci-cd.yaml ├── .gitignore ├── LICENSE ├── README.md ├── charts └── postiz │ ├── Chart.yaml │ ├── templates │ ├── _helpers.yaml │ ├── postiz-config.yaml │ ├── postiz-deployment.yaml │ ├── postiz-ingress.yaml │ ├── postiz-secret.yaml │ ├── postiz-service.yaml │ └── postiz-serviceaccount.yaml │ └── values.yaml └── ct.yaml /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: "🐛 Helm Chart Bug Report" 2 | description: "Submit a bug report for the Helm chart to help us improve" 3 | title: "🐛 Helm Chart Bug: " 4 | labels: ["type: bug", "component: helm-chart"] 5 | body: 6 | - type: markdown 7 | attributes: 8 | value: We appreciate your time and effort in submitting this bug report for our Helm chart. 🙏 9 | - type: textarea 10 | id: description 11 | validations: 12 | required: true 13 | attributes: 14 | label: "📜 Description" 15 | description: "A clear and concise description of what the bug is." 16 | placeholder: "The Helm chart fails to deploy when ..." 17 | - type: textarea 18 | id: steps-to-reproduce 19 | validations: 20 | required: true 21 | attributes: 22 | label: "👟 Reproduction steps" 23 | description: "How do you trigger this bug? Please walk us through it step by step." 24 | placeholder: "1. Set the following values in values.yaml: ... 25 | 2. Run 'helm install ...' 26 | 3. Observe the error in ..." 27 | - type: textarea 28 | id: expected-behavior 29 | validations: 30 | required: true 31 | attributes: 32 | label: "👍 Expected behavior" 33 | description: "What did you expect to happen?" 34 | placeholder: "The Helm chart should successfully deploy and ..." 35 | - type: textarea 36 | id: actual-behavior 37 | validations: 38 | required: true 39 | attributes: 40 | label: "👎 Actual Behavior" 41 | description: "What actually happened? Please include any error messages or logs." 42 | placeholder: "The Helm chart failed to deploy with the following error: ..." 43 | - type: input 44 | id: kubernetes-version 45 | validations: 46 | required: true 47 | attributes: 48 | label: "☸️ Kubernetes Version" 49 | description: "What version of Kubernetes are you using?" 50 | placeholder: "v1.22.0" 51 | - type: input 52 | id: helm-version 53 | validations: 54 | required: true 55 | attributes: 56 | label: "⎈ Helm Version" 57 | description: "What version of Helm are you using?" 58 | placeholder: "v3.7.0" 59 | - type: input 60 | id: chart-version 61 | validations: 62 | required: true 63 | attributes: 64 | label: "📊 Chart Version" 65 | description: "What version of our Helm chart are you using?" 66 | placeholder: "1.0.0" 67 | - type: dropdown 68 | id: cloud-provider 69 | attributes: 70 | label: "☁️ Cloud Provider" 71 | description: "Which cloud provider or platform are you using?" 72 | options: 73 | - AWS 74 | - Google Cloud 75 | - Azure 76 | - DigitalOcean 77 | - On-premises 78 | - Other 79 | validations: 80 | required: true 81 | - type: textarea 82 | id: custom-values 83 | attributes: 84 | label: "🛠️ Custom Values" 85 | description: "If applicable, provide the custom values you're using (remember to remove any sensitive information)" 86 | render: yaml 87 | - type: textarea 88 | id: additional-context 89 | attributes: 90 | label: "📃 Additional Context" 91 | description: "Add any other context about the problem here." 92 | - type: checkboxes 93 | id: no-duplicate-issues 94 | attributes: 95 | label: "👀 Have you checked if this bug has been reported before?" 96 | options: 97 | - label: "I have searched existing issues and didn't find a similar bug report" 98 | required: true 99 | - type: dropdown 100 | attributes: 101 | label: Are you willing to submit a PR? 102 | description: This is not required, but we're happy to guide you through the process. Join our community for support! 103 | options: 104 | - "Yes, I'm willing to submit a PR!" 105 | - "No, not at this time" -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- 1 | name: 🚀 Helm Chart Feature Request 2 | description: "Submit a proposal for a new feature in the Helm chart" 3 | title: "🚀 Helm Chart Feature: " 4 | labels: [feature, component: helm-chart] 5 | body: 6 | - type: markdown 7 | attributes: 8 | value: | 9 | We appreciate your time and effort in submitting this Feature request for our Helm chart. 🙏 10 | - type: textarea 11 | id: feature-description 12 | validations: 13 | required: true 14 | attributes: 15 | label: "🔖 Feature description" 16 | description: "A clear and concise description of the feature you're proposing for the Helm chart." 17 | placeholder: "The Helm chart should support ..." 18 | - type: textarea 19 | id: use-case 20 | validations: 21 | required: true 22 | attributes: 23 | label: "🎯 Use Case" 24 | description: "Please describe the use case for this feature. How would it benefit users of the Helm chart?" 25 | placeholder: "This feature would allow users to ..." 26 | - type: textarea 27 | id: proposed-implementation 28 | validations: 29 | required: true 30 | attributes: 31 | label: "✨ Proposed Implementation" 32 | description: "If you have ideas on how this feature could be implemented in the Helm chart, please share them here." 33 | placeholder: "This could be implemented by adding the following to the values.yaml: ..." 34 | - type: textarea 35 | id: alternatives-considered 36 | validations: 37 | required: false 38 | attributes: 39 | label: "🔄 Alternatives Considered" 40 | description: "Have you considered any alternative solutions or workarounds? If so, please describe them here." 41 | placeholder: "I've considered using ... but it doesn't fully address the need because ..." 42 | - type: textarea 43 | id: additional-context 44 | validations: 45 | required: false 46 | attributes: 47 | label: "📘 Additional Context" 48 | description: "Any other context, screenshots, or examples that might help illustrate the feature request." 49 | - type: input 50 | id: helm-version 51 | attributes: 52 | label: "⎈ Helm Version" 53 | description: "What version of Helm are you using? This helps us understand compatibility considerations." 54 | placeholder: "v3.7.0" 55 | - type: input 56 | id: chart-version 57 | attributes: 58 | label: "📊 Current Chart Version" 59 | description: "What version of our Helm chart are you currently using?" 60 | placeholder: "1.0.0" 61 | - type: checkboxes 62 | id: no-duplicate-issues 63 | attributes: 64 | label: "👀 Have you checked if this feature has been requested before?" 65 | options: 66 | - label: "I have searched existing issues and didn't find a similar feature request" 67 | required: true 68 | - type: dropdown 69 | id: willing-to-submit-pr 70 | attributes: 71 | label: "🤝 Contribution" 72 | description: "Would you be willing to submit a PR for this feature? (This is not required, but we're happy to guide you through the process!)" 73 | options: 74 | - "Yes, I'd be willing to submit a PR!" 75 | - "No, not at this time" 76 | validations: 77 | required: true -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Pull Request Template for Helm Chart 2 | 3 | ## Description 4 | 5 | Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. 6 | 7 | Fixes # (issue) 8 | 9 | ## Type of change 10 | 11 | Please delete options that are not relevant. 12 | 13 | - [ ] Bug fix (non-breaking change which fixes an issue) 14 | - [ ] New feature (non-breaking change which adds functionality) 15 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) 16 | - [ ] This change requires a documentation update 17 | 18 | ## How Has This Been Tested? 19 | 20 | Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. 21 | 22 | - [ ] Test A 23 | - [ ] Test B 24 | 25 | **Test Configuration**: 26 | * Kubernetes version: 27 | * Helm version: 28 | * Minikube/kind version (if applicable): 29 | 30 | ## Checklist: 31 | 32 | - [ ] My code follows the style guidelines of this project 33 | - [ ] I have performed a self-review of my own code 34 | - [ ] I have commented my code, particularly in hard-to-understand areas 35 | - [ ] I have made corresponding changes to the documentation 36 | - [ ] My changes generate no new warnings 37 | - [ ] I have added tests that prove my fix is effective or that my feature works 38 | - [ ] New and existing unit tests pass locally with my changes 39 | - [ ] Any dependent changes have been merged and published in downstream modules 40 | - [ ] I have checked my code and corrected any misspellings 41 | 42 | ## Additional Information 43 | 44 | - **Does this change introduce any new Kubernetes resource types?** (Yes/No) 45 | If yes, please list them: 46 | 47 | - **Does this change modify any existing Kubernetes resource types?** (Yes/No) 48 | If yes, please describe the modifications: 49 | 50 | - **Are there any changes to the values.yaml file?** (Yes/No) 51 | If yes, please describe the changes and their purpose: 52 | 53 | - **Does this change require any specific Kubernetes permissions or RBAC changes?** (Yes/No) 54 | If yes, please describe the required permissions: 55 | 56 | - **Are there any changes to chart dependencies?** (Yes/No) 57 | If yes, please list the changes: 58 | 59 | - **Have you updated the CHANGELOG.md file?** (Yes/No) 60 | 61 | ## Additional context 62 | 63 | Add any other context or screenshots about the pull request here. -------------------------------------------------------------------------------- /.github/assets/gitroom-darkmode-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitroomhq/postiz-helmchart/5d6a9de2d551e47961cb1c8e948b163ab176483b/.github/assets/gitroom-darkmode-logo.png -------------------------------------------------------------------------------- /.github/assets/gitroom-lightmode-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitroomhq/postiz-helmchart/5d6a9de2d551e47961cb1c8e948b163ab176483b/.github/assets/gitroom-lightmode-logo.png -------------------------------------------------------------------------------- /.github/assets/gitroom-main-youtube.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitroomhq/postiz-helmchart/5d6a9de2d551e47961cb1c8e948b163ab176483b/.github/assets/gitroom-main-youtube.png -------------------------------------------------------------------------------- /.github/assets/screen-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitroomhq/postiz-helmchart/5d6a9de2d551e47961cb1c8e948b163ab176483b/.github/assets/screen-002.png -------------------------------------------------------------------------------- /.github/assets/screen-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitroomhq/postiz-helmchart/5d6a9de2d551e47961cb1c8e948b163ab176483b/.github/assets/screen-003.png -------------------------------------------------------------------------------- /.github/assets/screen-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitroomhq/postiz-helmchart/5d6a9de2d551e47961cb1c8e948b163ab176483b/.github/assets/screen-004.png -------------------------------------------------------------------------------- /.github/workflows/helm-chart-ci-cd.yaml: -------------------------------------------------------------------------------- 1 | name: Helm Chart CI/CD 2 | 3 | on: 4 | push: 5 | branches: [ main ] 6 | paths: 7 | - 'charts/**' 8 | - '.github/workflows/helm-chart-ci-cd.yaml' 9 | pull_request: 10 | branches: [ main ] 11 | paths: 12 | - 'charts/**' 13 | - '.github/workflows/helm-chart-ci-cd.yaml' 14 | release: 15 | types: [created] 16 | 17 | env: 18 | CHART_NAME: postiz 19 | CHART_PATH: ./charts/postiz 20 | 21 | jobs: 22 | lint-test: 23 | runs-on: ubuntu-latest 24 | steps: 25 | - name: Checkout 26 | uses: actions/checkout@v4 27 | with: 28 | fetch-depth: 0 29 | 30 | - name: Set up Helm 31 | uses: azure/setup-helm@v4.2.0 32 | with: 33 | version: v3.14.4 34 | 35 | - name: Install Chart deps 36 | run: | 37 | helm repo add bitnami https://charts.bitnami.com/bitnami 38 | 39 | - name: Set up Python 40 | uses: actions/setup-python@v5 41 | with: 42 | python-version: '3.x' 43 | check-latest: false 44 | 45 | - name: Set up chart-testing 46 | uses: helm/chart-testing-action@v2.6.1 47 | 48 | - name: Run chart-testing (list-changed) 49 | id: list-changed 50 | run: | 51 | changed=$(ct list-changed --config ct.yaml --target-branch ${{ github.event.repository.default_branch }}) 52 | if [[ -n "$changed" ]]; then 53 | echo "changed=true" >> $GITHUB_OUTPUT 54 | fi 55 | 56 | - name: Run chart-testing (lint) 57 | run: ct lint --config ct.yaml --target-branch ${{ github.event.repository.default_branch }} 58 | 59 | - name: Create kind cluster 60 | uses: helm/kind-action@v1.10.0 61 | if: steps.list-changed.outputs.changed == 'true' 62 | 63 | - name: Run chart-testing (install) 64 | run: ct install --config ct.yaml --target-branch ${{ github.event.repository.default_branch }} 65 | 66 | publish: 67 | needs: lint-test 68 | runs-on: ubuntu-latest 69 | if: github.event_name == 'release' 70 | steps: 71 | - name: Checkout 72 | uses: actions/checkout@v4 73 | 74 | - name: Set up Helm 75 | uses: azure/setup-helm@v4.2.0 76 | with: 77 | version: v3.11.1 78 | 79 | - name: Add dependency repositories 80 | run: | 81 | helm repo add bitnami https://charts.bitnami.com/bitnami 82 | 83 | - name: Update dependencies 84 | run: | 85 | helm dependency update ${{ env.CHART_PATH }} 86 | 87 | - name: Package Helm chart 88 | run: | 89 | helm package ${{ env.CHART_PATH }} 90 | 91 | - name: Run chart-releaser 92 | uses: helm/chart-releaser-action@v1.6.0 93 | env: 94 | CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" 95 | with: 96 | charts_dir: charts 97 | 98 | - name: Login to GitHub Container Registry 99 | uses: docker/login-action@v3 100 | with: 101 | registry: ghcr.io 102 | username: ${{ github.actor }} 103 | password: ${{ secrets.GITHUB_TOKEN }} 104 | 105 | - name: Push Helm chart to GitHub Packages 106 | run: | 107 | helm push ${{ env.CHART_NAME }}*.tgz oci://ghcr.io/${{ github.repository }}/charts 108 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /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 | # Postiz Helm Chart 2 | 3 | This Helm chart deploys the Postiz application on a Kubernetes cluster using the Helm package manager. 4 | 5 | ## Prerequisites 6 | 7 | - Kubernetes 1.12+ 8 | - Helm 3.0+ 9 | - PV provisioner support in the underlying infrastructure (if persistence is required) 10 | 11 | ## Installing the Chart 12 | 13 | The Postiz helm chart registry uses the OCI format, not HTTP, which means you do not need to do a `helm repo add` to install the chart. You can install the chart directly from the GitHub repository. 14 | 15 | To install the chart with the release name `postiz-app`: 16 | 17 | ```bash 18 | $ helm install postiz oci://ghcr.io/gitroomhq/postiz-helmchart/charts/postiz-app 19 | ``` 20 | 21 | The command deploys Postiz on the Kubernetes cluster in the default configuration. The [Parameters](#parameters) section lists the parameters that can be configured during installation. 22 | 23 | > **Tip**: List all releases using `helm list` 24 | 25 | ## Uninstalling the Chart 26 | 27 | To uninstall/delete the `postiz` deployment: 28 | 29 | ```bash 30 | $ helm delete postiz-app 31 | ``` 32 | 33 | The command removes all the Kubernetes components associated with the chart and deletes the release. 34 | 35 | ## Parameters 36 | 37 | The following table lists the configurable parameters of the Postiz chart and their default values. 38 | 39 | | Parameter | Description | Default | 40 | | ------------------------ | ----------------------- | -------------- | 41 | | `replicaCount` | Number of replicas | `1` | 42 | | `image.repository` | Image repository | `ghcr.io/gitroomhq/postiz-app` | 43 | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | 44 | | `image.tag` | Image tag | `latest` | 45 | | `service.type` | Kubernetes service type | `ClusterIP` | 46 | | `service.port` | Kubernetes service port | `80` | 47 | | `postgresql.enabled` | Deploy PostgreSQL | `true` | 48 | | `postgresql.auth.username` | PostgreSQL username | `postiz` | 49 | | `postgresql.auth.password` | PostgreSQL password | `postiz-password` | 50 | | `postgresql.auth.database` | PostgreSQL database | `postiz` | 51 | | `redis.enabled` | Deploy Redis | `true` | 52 | | `redis.auth.password` | Redis password | `postiz-redis-password` | 53 | | `ingress.enabled` | Enable ingress controller resource | `false` | 54 | | `ingress.className` | IngressClass that will be be used | `""` | 55 | | `ingress.annotations` | Ingress annotations | `{}` | 56 | | `ingress.hosts` | Ingress hostnames | `[]` | 57 | | `ingress.tls` | Ingress TLS configuration | `[]` | 58 | | `ingress.path` | Path within the host | `/` | 59 | | `ingress.pathType` | Ingress path type | `ImplementationSpecific` | 60 | | `extraVolumes` | Additional volumes to mount | `[{"name": "uploads-volume", "emptyDir": {}}]` | 61 | | `extraVolumeMounts` | Additional volume mounts to use | `[{"name": "uploads-volume", "mountPath": "/uploads"}]` | 62 | 63 | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, 64 | 65 | ```bash 66 | $ helm install postiz-app \ 67 | --set postgresql.auth.password=secretpassword \ 68 | postiz/postiz 69 | ``` 70 | 71 | The above command sets the PostgreSQL password to `secretpassword`. 72 | 73 | Alternatively, you can use a YAML file to specify the values while installing the chart. Create a file called `custom-values.yaml` (or any name you prefer) and specify your values: 74 | 75 | ```yaml 76 | postgresql: 77 | auth: 78 | password: secretpassword 79 | ingress: 80 | enabled: true 81 | hosts: 82 | - host: postiz.example.com 83 | ``` 84 | 85 | Then, you can install the chart using the `-f` flag: 86 | 87 | ```bash 88 | $ helm install postiz-app -f custom-values.yaml postiz/postiz 89 | ``` 90 | 91 | > **Tip**: You can use the default [values.yaml](values.yaml) as a starting point for your custom configuration. 92 | 93 | 94 | ## Persistence 95 | 96 | The chart mounts a [Persistent Volume](http://kubernetes.io/docs/user-guide/persistent-volumes/) for the PostgreSQL and Redis data. The volume is created using dynamic volume provisioning. If you want to disable this functionality you can change the values.yaml to disable persistence and use an emptyDir instead. 97 | 98 | ## Configuration and installation details 99 | 100 | ### External database support 101 | 102 | You may want to have Postiz connect to an external database rather than installing one inside your cluster. Typical reasons for this are to use a managed database service, or to share a common database server for all your applications. To achieve this, set the `postgresql.enabled` parameter to `false` and specify the credentials for the external database using the `postgresql.auth.username`, `postgresql.auth.password`, and `postgresql.auth.database` parameters. 103 | 104 | ### External Redis support 105 | 106 | Similar to the database, you can use an external Redis instance by setting `redis.enabled` to `false` and specifying the external Redis URL using the `REDIS_URL` environment variable in the `env` section of your values.yaml. 107 | 108 | ## Upgrading 109 | 110 | ### To 1.0.0 111 | 112 | This is the first major release of the Postiz Helm chart. 113 | 114 | ## Contributing 115 | 116 | We welcome contributions to this chart. Please read our [Contributing Guide](CONTRIBUTING.md) before submitting a pull request. 117 | 118 | ## License 119 | 120 | This chart is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details. -------------------------------------------------------------------------------- /charts/postiz/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v2 2 | name: postiz-app 3 | description: A Social Media Scheduling App 4 | type: application 5 | version: 1.0.5 6 | appVersion: "1.3.0" 7 | maintainers: 8 | - name: jonathan-irvin 9 | email: offendingcommit@gmail.com 10 | url: https://linktr.ee/offendingcommit 11 | - name: jamesread 12 | email: contact@jread.com 13 | url: http://jread.com 14 | keywords: 15 | - social media 16 | - marketing 17 | - scheduling 18 | - queue 19 | home: https://postiz.com 20 | sources: 21 | - https://github.com/gitroomhq/postiz-app 22 | - https://github.com/gitroomhq/postiz-helmchart 23 | dependencies: 24 | - name: postgresql 25 | version: 15.5.28 26 | repository: https://charts.bitnami.com/bitnami 27 | condition: postgresql.enabled 28 | - name: redis 29 | version: 20.1.0 30 | repository: https://charts.bitnami.com/bitnami 31 | condition: redis.enabled 32 | -------------------------------------------------------------------------------- /charts/postiz/templates/_helpers.yaml: -------------------------------------------------------------------------------- 1 | {{/* 2 | Expand the name of the chart. 3 | */}} 4 | {{- define "postiz.name" -}} 5 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} 6 | {{- end }} 7 | 8 | {{/* 9 | Create a default fully qualified app name. 10 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 11 | If release name contains chart name it will be used as a full name. 12 | */}} 13 | {{- define "postiz.fullname" -}} 14 | {{- if .Values.fullnameOverride }} 15 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} 16 | {{- else }} 17 | {{- $name := default .Chart.Name .Values.nameOverride }} 18 | {{- if contains $name .Release.Name }} 19 | {{- .Release.Name | trunc 63 | trimSuffix "-" }} 20 | {{- else }} 21 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} 22 | {{- end }} 23 | {{- end }} 24 | {{- end }} 25 | 26 | {{/* 27 | Create chart name and version as used by the chart label. 28 | */}} 29 | {{- define "postiz.chart" -}} 30 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} 31 | {{- end }} 32 | 33 | {{/* 34 | Common labels 35 | */}} 36 | {{- define "postiz.labels" -}} 37 | helm.sh/chart: {{ include "postiz.chart" . }} 38 | {{ include "postiz.selectorLabels" . }} 39 | {{- if .Chart.AppVersion }} 40 | app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} 41 | {{- end }} 42 | app.kubernetes.io/managed-by: {{ .Release.Service }} 43 | {{- end }} 44 | 45 | {{/* 46 | Selector labels 47 | */}} 48 | {{- define "postiz.selectorLabels" -}} 49 | app.kubernetes.io/name: {{ include "postiz.name" . }} 50 | app.kubernetes.io/instance: {{ .Release.Name }} 51 | {{- end }} 52 | 53 | {{/* 54 | Create the name of the service account to use 55 | */}} 56 | {{- define "postiz.serviceAccountName" -}} 57 | {{- if .Values.serviceAccount.create }} 58 | {{- default (include "postiz.fullname" .) .Values.serviceAccount.name }} 59 | {{- else }} 60 | {{- default "default" .Values.serviceAccount.name }} 61 | {{- end }} 62 | {{- end }} -------------------------------------------------------------------------------- /charts/postiz/templates/postiz-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: {{ include "postiz.fullname" . }}-config 5 | labels: 6 | {{- include "postiz.labels" . | nindent 4 }} 7 | data: 8 | {{- range $key, $value := .Values.env }} 9 | {{ $key }}: {{ $value | quote }} 10 | {{- end }} -------------------------------------------------------------------------------- /charts/postiz/templates/postiz-deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: {{ include "postiz.fullname" . }} 5 | labels: 6 | {{- include "postiz.labels" . | nindent 4 }} 7 | spec: 8 | {{- if not .Values.autoscaling.enabled }} 9 | replicas: {{ .Values.replicaCount }} 10 | {{- end }} 11 | selector: 12 | matchLabels: 13 | {{- include "postiz.selectorLabels" . | nindent 6 }} 14 | template: 15 | metadata: 16 | {{- with .Values.podAnnotations }} 17 | annotations: 18 | {{- toYaml . | nindent 8 }} 19 | {{- end }} 20 | labels: 21 | {{- include "postiz.selectorLabels" . | nindent 8 }} 22 | spec: 23 | {{- with .Values.imagePullSecrets }} 24 | imagePullSecrets: 25 | {{- toYaml . | nindent 8 }} 26 | {{- end }} 27 | serviceAccountName: {{ include "postiz.serviceAccountName" . }} 28 | securityContext: 29 | {{- toYaml .Values.podSecurityContext | nindent 8 }} 30 | containers: 31 | - name: {{ .Chart.Name }} 32 | securityContext: 33 | {{- toYaml .Values.securityContext | nindent 12 }} 34 | image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" 35 | imagePullPolicy: {{ .Values.image.pullPolicy }} 36 | ports: 37 | - name: http 38 | containerPort: 5000 39 | protocol: TCP 40 | volumeMounts: 41 | {{- if .Values.extraVolumeMounts }} 42 | {{- toYaml .Values.extraVolumeMounts | nindent 12 }} 43 | {{- else }} 44 | - name: uploads-volume 45 | mountPath: /uploads 46 | {{- end }} 47 | envFrom: 48 | - configMapRef: 49 | name: {{ include "postiz.fullname" . }}-config 50 | - secretRef: 51 | name: {{ include "postiz.fullname" . }}-secrets 52 | resources: 53 | {{- toYaml .Values.resources | nindent 12 }} 54 | {{- if .Values.extraContainers }} 55 | {{- toYaml .Values.extraContainers | nindent 8 }} 56 | {{- end }} 57 | {{- with .Values.nodeSelector }} 58 | nodeSelector: 59 | {{- toYaml . | nindent 8 }} 60 | {{- end }} 61 | {{- with .Values.affinity }} 62 | affinity: 63 | {{- toYaml . | nindent 8 }} 64 | {{- end }} 65 | {{- with .Values.tolerations }} 66 | tolerations: 67 | {{- toYaml . | nindent 8 }} 68 | {{- end }} 69 | volumes: 70 | {{- if .Values.extraVolumes }} 71 | {{- toYaml .Values.extraVolumes | nindent 8 }} 72 | {{- else }} 73 | - name: uploads-volume 74 | emptyDir: {} 75 | {{- end }} 76 | -------------------------------------------------------------------------------- /charts/postiz/templates/postiz-ingress.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.ingress.enabled }} 2 | apiVersion: networking.k8s.io/v1 3 | kind: Ingress 4 | metadata: 5 | name: {{ include "postiz.fullname" . }} 6 | labels: 7 | {{- include "postiz.labels" . | nindent 4 }} 8 | {{- with .Values.ingress.annotations }} 9 | annotations: 10 | {{- toYaml . | nindent 4 }} 11 | {{- end }} 12 | spec: 13 | {{- if .Values.ingress.className }} 14 | ingressClassName: {{ .Values.ingress.className }} 15 | {{- end }} 16 | {{- if .Values.ingress.tls }} 17 | tls: 18 | {{- range .Values.ingress.tls }} 19 | - hosts: 20 | {{- range .hosts }} 21 | - {{ . | quote }} 22 | {{- end }} 23 | secretName: {{ .secretName }} 24 | {{- end }} 25 | {{- end }} 26 | rules: 27 | {{- range .Values.ingress.hosts }} 28 | - host: {{ .host | quote }} 29 | http: 30 | paths: 31 | {{- range .paths }} 32 | - path: {{ .path }} 33 | pathType: {{ .pathType }} 34 | backend: 35 | service: 36 | name: {{ include "postiz.fullname" $ }} 37 | port: 38 | number: {{ .port }} 39 | {{- end }} 40 | {{- end }} 41 | {{- if .Values.ingress.extraRules }} 42 | {{- toYaml .Values.ingress.extraRules | nindent 4 }} 43 | {{- end }} 44 | {{- end }} -------------------------------------------------------------------------------- /charts/postiz/templates/postiz-secret.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Secret 3 | metadata: 4 | name: {{ include "postiz.fullname" . }}-secrets 5 | labels: 6 | {{- include "postiz.labels" . | nindent 4 }} 7 | type: Opaque 8 | data: 9 | {{- range $key, $value := .Values.secrets }} 10 | {{ $key }}: {{ $value | b64enc | quote }} 11 | {{- end }} -------------------------------------------------------------------------------- /charts/postiz/templates/postiz-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: {{ include "postiz.fullname" . }} 5 | labels: 6 | {{- include "postiz.labels" . | nindent 4 }} 7 | spec: 8 | type: {{ .Values.service.type }} 9 | ports: 10 | - port: {{ .Values.service.port }} 11 | targetPort: http 12 | protocol: TCP 13 | name: http 14 | {{- if .Values.service.additionalPorts }} 15 | {{- toYaml .Values.service.additionalPorts | nindent 4 }} 16 | {{- end }} 17 | selector: 18 | {{- include "postiz.selectorLabels" . | nindent 4 }} 19 | -------------------------------------------------------------------------------- /charts/postiz/templates/postiz-serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create }} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ include "postiz.serviceAccountName" . }} 6 | labels: 7 | {{- include "postiz.labels" . | nindent 4 }} 8 | {{- with .Values.serviceAccount.annotations }} 9 | annotations: 10 | {{- toYaml . | nindent 4 }} 11 | {{- end }} 12 | {{- end }} 13 | -------------------------------------------------------------------------------- /charts/postiz/values.yaml: -------------------------------------------------------------------------------- 1 | replicaCount: 1 2 | 3 | image: 4 | repository: ghcr.io/gitroomhq/postiz-app 5 | pullPolicy: IfNotPresent 6 | tag: "latest" 7 | 8 | imagePullSecrets: [] 9 | nameOverride: "" 10 | fullnameOverride: "" 11 | 12 | serviceAccount: 13 | create: true 14 | annotations: {} 15 | name: "" 16 | 17 | podAnnotations: {} 18 | 19 | podSecurityContext: {} 20 | 21 | securityContext: {} 22 | 23 | service: 24 | type: ClusterIP 25 | port: 80 26 | additionalPorts: [] 27 | 28 | ingress: 29 | enabled: false # Disabled by default 30 | className: "" 31 | annotations: {} 32 | # kubernetes.io/ingress.class: nginx 33 | # kubernetes.io/tls-acme: "true" 34 | hosts: 35 | - host: chart-example.local 36 | paths: 37 | - path: / 38 | pathType: Prefix 39 | port: 80 40 | tls: [] 41 | # - secretName: chart-example-tls 42 | # hosts: 43 | # - chart-example.local 44 | extraRules: [] 45 | 46 | resources: {} 47 | 48 | extraContainers: [] 49 | 50 | extraVolumes: [] 51 | extraVolumeMounts: [] 52 | 53 | autoscaling: 54 | enabled: false 55 | minReplicas: 1 56 | maxReplicas: 100 57 | targetCPUUtilizationPercentage: 80 58 | 59 | nodeSelector: {} 60 | 61 | tolerations: [] 62 | 63 | affinity: {} 64 | 65 | # PostgreSQL configuration 66 | postgresql: 67 | enabled: true 68 | auth: 69 | username: postiz 70 | password: postiz-password 71 | database: postiz 72 | service: 73 | ports: 74 | postgresql: 5432 75 | 76 | # Redis configuration 77 | redis: 78 | enabled: true 79 | auth: 80 | password: postiz-redis-password 81 | master: 82 | service: 83 | ports: 84 | redis: 6379 85 | 86 | # Environment variables 87 | env: 88 | FRONTEND_URL: "http://localhost:4200" 89 | NEXT_PUBLIC_BACKEND_URL: "http://localhost:3000" 90 | BACKEND_INTERNAL_URL: "http://backend:3000" 91 | UPLOAD_DIRECTORY: "" 92 | NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY: "" 93 | NX_ADD_PLUGINS: "false" 94 | IS_GENERAL: "true" 95 | 96 | # Sensitive environment variables (to be stored in Secrets) 97 | secrets: 98 | DATABASE_URL: "" 99 | REDIS_URL: "" 100 | JWT_SECRET: "" 101 | X_API_KEY: "" 102 | X_API_SECRET: "" 103 | LINKEDIN_CLIENT_ID: "" 104 | LINKEDIN_CLIENT_SECRET: "" 105 | REDDIT_CLIENT_ID: "" 106 | REDDIT_CLIENT_SECRET: "" 107 | GITHUB_CLIENT_ID: "" 108 | GITHUB_CLIENT_SECRET: "" 109 | RESEND_API_KEY: "" 110 | CLOUDFLARE_ACCOUNT_ID: "" 111 | CLOUDFLARE_ACCESS_KEY: "" 112 | CLOUDFLARE_SECRET_ACCESS_KEY: "" 113 | CLOUDFLARE_BUCKETNAME: "" 114 | CLOUDFLARE_BUCKET_URL: "" 115 | -------------------------------------------------------------------------------- /ct.yaml: -------------------------------------------------------------------------------- 1 | chart-dirs: 2 | - charts --------------------------------------------------------------------------------