Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d6a9de2d5 | |||
| 24fcde5f2e | |||
| f09e2ff4fe | |||
| fc3d9c0910 | |||
| 466cff4aa1 | |||
| b5ebad80c8 | |||
| 465e817e22 | |||
| 36c0e0a733 | |||
| 80f4cf1e3f | |||
| 0450089618 | |||
| 75414d80a9 | |||
| 7037baed38 | |||
| 024bc3fe46 | |||
| a0bf125273 | |||
| e69f46a89a | |||
| 9935992ef0 | |||
| cb93b32c18 | |||
| 005d53cce7 |
@@ -5,12 +5,12 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
paths:
|
||||||
- 'charts/**'
|
- 'charts/**'
|
||||||
- '.github/workflows/helm-chart-ci-cd.yml'
|
- '.github/workflows/helm-chart-ci-cd.yaml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths:
|
paths:
|
||||||
- 'charts/**'
|
- 'charts/**'
|
||||||
- '.github/workflows/helm-chart-ci-cd.yml'
|
- '.github/workflows/helm-chart-ci-cd.yaml'
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
@@ -32,6 +32,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: v3.14.4
|
version: v3.14.4
|
||||||
|
|
||||||
|
- name: Install Chart deps
|
||||||
|
run: |
|
||||||
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
@@ -50,6 +50,15 @@ The following table lists the configurable parameters of the Postiz chart and th
|
|||||||
| `postgresql.auth.database` | PostgreSQL database | `postiz` |
|
| `postgresql.auth.database` | PostgreSQL database | `postiz` |
|
||||||
| `redis.enabled` | Deploy Redis | `true` |
|
| `redis.enabled` | Deploy Redis | `true` |
|
||||||
| `redis.auth.password` | Redis password | `postiz-redis-password` |
|
| `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,
|
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`.
|
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
|
```yaml
|
||||||
$ helm install postiz-app -f values.yaml postiz/postiz
|
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
|
## Persistence
|
||||||
|
|
||||||
@@ -95,4 +117,4 @@ We welcome contributions to this chart. Please read our [Contributing Guide](CON
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This chart is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.
|
This chart is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.
|
||||||
@@ -1,9 +1,16 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postiz-app
|
name: postiz-app
|
||||||
description: A Social Media Scheduling App
|
description: A Social Media Scheduling App
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.1
|
version: 1.0.5
|
||||||
appVersion: "1.3.0"
|
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:
|
keywords:
|
||||||
- social media
|
- social media
|
||||||
- marketing
|
- marketing
|
||||||
|
|||||||
@@ -35,8 +35,15 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 3000
|
containerPort: 5000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
{{- if .Values.extraVolumeMounts }}
|
||||||
|
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
|
||||||
|
{{- else }}
|
||||||
|
- name: uploads-volume
|
||||||
|
mountPath: /uploads
|
||||||
|
{{- end }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "postiz.fullname" . }}-config
|
name: {{ include "postiz.fullname" . }}-config
|
||||||
@@ -44,6 +51,9 @@ spec:
|
|||||||
name: {{ include "postiz.fullname" . }}-secrets
|
name: {{ include "postiz.fullname" . }}-secrets
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
{{- if .Values.extraContainers }}
|
||||||
|
{{- toYaml .Values.extraContainers | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@@ -55,4 +65,11 @@ spec:
|
|||||||
{{- with .Values.tolerations }}
|
{{- with .Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- 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 }}
|
||||||
+4
-1
@@ -11,5 +11,8 @@ spec:
|
|||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
|
{{- if .Values.service.additionalPorts }}
|
||||||
|
{{- toYaml .Values.service.additionalPorts | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
{{- include "postiz.selectorLabels" . | nindent 4 }}
|
{{- include "postiz.selectorLabels" . | nindent 4 }}
|
||||||
@@ -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 }}
|
||||||
@@ -23,20 +23,33 @@ securityContext: {}
|
|||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
additionalPorts: []
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false # Disabled by default
|
||||||
className: ""
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
# kubernetes.io/ingress.class: nginx
|
||||||
|
# kubernetes.io/tls-acme: "true"
|
||||||
hosts:
|
hosts:
|
||||||
- host: chart-example.local
|
- host: chart-example.local
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: Prefix
|
||||||
|
port: 80
|
||||||
tls: []
|
tls: []
|
||||||
|
# - secretName: chart-example-tls
|
||||||
|
# hosts:
|
||||||
|
# - chart-example.local
|
||||||
|
extraRules: []
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
|
|
||||||
|
extraContainers: []
|
||||||
|
|
||||||
|
extraVolumes: []
|
||||||
|
extraVolumeMounts: []
|
||||||
|
|
||||||
autoscaling:
|
autoscaling:
|
||||||
enabled: false
|
enabled: false
|
||||||
minReplicas: 1
|
minReplicas: 1
|
||||||
@@ -98,4 +111,4 @@ secrets:
|
|||||||
CLOUDFLARE_ACCESS_KEY: ""
|
CLOUDFLARE_ACCESS_KEY: ""
|
||||||
CLOUDFLARE_SECRET_ACCESS_KEY: ""
|
CLOUDFLARE_SECRET_ACCESS_KEY: ""
|
||||||
CLOUDFLARE_BUCKETNAME: ""
|
CLOUDFLARE_BUCKETNAME: ""
|
||||||
CLOUDFLARE_BUCKET_URL: ""
|
CLOUDFLARE_BUCKET_URL: ""
|
||||||
|
|||||||
Reference in New Issue
Block a user