.
This commit is contained in:
137
forum/phpbb.yaml
137
forum/phpbb.yaml
@@ -1,35 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: config
|
||||
namespace: forum
|
||||
data:
|
||||
config.php: |
|
||||
<?php
|
||||
// phpBB 3.3.x auto-generated configuration file
|
||||
// Do not change anything in this file!
|
||||
$dbms = 'phpbb\\db\\driver\\mysqli';
|
||||
$dbhost = 'db';
|
||||
$dbport = '3306';
|
||||
$dbname = 'phpbb';
|
||||
$dbuser = 'phpbb';
|
||||
$dbpasswd = 'phpbbUserDBPW';
|
||||
$table_prefix = 'phpbb_';
|
||||
$phpbb_adm_relative_path = 'adm/';
|
||||
$acm_type = 'phpbb\\cache\\driver\\file';
|
||||
|
||||
@define('PHPBB_INSTALLED', true);
|
||||
@define('PHPBB_ENVIRONMENT', 'production');
|
||||
// @define('DEBUG_CONTAINER', true);
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: data
|
||||
namespace: forum
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 16Gi
|
||||
@@ -53,65 +29,44 @@ spec:
|
||||
app: phpbb
|
||||
spec:
|
||||
securityContext:
|
||||
# runAsUser: 1000
|
||||
# runAsGroup: 1000
|
||||
fsGroup: 1001
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- name: phpbb
|
||||
image: bitnami/phpbb:3.3.10
|
||||
imagePullPolicy: IfNotPresent
|
||||
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
- containerPort: 8443
|
||||
env:
|
||||
- name: ALLOW_EMPTY_PASSWORD
|
||||
value: "yes"
|
||||
- name: PHPBB_DISABLE_SESSION_VALIDATION
|
||||
value: "true"
|
||||
- name: PHPBB_DATABASE_HOST
|
||||
value: "db"
|
||||
- name: PHPBB_DATABASE_PORT_NUMBER
|
||||
value: "3306"
|
||||
- name: PHPBB_USERNAME
|
||||
value: "admin"
|
||||
- name: PHPBB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: forum-phpbb-user
|
||||
key: pw
|
||||
optional: false
|
||||
- name: PHPBB_DATABASE_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: forum-db
|
||||
key: username
|
||||
optional: false
|
||||
- name: PHPBB_DATABASE_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: forum-db
|
||||
key: user.pw
|
||||
optional: false
|
||||
- name: PHPBB_DATABASE_NAME
|
||||
value: "phpbb"
|
||||
volumeMounts:
|
||||
- mountPath: "/bitnami/phpbb"
|
||||
name: data
|
||||
- mountPath: /bitnami/phpbb/config.php
|
||||
name: config
|
||||
subPath: config.php
|
||||
- name: phpbb
|
||||
image: ghcr.io/linuxserver/phpbb:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: TZ
|
||||
value: "Europe/Berlin"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /config
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 6
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 6
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: data
|
||||
- name: config
|
||||
configMap:
|
||||
name: config
|
||||
defaultMode: 0777
|
||||
items:
|
||||
- key: "config.php"
|
||||
path: "config.php"
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: data
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -123,19 +78,15 @@ metadata:
|
||||
spec:
|
||||
internalTrafficPolicy: Cluster
|
||||
ipFamilies:
|
||||
- IPv6
|
||||
- IPv4
|
||||
- IPv6
|
||||
- IPv4
|
||||
ipFamilyPolicy: PreferDualStack
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
- name: https
|
||||
port: 443
|
||||
protocol: TCP
|
||||
targetPort: 8443
|
||||
- name: http
|
||||
port: 80
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
selector:
|
||||
app: phpbb
|
||||
sessionAffinity: None
|
||||
type: ClusterIP
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user