Store WIP services for safekeeping
This commit is contained in:
29
services/_archived/Humhub/configMap-Humhub.yml
Normal file
29
services/_archived/Humhub/configMap-Humhub.yml
Normal file
@ -0,0 +1,29 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: configmap-humhub
|
||||
data:
|
||||
HUMHUB_DB_USER: humhub
|
||||
HUMHUB_DB_PASSWORD: humhub
|
||||
HUMHUB_DB_HOST: humhub.default.svc.cluster.local
|
||||
HUMHUB_DB_NAME: humhub
|
||||
HUMHUB_AUTO_INSTALL: '1'
|
||||
HUMHUB_PROTO: https
|
||||
HUMHUB_HOST: st.itch.fyi
|
||||
HUMHUB_MAILER_SYSTEM_EMAIL_ADDRESS: noreply@st.itch.fyi
|
||||
HUMHUB_MAILER_SYSTEM_EMAIL_NAME: St.itch
|
||||
HUMHUB_MAILER_TRANSPORT_TYPE: smtp
|
||||
HUMHUB_MAILER_HOSTNAME: smtp.sendgrid.net
|
||||
HUMHUB_MAILER_PORT: '587'
|
||||
HUMHUB_MAILER_USERNAME: apikey
|
||||
HUMHUB_MAILER_PASSWORD: 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
|
||||
HUMHUB_CACHE_EXPIRE_TIME: '3600'
|
||||
HUMHUB_CACHE_CLASS: yii\redis\Cache
|
||||
HUMHUB_QUEUE_CLASS: humhub\modules\queue\driver\Redis
|
||||
HUMHUB_REDIS_HOSTNAME: humhub.default.svc.cluster.local
|
||||
HUMHUB_REDIS_PORT: '6379'
|
||||
HUMHUB_REDIS_PASSWORD: humhub
|
||||
# Settings for max filesize; should probably be more conservative
|
||||
PHP_UPLOAD_MAX_FILESIZE: 25M
|
||||
PHP_POST_MAX_SIZE: 250M
|
||||
NGINX_CLIENT_MAX_BODY_SIZE: 250M
|
243
services/_archived/Humhub/deploy-HumHub.yml
Normal file
243
services/_archived/Humhub/deploy-HumHub.yml
Normal file
@ -0,0 +1,243 @@
|
||||
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
|
Reference in New Issue
Block a user