Adds eventyay app.
This commit is contained in:
5
eventyay/app.yaml
Normal file
5
eventyay/app.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
name: eventyay
|
||||||
|
is: eventyay
|
||||||
|
description: Eventyay is an open-source event management platform covering ticketing, registration, speaker and session management, scheduling, video, and attendee check-in.
|
||||||
|
icon: https://raw.githubusercontent.com/fossasia/eventyay/main/app/eventyay/static/common/img/logo.svg
|
||||||
|
latest: "1"
|
||||||
41
eventyay/versions/1/README.md
Normal file
41
eventyay/versions/1/README.md
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# Eventyay
|
||||||
|
|
||||||
|
Eventyay is an open-source event management platform supporting ticketing, schedules, and attendee management, developed by FOSSASIA.
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
- **PostgreSQL** - Database for storing events and registrations
|
||||||
|
- **Redis** - Used for caching and background jobs
|
||||||
|
- **SMTP** - For sending tickets and notifications
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
Key settings in `config.yaml`:
|
||||||
|
|
||||||
|
- **domain** - Where Eventyay will be accessible
|
||||||
|
- **storage** - Persistent volume size (default: `2Gi`)
|
||||||
|
- **timezone** - Default timezone for events (default: `UTC`)
|
||||||
|
- **smtp** - Email settings inherited from your Wild Cloud SMTP service
|
||||||
|
|
||||||
|
## First-Time Setup
|
||||||
|
|
||||||
|
1. Add and deploy the app:
|
||||||
|
```bash
|
||||||
|
wild app add eventyay
|
||||||
|
wild app deploy eventyay
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Create the superuser account:
|
||||||
|
```bash
|
||||||
|
kubectl exec -n eventyay deploy/eventyay -- python manage.py createsuperuser
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Log in at `/orga/login/` with the credentials you just created.
|
||||||
|
|
||||||
|
4. Create an organizer team, then create your first event.
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
- This package tracks the upstream `main` branch — no versioned Docker tags are available from the Eventyay project
|
||||||
|
- The Django secret is auto-generated in `secrets.yaml`
|
||||||
|
- Eventyay is a fork of pretix with additional features for open-source community events
|
||||||
63
eventyay/versions/1/db-init-job.yaml
Normal file
63
eventyay/versions/1/db-init-job.yaml
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
apiVersion: batch/v1
|
||||||
|
kind: Job
|
||||||
|
metadata:
|
||||||
|
name: eventyay-db-init
|
||||||
|
labels:
|
||||||
|
component: db-init
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
component: db-init
|
||||||
|
spec:
|
||||||
|
restartPolicy: OnFailure
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 999
|
||||||
|
runAsGroup: 999
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
containers:
|
||||||
|
- name: db-init
|
||||||
|
image: postgres:17
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
command: ["/bin/bash", "-c"]
|
||||||
|
args:
|
||||||
|
- |
|
||||||
|
PGPASSWORD=${POSTGRES_ADMIN_PASSWORD} psql -h ${DB_HOSTNAME} -U postgres <<EOF
|
||||||
|
DO \$\$
|
||||||
|
BEGIN
|
||||||
|
IF NOT EXISTS (SELECT FROM pg_catalog.pg_roles WHERE rolname = '${DB_USER}') THEN
|
||||||
|
CREATE USER ${DB_USER} WITH ENCRYPTED PASSWORD '${DB_PASSWORD}';
|
||||||
|
ELSE
|
||||||
|
ALTER USER ${DB_USER} WITH ENCRYPTED PASSWORD '${DB_PASSWORD}';
|
||||||
|
END IF;
|
||||||
|
END
|
||||||
|
\$\$;
|
||||||
|
|
||||||
|
SELECT 'CREATE DATABASE ${DB_NAME}' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = '${DB_NAME}')\gexec
|
||||||
|
ALTER DATABASE ${DB_NAME} OWNER TO ${DB_USER};
|
||||||
|
GRANT ALL PRIVILEGES ON DATABASE ${DB_NAME} TO ${DB_USER};
|
||||||
|
EOF
|
||||||
|
env:
|
||||||
|
- name: POSTGRES_ADMIN_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: postgres-secrets
|
||||||
|
key: password
|
||||||
|
- name: DB_HOSTNAME
|
||||||
|
value: "{{ .db.host }}"
|
||||||
|
- name: DB_NAME
|
||||||
|
value: "{{ .db.name }}"
|
||||||
|
- name: DB_USER
|
||||||
|
value: "{{ .db.user }}"
|
||||||
|
- name: DB_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: dbPassword
|
||||||
245
eventyay/versions/1/deployment.yaml
Normal file
245
eventyay/versions/1/deployment.yaml
Normal file
@@ -0,0 +1,245 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: eventyay-web
|
||||||
|
namespace: {{ .namespace }}
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
component: web
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
component: web
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
fsGroup: 1000
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
containers:
|
||||||
|
- name: eventyay
|
||||||
|
image: eventyay/eventyay-next:main
|
||||||
|
args: ["gunicorn", "eventyay.config.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2", "--timeout", "120"]
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
env:
|
||||||
|
- name: EVY_DEBUG
|
||||||
|
value: "0"
|
||||||
|
- name: EVY_RUNNING_ENVIRONMENT
|
||||||
|
value: "production"
|
||||||
|
- name: EVY_SITE_URL
|
||||||
|
value: "https://{{ .domain }}"
|
||||||
|
- name: EVY_TALK_HOSTNAME
|
||||||
|
value: "https://{{ .domain }}"
|
||||||
|
- name: EVY_ALLOWED_HOSTS
|
||||||
|
value: '["{{ .domain }}"]'
|
||||||
|
- name: EVY_SECRET_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: djangoSecret
|
||||||
|
- name: EVY_POSTGRES_DB
|
||||||
|
value: "{{ .db.name }}"
|
||||||
|
- name: EVY_POSTGRES_USER
|
||||||
|
value: "{{ .db.user }}"
|
||||||
|
- name: EVY_POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: dbPassword
|
||||||
|
- name: EVY_POSTGRES_HOST
|
||||||
|
value: "{{ .db.host }}"
|
||||||
|
- name: EVY_POSTGRES_PORT
|
||||||
|
value: "{{ .db.port }}"
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: "{{ .db.name }}"
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: "{{ .db.user }}"
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: dbPassword
|
||||||
|
- name: POSTGRES_HOST
|
||||||
|
value: "{{ .db.host }}"
|
||||||
|
- name: POSTGRES_PORT
|
||||||
|
value: "{{ .db.port }}"
|
||||||
|
- name: REDIS_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: redis.password
|
||||||
|
- name: EVY_REDIS_URL
|
||||||
|
value: "redis://:$(REDIS_PASSWORD)@{{ .redis.host }}:{{ .redis.port }}/0"
|
||||||
|
- name: EVY_EMAIL_BACKEND
|
||||||
|
value: "django.core.mail.backends.smtp.EmailBackend"
|
||||||
|
- name: EVY_EMAIL_HOST
|
||||||
|
value: "{{ .smtp.host }}"
|
||||||
|
- name: EVY_EMAIL_PORT
|
||||||
|
value: "{{ .smtp.port }}"
|
||||||
|
- name: EVY_DEFAULT_FROM_EMAIL
|
||||||
|
value: "{{ .smtp.from }}"
|
||||||
|
- name: EVY_EMAIL_HOST_USER
|
||||||
|
value: "{{ .smtp.user }}"
|
||||||
|
- name: EVY_EMAIL_HOST_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: smtp.password
|
||||||
|
- name: EVY_EMAIL_USE_TLS
|
||||||
|
value: "1"
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "2"
|
||||||
|
ephemeral-storage: 2Gi
|
||||||
|
memory: 1Gi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
ephemeral-storage: 100Mi
|
||||||
|
memory: 256Mi
|
||||||
|
volumeMounts:
|
||||||
|
- name: eventyay-data
|
||||||
|
mountPath: /data
|
||||||
|
- name: eventyay-static
|
||||||
|
mountPath: /home/app/web/eventyay/static.dist
|
||||||
|
- name: eventyay-gunicorn
|
||||||
|
mountPath: /home/app/.gunicorn
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 8000
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "{{ .domain }}"
|
||||||
|
initialDelaySeconds: 120
|
||||||
|
timeoutSeconds: 10
|
||||||
|
periodSeconds: 30
|
||||||
|
failureThreshold: 6
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 8000
|
||||||
|
httpHeaders:
|
||||||
|
- name: Host
|
||||||
|
value: "{{ .domain }}"
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
timeoutSeconds: 5
|
||||||
|
periodSeconds: 15
|
||||||
|
failureThreshold: 3
|
||||||
|
volumes:
|
||||||
|
- name: eventyay-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: eventyay-data
|
||||||
|
- name: eventyay-static
|
||||||
|
emptyDir: {}
|
||||||
|
- name: eventyay-gunicorn
|
||||||
|
emptyDir: {}
|
||||||
|
restartPolicy: Always
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: eventyay-worker
|
||||||
|
namespace: {{ .namespace }}
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
component: worker
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
component: worker
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
fsGroup: 1000
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
containers:
|
||||||
|
- name: eventyay-worker
|
||||||
|
image: eventyay/eventyay-next:main
|
||||||
|
command: ["celery", "-A", "eventyay", "worker", "-l", "info"]
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
env:
|
||||||
|
- name: EVY_DEBUG
|
||||||
|
value: "0"
|
||||||
|
- name: EVY_RUNNING_ENVIRONMENT
|
||||||
|
value: "production"
|
||||||
|
- name: EVY_SITE_URL
|
||||||
|
value: "https://{{ .domain }}"
|
||||||
|
- name: EVY_SECRET_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: djangoSecret
|
||||||
|
- name: EVY_POSTGRES_DB
|
||||||
|
value: "{{ .db.name }}"
|
||||||
|
- name: EVY_POSTGRES_USER
|
||||||
|
value: "{{ .db.user }}"
|
||||||
|
- name: EVY_POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: dbPassword
|
||||||
|
- name: EVY_POSTGRES_HOST
|
||||||
|
value: "{{ .db.host }}"
|
||||||
|
- name: EVY_POSTGRES_PORT
|
||||||
|
value: "{{ .db.port }}"
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: "{{ .db.name }}"
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: "{{ .db.user }}"
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: dbPassword
|
||||||
|
- name: POSTGRES_HOST
|
||||||
|
value: "{{ .db.host }}"
|
||||||
|
- name: POSTGRES_PORT
|
||||||
|
value: "{{ .db.port }}"
|
||||||
|
- name: REDIS_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: eventyay-secrets
|
||||||
|
key: redis.password
|
||||||
|
- name: EVY_REDIS_URL
|
||||||
|
value: "redis://:$(REDIS_PASSWORD)@{{ .redis.host }}:{{ .redis.port }}/0"
|
||||||
|
- name: MPLCONFIGDIR
|
||||||
|
value: "/tmp/matplotlib"
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "2"
|
||||||
|
ephemeral-storage: 1Gi
|
||||||
|
memory: 1Gi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
ephemeral-storage: 50Mi
|
||||||
|
memory: 512Mi
|
||||||
|
restartPolicy: Always
|
||||||
26
eventyay/versions/1/ingress.yaml
Normal file
26
eventyay/versions/1/ingress.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: eventyay
|
||||||
|
namespace: {{ .namespace }}
|
||||||
|
annotations:
|
||||||
|
external-dns.alpha.kubernetes.io/target: {{ .externalDnsDomain }}
|
||||||
|
external-dns.alpha.kubernetes.io/cloudflare-proxied: "false"
|
||||||
|
external-dns.alpha.kubernetes.io/ttl: "60"
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: {{ .domain }}
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: eventyay
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- {{ .domain }}
|
||||||
|
secretName: {{ .tlsSecretName }}
|
||||||
16
eventyay/versions/1/kustomization.yaml
Normal file
16
eventyay/versions/1/kustomization.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: {{ .namespace }}
|
||||||
|
labels:
|
||||||
|
- includeSelectors: true
|
||||||
|
pairs:
|
||||||
|
app: eventyay
|
||||||
|
managedBy: kustomize
|
||||||
|
partOf: wild-cloud
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- db-init-job.yaml
|
||||||
32
eventyay/versions/1/manifest.yaml
Normal file
32
eventyay/versions/1/manifest.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
version: main-2
|
||||||
|
requires:
|
||||||
|
- name: postgres
|
||||||
|
- name: redis
|
||||||
|
- name: smtp
|
||||||
|
defaultConfig:
|
||||||
|
namespace: eventyay
|
||||||
|
externalDnsDomain: '{{ .cloud.domain }}'
|
||||||
|
domain: eventyay.{{ .cloud.domain }}
|
||||||
|
tlsSecretName: wildcard-wild-cloud-tls
|
||||||
|
storage: 2Gi
|
||||||
|
timezone: UTC
|
||||||
|
db:
|
||||||
|
host: '{{ .apps.postgres.host }}'
|
||||||
|
port: '{{ .apps.postgres.port }}'
|
||||||
|
name: eventyay
|
||||||
|
user: eventyay
|
||||||
|
redis:
|
||||||
|
host: '{{ .apps.redis.host }}'
|
||||||
|
port: '{{ .apps.redis.port }}'
|
||||||
|
smtp:
|
||||||
|
host: '{{ .apps.smtp.host }}'
|
||||||
|
port: '{{ .apps.smtp.port }}'
|
||||||
|
from: '{{ .apps.smtp.from }}'
|
||||||
|
user: '{{ .apps.smtp.user }}'
|
||||||
|
defaultSecrets:
|
||||||
|
- key: dbPassword
|
||||||
|
- key: djangoSecret
|
||||||
|
requiredSecrets:
|
||||||
|
- postgres.password
|
||||||
|
- redis.password
|
||||||
|
- smtp.password
|
||||||
4
eventyay/versions/1/namespace.yaml
Normal file
4
eventyay/versions/1/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: {{ .namespace }}
|
||||||
11
eventyay/versions/1/pvc.yaml
Normal file
11
eventyay/versions/1/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: eventyay-data
|
||||||
|
namespace: {{ .namespace }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .storage }}
|
||||||
13
eventyay/versions/1/service.yaml
Normal file
13
eventyay/versions/1/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: eventyay
|
||||||
|
namespace: {{ .namespace }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
component: web
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: 8000
|
||||||
|
protocol: TCP
|
||||||
Reference in New Issue
Block a user