OpenCart--
This commit is contained in:
parent
7f18b0d761
commit
e9daccd840
@ -1,47 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: configmap-opencart-conf
|
||||
data:
|
||||
lighttpd.conf: |
|
||||
server.modules = (
|
||||
"mod_access",
|
||||
"mod_alias",
|
||||
"mod_auth",
|
||||
"mod_authn_file",
|
||||
"mod_compress",
|
||||
"mod_redirect",
|
||||
"mod_rewrite",
|
||||
)
|
||||
|
||||
server.document-root = "/var/www/html"
|
||||
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
|
||||
server.errorlog = "/var/log/lighttpd/error.log"
|
||||
server.pid-file = "/var/run/lighttpd.pid"
|
||||
server.username = "www-data"
|
||||
server.groupname = "www-data"
|
||||
server.port = 8080
|
||||
|
||||
auth.backend = "plain"
|
||||
auth.backend.plain.userfile = "/etc/lighttpd/.htpasswd"
|
||||
|
||||
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
|
||||
url.access-deny = ( "~", ".inc" )
|
||||
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
|
||||
|
||||
compress.cache-dir = "/var/cache/lighttpd/compress/"
|
||||
compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
|
||||
|
||||
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
|
||||
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
|
||||
include_shell "cat /etc/lighttpd/vhosts.d/*.conf"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: configmap-opencart-vhosts
|
||||
data:
|
||||
condo.oneup.town.conf: |
|
||||
$HTTP["host"] == "condo.oneup.town" {
|
||||
server.document-root = "/var/www/condo.oneup.town/"
|
||||
}
|
@ -1,157 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: opencart
|
||||
spec:
|
||||
ports:
|
||||
- protocol: TCP
|
||||
name: web
|
||||
port: 8080
|
||||
- protocol: TCP
|
||||
name: db
|
||||
port: 3306
|
||||
selector:
|
||||
app: opencart
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: opencart
|
||||
labels:
|
||||
app: opencart
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: opencart
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: opencart
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: bv11-cr01.bessems.eu/library/lighttpd-php-powershell
|
||||
ports:
|
||||
- name: web
|
||||
containerPort: 8080
|
||||
volumeMounts:
|
||||
- name: configmap-opencart-conf
|
||||
mountPath: /etc/lighttpd/lighttpd.conf
|
||||
subPath: lighttpd.conf
|
||||
- name: configmap-opencart-vhosts
|
||||
mountPath: /etc/lighttpd/vhosts.d
|
||||
- name: flexvolsmb-opencart-websites
|
||||
mountPath: /var/www/
|
||||
- name: db
|
||||
image: bv11-cr01.bessems.eu/proxy/library/mariadb:10.7
|
||||
args:
|
||||
- --innodb-flush-method=fsync
|
||||
securityContext:
|
||||
runAsUser: 999
|
||||
runAsGroup: 999
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: opencart-secret
|
||||
ports:
|
||||
- name: db
|
||||
containerPort: 3306
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
name: flexvolsmb-opencart-db
|
||||
volumes:
|
||||
- name: configmap-opencart-conf
|
||||
configMap:
|
||||
name: configmap-opencart-conf
|
||||
- name: configmap-opencart-vhosts
|
||||
configMap:
|
||||
name: configmap-opencart-vhosts
|
||||
- name: flexvolsmb-opencart-websites
|
||||
persistentVolumeClaim:
|
||||
claimName: flexvolsmb-opencart-websites
|
||||
- name: flexvolsmb-opencart-db
|
||||
persistentVolumeClaim:
|
||||
claimName: flexvolsmb-opencart-db
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: opencart
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`condo.oneup.town`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: opencart
|
||||
port: 8080
|
||||
middlewares:
|
||||
- name: security-headers@file
|
||||
- name: compression@file
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: flexvolsmb-opencart-websites
|
||||
spec:
|
||||
capacity:
|
||||
storage: 1Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: flexvolsmb-opencart-websites
|
||||
flexVolume:
|
||||
driver: mount/smb
|
||||
secretRef:
|
||||
name: smb-secret
|
||||
namespace: default
|
||||
options:
|
||||
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8
|
||||
server: 192.168.11.225
|
||||
share: /K3s.Volumes/opencart/websites
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: flexvolsmb-opencart-websites
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: flexvolsmb-opencart-websites
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: flexvolsmb-opencart-db
|
||||
spec:
|
||||
capacity:
|
||||
storage: 1Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: flexvolsmb-opencart-db
|
||||
flexVolume:
|
||||
driver: mount/smb
|
||||
secretRef:
|
||||
name: smb-secret
|
||||
namespace: default
|
||||
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/opencart/db
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: flexvolsmb-opencart-db
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: flexvolsmb-opencart-db
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
@ -1,26 +0,0 @@
|
||||
{
|
||||
"kind": "SealedSecret",
|
||||
"apiVersion": "bitnami.com/v1alpha1",
|
||||
"metadata": {
|
||||
"name": "opencart-secret",
|
||||
"namespace": "default",
|
||||
"creationTimestamp": null
|
||||
},
|
||||
"spec": {
|
||||
"template": {
|
||||
"metadata": {
|
||||
"name": "opencart-secret",
|
||||
"namespace": "default",
|
||||
"creationTimestamp": null
|
||||
},
|
||||
"type": "Opaque",
|
||||
"data": null
|
||||
},
|
||||
"encryptedData": {
|
||||
"MARIADB_DATABASE": "AgCbSUfNgr+RVtKWNlZ45X4akmEl9/cbASwyp2O5yjCipzhFOuHSY+b2dMdjHPAB3x+UqTKlYL99G74cgx1w5mOWIQI5JXMspbObqOOZo/6AQ7DuXini/XssvBeCHa8oT9DJsdjT/SO/dRfalDKX4KKWPs+Wk5l612zpjUMrPb6b9j2r5wyOrJu2E65CH1PxjbHciizP2cBOsRCAtL2Uo9AY7lXuFz0EweJ2zaGfVRF3oNl5AoCLLv57X67wqe0Lz+aNPJuogXHMZjMmf7rUHVcntow8YpPYYjN+R/AWd1Vwsv1ZOW07kZHaLooX2q+HJdQwvrnAOcg4EtGH3qWW6+IR8J8ylPFlrMk78eSHyqThTEGTm10zRDHFyHhi+DHpxpGCpAHVs9KBoEEyhZn2a86tDChXNaEIp/j2CzQY+61CC19OppLDqfV0AuS3HXHpQBpLTb6Md47jMko2Wt8GMHM+yPUH5H4SP5SU0cFyHHnfhVWL1Hh29a9bHqhsN1of8QSes6Gril3NzcMOKYpdI9rsrH0PxXHQ+RPUytQvgh87xW7ja0Fpq4jiTlFFLIv58Ctfh3ZlzCNnlf9kHnq3Zy4qz6wzwCeT2AbR/Ayit7UHuFHE5eXeCBkQrxxFXKMsjvAgsPlimRxt0jzm/q1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