Fix up invoiceninja

This commit is contained in:
Finn 2024-07-27 20:34:07 -07:00
parent f168943def
commit efad4cf7f3
4 changed files with 16 additions and 8 deletions

View file

@ -21,14 +21,12 @@ spec:
selector: selector:
matchLabels: matchLabels:
app: mysql app: mysql
app.kubernetes.io/name: mysql
serviceName: mysql serviceName: mysql
replicas: 1 replicas: 1
template: template:
metadata: metadata:
labels: labels:
app: mysql app: mysql
app.kubernetes.io/name: mysql
spec: spec:
containers: containers:
- name: mysql - name: mysql
@ -53,7 +51,7 @@ spec:
resources: resources:
requests: requests:
cpu: 500m cpu: 500m
memory: 1Gi memory: 500Mi
livenessProbe: livenessProbe:
exec: exec:
command: ["mysqladmin", "ping"] command: ["mysqladmin", "ping"]

View file

@ -5,7 +5,7 @@ metadata:
namespace: invoiceninja namespace: invoiceninja
spec: spec:
rules: rules:
- host: invoice-ninja.home.finn.io - host: billing.janky.solutions
http: http:
paths: paths:
- path: / - path: /

View file

@ -26,6 +26,9 @@ spec:
labels: labels:
app: invoiceninja app: invoiceninja
spec: spec:
securityContext:
fsGroup: 1500
fsGroupChangePolicy: "OnRootMismatch"
containers: containers:
- image: docker.io/invoiceninja/invoiceninja - image: docker.io/invoiceninja/invoiceninja
name: invoiceninja name: invoiceninja
@ -40,7 +43,7 @@ spec:
name: invoiceninja name: invoiceninja
env: env:
- name: APP_URL - name: APP_URL
value: https://invoice-ninja.home.finn.io/ value: https://billing.janky.solutions/
- name: APP_DEBUG - name: APP_DEBUG
value: "true" value: "true"
- name: REQUIRE_HTTPS - name: REQUIRE_HTTPS
@ -81,8 +84,6 @@ spec:
- name: nginx-config - name: nginx-config
mountPath: /etc/nginx/conf.d mountPath: /etc/nginx/conf.d
volumes: volumes:
- name: public
emptyDir: {}
- name: nginx-config - name: nginx-config
configMap: configMap:
name: nginx-config name: nginx-config
@ -93,7 +94,14 @@ spec:
accessModes: ["ReadWriteOnce"] accessModes: ["ReadWriteOnce"]
resources: resources:
requests: requests:
storage: 10Gi storage: 1Gi
- metadata:
name: public
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
@ -131,6 +139,7 @@ data:
fastcgi_index index.php; fastcgi_index index.php;
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS on;
fastcgi_intercept_errors off; fastcgi_intercept_errors off;
fastcgi_buffer_size 16k; fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k; fastcgi_buffers 4 16k;

View file

@ -6,3 +6,4 @@ resources:
- database.yaml - database.yaml
- ingress.yaml - ingress.yaml
- invoiceninja.yaml - invoiceninja.yaml
- secrets.yaml