16 Commits

Author SHA1 Message Date
James Read f09e2ff4fe Merge pull request #5 from Mattchewone/feat/volumes
feat: add volumes / fix issue with port
2024-11-05 16:21:05 +00:00
Matt Chaffe fc3d9c0910 continue: add defaults 2024-11-05 12:23:31 +00:00
Matt Chaffe 466cff4aa1 continue: bump version 2024-10-25 11:14:16 +01:00
Matt Chaffe b5ebad80c8 feat: add volumes / fix issue with port 2024-10-25 10:19:37 +01:00
James Read 465e817e22 Merge pull request #4 from zktaiga/add/sa
Add `ServiceAccount` template
2024-10-22 09:11:54 +01:00
Taiga 36c0e0a733 Bump Helm chart 2024-10-20 22:12:14 +04:00
Taiga 80f4cf1e3f Add ServiceAccount template 2024-10-20 22:07:06 +04:00
James Read 0450089618 Merge pull request #2 from captainswain/feat/ingress
Add configurable ingress, rename all files to `.yaml` for conformity.

I'm going to merge this as clearly the chart lints, and is installable. Thanks @captainswain for your patience while we fiddle with and fix the CI job.

I'll do some testing offline on one of my Kubernetes clusters to see what sort of a timeout we need to set here on GitHub (that's why the job is still failing).
2024-10-04 15:36:54 +01:00
James Read 75414d80a9 Add bitnami deps 2024-10-04 15:26:03 +01:00
James Read 7037baed38 Fix maintainers in chart lint 2024-10-03 09:34:34 +01:00
James Read 024bc3fe46 Add maintainers which is causing lint failures.
Add maintainers
2024-10-03 09:10:30 +01:00
James Read a0bf125273 Fixing lint failure with \n at end of file 2024-10-03 08:56:27 +01:00
James Read e69f46a89a Newline at end of values.yaml required 2024-10-03 08:54:09 +01:00
James Read 9935992ef0 Remove trailing \n to fix lint 2024-10-03 08:50:12 +01:00
Shane Lindsay cb93b32c18 Remove trailing space from description 2024-10-02 21:04:09 -07:00
Shane Lindsay 005d53cce7 Add configurable ingress, rename all files to .yaml for conformity. 2024-09-29 23:39:28 -07:00
11 changed files with 127 additions and 14 deletions
@@ -5,12 +5,12 @@ on:
branches: [ main ]
paths:
- 'charts/**'
- '.github/workflows/helm-chart-ci-cd.yml'
- '.github/workflows/helm-chart-ci-cd.yaml'
pull_request:
branches: [ main ]
paths:
- 'charts/**'
- '.github/workflows/helm-chart-ci-cd.yml'
- '.github/workflows/helm-chart-ci-cd.yaml'
release:
types: [created]
@@ -32,6 +32,10 @@ jobs:
with:
version: v3.14.4
- name: Install Chart deps
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Set up Python
uses: actions/setup-python@v5
with:
+26 -4
View File
@@ -50,6 +50,15 @@ The following table lists the configurable parameters of the Postiz chart and th
| `postgresql.auth.database` | PostgreSQL database | `postiz` |
| `redis.enabled` | Deploy Redis | `true` |
| `redis.auth.password` | Redis password | `postiz-redis-password` |
| `ingress.enabled` | Enable ingress controller resource | `false` |
| `ingress.className` | IngressClass that will be be used | `""` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.hosts` | Ingress hostnames | `[]` |
| `ingress.tls` | Ingress TLS configuration | `[]` |
| `ingress.path` | Path within the host | `/` |
| `ingress.pathType` | Ingress path type | `ImplementationSpecific` |
| `extraVolumes` | Additional volumes to mount | `[{"name": "uploads-volume", "emptyDir": {}}]` |
| `extraVolumeMounts` | Additional volume mounts to use | `[{"name": "uploads-volume", "mountPath": "/uploads"}]` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
@@ -61,13 +70,26 @@ $ helm install postiz-app \
The above command sets the PostgreSQL password to `secretpassword`.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,
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:
```bash
$ helm install postiz-app -f values.yaml postiz/postiz
```yaml
postgresql:
auth:
password: secretpassword
ingress:
enabled: true
hosts:
- host: postiz.example.com
```
> **Tip**: You can use the default [values.yaml](values.yaml)
Then, you can install the chart using the `-f` flag:
```bash
$ helm install postiz-app -f custom-values.yaml postiz/postiz
```
> **Tip**: You can use the default [values.yaml](values.yaml) as a starting point for your custom configuration.
## Persistence
+8 -1
View File
@@ -2,8 +2,15 @@ apiVersion: v2
name: postiz-app
description: A Social Media Scheduling App
type: application
version: 1.0.1
version: 1.0.4
appVersion: "1.3.0"
maintainers:
- name: jonathan-irvin
email: offendingcommit@gmail.com
url: https://linktr.ee/offendingcommit
- name: jamesread
email: contact@jread.com
url: http://jread.com
keywords:
- social media
- marketing
+15 -1
View File
@@ -35,8 +35,15 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 3000
containerPort: 5000
protocol: TCP
volumeMounts:
{{- if .Values.extraVolumeMounts }}
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- else }}
- name: uploads-volume
mountPath: /uploads
{{- end }}
envFrom:
- configMapRef:
name: {{ include "postiz.fullname" . }}-config
@@ -56,3 +63,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.extraVolumes }}
{{- toYaml .Values.extraVolumes | nindent 8 }}
{{- else }}
- name: uploads-volume
emptyDir: {}
{{- end }}
@@ -0,0 +1,44 @@
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "postiz.fullname" . }}
labels:
{{- include "postiz.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType }}
backend:
service:
name: {{ include "postiz.fullname" $ }}
port:
number: {{ .port }}
{{- end }}
{{- end }}
{{- if .Values.ingress.extraRules }}
{{- toYaml .Values.ingress.extraRules | nindent 4 }}
{{- end }}
{{- end }}
@@ -0,0 +1,12 @@
{{- if .Values.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "postiz.serviceAccountName" . }}
labels:
{{- include "postiz.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
+12 -2
View File
@@ -25,18 +25,28 @@ service:
port: 80
ingress:
enabled: false
enabled: false # Disabled by default
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
pathType: Prefix
port: 80
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
extraRules: []
resources: {}
extraVolumes: []
extraVolumeMounts: []
autoscaling:
enabled: false
minReplicas: 1