2020-09-01 15:44:43 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: adminer
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
name: web
|
|
|
|
port: 8080
|
|
|
|
selector:
|
|
|
|
app: adminer
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: adminer
|
|
|
|
labels:
|
|
|
|
app: adminer
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: adminer
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: adminer
|
|
|
|
spec:
|
|
|
|
serviceAccountName: adminer
|
|
|
|
containers:
|
|
|
|
- name: adminer
|
2020-12-04 08:41:15 +00:00
|
|
|
image: bv11-cr01.bessems.eu/proxy/library/adminer
|
2022-03-14 08:56:36 +00:00
|
|
|
args:
|
|
|
|
- '-S'
|
|
|
|
- '0.0.0.0:8080'
|
|
|
|
- '-t'
|
|
|
|
- '/var/www/html'
|
2021-06-14 14:27:19 +00:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: adminer-secret
|
2020-09-01 15:44:43 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 8080
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /mnt/websites
|
|
|
|
name: flexvolsmb-adminer-websites
|
|
|
|
- name: configmap-adminer-conf
|
|
|
|
mountPath: /var/www/html/plugins-enabled/login-password-less.php
|
|
|
|
subPath: login-password-less.php
|
|
|
|
volumes:
|
|
|
|
- name: flexvolsmb-adminer-websites
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: flexvolsmb-adminer-websites
|
|
|
|
- name: configmap-adminer-conf
|
|
|
|
configMap:
|
|
|
|
name: configmap-adminer-conf
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
name: adminer
|
|
|
|
labels:
|
|
|
|
app: adminer
|
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: adminer
|
|
|
|
spec:
|
|
|
|
entryPoints:
|
|
|
|
- websecure
|
|
|
|
routes:
|
|
|
|
- match: Host(`sql.spamasaurus.com`)
|
|
|
|
kind: Rule
|
|
|
|
services:
|
|
|
|
- name: adminer
|
|
|
|
port: 8080
|
|
|
|
middlewares:
|
|
|
|
- name: 2fa-authentication@file
|
|
|
|
- name: security-headers@file
|
2020-10-13 07:47:39 +00:00
|
|
|
- name: compression@file
|
2020-09-01 15:44:43 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-adminer-websites
|
|
|
|
spec:
|
|
|
|
capacity:
|
|
|
|
storage: 1Gi
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-adminer-websites
|
|
|
|
flexVolume:
|
|
|
|
driver: mount/smb
|
|
|
|
secretRef:
|
|
|
|
name: smb-secret
|
|
|
|
options:
|
|
|
|
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8,nobrl
|
|
|
|
server: 192.168.11.225
|
|
|
|
share: /K3s.Volumes/lighttpd/websites
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-adminer-websites
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-adminer-websites
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 1Gi
|