244 lines
5.5 KiB
YAML
244 lines
5.5 KiB
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: humhub
|
||
|
spec:
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
name: web
|
||
|
port: 80
|
||
|
- protocol: TCP
|
||
|
name: db
|
||
|
port: 3306
|
||
|
- protocol: TCP
|
||
|
name: redis
|
||
|
port: 6379
|
||
|
selector:
|
||
|
app: humhub
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: humhub
|
||
|
labels:
|
||
|
app: humhub
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: humhub
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: humhub
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: web
|
||
|
image: bv11-cr01.bessems.eu/proxy/mriedmann/humhub:stable
|
||
|
command: ["/bin/sh"]
|
||
|
args:
|
||
|
- -c
|
||
|
- "sed -e '/\\[::\\]:80/d' -i /etc/nginx/nginx.conf;/docker-entrypoint.sh;supervisord -n -c /etc/supervisord.conf"
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: configmap-humhub
|
||
|
ports:
|
||
|
- name: web
|
||
|
containerPort: 80
|
||
|
volumeMounts:
|
||
|
- mountPath: /var/www/localhost/htdocs/protected/config
|
||
|
name: flexvolsmb-humhub-config
|
||
|
- mountPath: /var/www/localhost/htdocs/protected/modules
|
||
|
name: flexvolsmb-humhub-modules
|
||
|
- mountPath: /var/www/localhost/htdocs/uploads
|
||
|
name: flexvolsmb-humhub-uploads
|
||
|
- name: db
|
||
|
image: bv11-cr01.bessems.eu/proxy/library/mariadb:10.7
|
||
|
args:
|
||
|
- --innodb-flush-method=fsync
|
||
|
securityContext:
|
||
|
runAsUser: 999
|
||
|
runAsGroup: 999
|
||
|
env:
|
||
|
- name: MARIADB_RANDOM_ROOT_PASSWORD
|
||
|
value: 'true'
|
||
|
- name: MARIADB_DATABASE
|
||
|
value: humhub
|
||
|
- name: MARIADB_USER
|
||
|
value: humhub
|
||
|
- name: MARIADB_PASSWORD
|
||
|
value: humhub
|
||
|
ports:
|
||
|
- name: db
|
||
|
containerPort: 3306
|
||
|
volumeMounts:
|
||
|
- mountPath: /var/lib/mysql
|
||
|
name: flexvolsmb-humhub-db
|
||
|
- name: redis
|
||
|
image: bv11-cr01.bessems.eu/proxy/library/redis:alpine
|
||
|
env:
|
||
|
- name: REDIS_PASSWORD
|
||
|
value: humhub
|
||
|
ports:
|
||
|
- name: redis
|
||
|
containerPort: 6379
|
||
|
volumes:
|
||
|
- name: flexvolsmb-humhub-config
|
||
|
persistentVolumeClaim:
|
||
|
claimName: flexvolsmb-humhub-config
|
||
|
- name: flexvolsmb-humhub-modules
|
||
|
persistentVolumeClaim:
|
||
|
claimName: flexvolsmb-humhub-modules
|
||
|
- name: flexvolsmb-humhub-uploads
|
||
|
persistentVolumeClaim:
|
||
|
claimName: flexvolsmb-humhub-uploads
|
||
|
- name: flexvolsmb-humhub-db
|
||
|
persistentVolumeClaim:
|
||
|
claimName: flexvolsmb-humhub-db
|
||
|
---
|
||
|
apiVersion: traefik.containo.us/v1alpha1
|
||
|
kind: IngressRoute
|
||
|
metadata:
|
||
|
name: humhub
|
||
|
spec:
|
||
|
entryPoints:
|
||
|
- websecure
|
||
|
routes:
|
||
|
- match: Host(`st.itch.fyi`)
|
||
|
kind: Rule
|
||
|
services:
|
||
|
- name: humhub
|
||
|
port: 80
|
||
|
middlewares:
|
||
|
- name: security-headers@file
|
||
|
- name: compression@file
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolume
|
||
|
metadata:
|
||
|
name: flexvolsmb-humhub-db
|
||
|
spec:
|
||
|
capacity:
|
||
|
storage: 1Gi
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
storageClassName: flexvolsmb-humhub-db
|
||
|
flexVolume:
|
||
|
driver: mount/smb
|
||
|
secretRef:
|
||
|
name: smb-secret
|
||
|
options:
|
||
|
opts: domain=bessems.eu,file_mode=0755,dir_mode=0755,uid=999,gid=999,iocharset=utf8,nobrl
|
||
|
server: 192.168.11.225
|
||
|
share: /K3s.Volumes/humhub/db
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: flexvolsmb-humhub-db
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
storageClassName: flexvolsmb-humhub-db
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 1Gi
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolume
|
||
|
metadata:
|
||
|
name: flexvolsmb-humhub-config
|
||
|
spec:
|
||
|
capacity:
|
||
|
storage: 1Gi
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
storageClassName: flexvolsmb-humhub-config
|
||
|
flexVolume:
|
||
|
driver: mount/smb
|
||
|
secretRef:
|
||
|
name: smb-secret
|
||
|
options:
|
||
|
opts: domain=bessems.eu,file_mode=0755,dir_mode=0755,uid=100,gid=101,iocharset=utf8
|
||
|
server: 192.168.11.225
|
||
|
share: /K3s.Volumes/humhub/config
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: flexvolsmb-humhub-config
|
||
|
namespace: default
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
storageClassName: flexvolsmb-humhub-config
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 1Gi
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolume
|
||
|
metadata:
|
||
|
name: flexvolsmb-humhub-modules
|
||
|
spec:
|
||
|
capacity:
|
||
|
storage: 1Gi
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
storageClassName: flexvolsmb-humhub-modules
|
||
|
flexVolume:
|
||
|
driver: mount/smb
|
||
|
secretRef:
|
||
|
name: smb-secret
|
||
|
options:
|
||
|
opts: domain=bessems.eu,file_mode=0755,dir_mode=0755,uid=100,gid=101,iocharset=utf8
|
||
|
server: 192.168.11.225
|
||
|
share: /K3s.Volumes/humhub/modules
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: flexvolsmb-humhub-modules
|
||
|
namespace: default
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
storageClassName: flexvolsmb-humhub-modules
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 1Gi
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolume
|
||
|
metadata:
|
||
|
name: flexvolsmb-humhub-uploads
|
||
|
spec:
|
||
|
capacity:
|
||
|
storage: 1Gi
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
storageClassName: flexvolsmb-humhub-uploads
|
||
|
flexVolume:
|
||
|
driver: mount/smb
|
||
|
secretRef:
|
||
|
name: smb-secret
|
||
|
options:
|
||
|
opts: domain=bessems.eu,file_mode=0755,dir_mode=0755,uid=100,gid=101,iocharset=utf8
|
||
|
server: 192.168.11.225
|
||
|
share: /K3s.Volumes/humhub/uploads
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: flexvolsmb-humhub-uploads
|
||
|
namespace: default
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
storageClassName: flexvolsmb-humhub-uploads
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 1Gi
|