refactor some names, manifests
This commit is contained in:
parent
4042d8dfe3
commit
0b0cf0f272
|
|
@ -42,28 +42,3 @@ spec:
|
||||||
- name: firefly-data
|
- name: firefly-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: firefly-data
|
claimName: firefly-data
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: firefly-data
|
|
||||||
namespace: firefly
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: ceph-rbd
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: firefly
|
|
||||||
namespace: firefly
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 8080
|
|
||||||
selector:
|
|
||||||
app: firefly
|
|
||||||
|
|
@ -1,83 +0,0 @@
|
||||||
***REMOVED***
|
|
||||||
***REMOVED***
|
|
||||||
***REMOVED***
|
|
||||||
name: firefly-secret
|
|
||||||
namespace: firefly
|
|
||||||
***REMOVED***
|
|
||||||
***REMOVED***
|
|
||||||
APP_KEY: RIJCNjIgmM+46tFaOznt00MadL0O0SrJnp1MzPPz/lo=
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
***REMOVED***
|
|
||||||
name: firefly
|
|
||||||
namespace: firefly
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: firefly
|
|
||||||
template:
|
|
||||||
***REMOVED***
|
|
||||||
labels:
|
|
||||||
app: firefly
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: firefly
|
|
||||||
image: fireflyiii/core:latest
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
env:
|
|
||||||
- name: DB_CONNECTION
|
|
||||||
value: pgsql
|
|
||||||
- name: DB_HOST
|
|
||||||
value: postgres
|
|
||||||
- name: DB_PORT
|
|
||||||
value: "5432"
|
|
||||||
- name: DB_DATABASE
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: postgres-secret
|
|
||||||
key: POSTGRES_DB
|
|
||||||
- name: DB_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: postgres-secret
|
|
||||||
key: POSTGRES_USER
|
|
||||||
- name: DB_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: postgres-secret
|
|
||||||
key: POSTGRES_PASSWORD
|
|
||||||
volumeMounts:
|
|
||||||
- name: firefly-data
|
|
||||||
mountPath: /var/www/html/storage
|
|
||||||
volumes:
|
|
||||||
- name: firefly-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: firefly-data
|
|
||||||
---
|
|
||||||
***REMOVED***
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
***REMOVED***
|
|
||||||
name: firefly-data
|
|
||||||
namespace: firefly
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: ceph-rbd
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
---
|
|
||||||
***REMOVED***
|
|
||||||
kind: Service
|
|
||||||
***REMOVED***
|
|
||||||
name: firefly
|
|
||||||
namespace: firefly
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 8080
|
|
||||||
selector:
|
|
||||||
app: firefly
|
|
||||||
|
|
@ -1,100 +0,0 @@
|
||||||
***REMOVED***
|
|
||||||
***REMOVED***
|
|
||||||
***REMOVED***
|
|
||||||
name: firefly-secret
|
|
||||||
namespace: firefly
|
|
||||||
***REMOVED***
|
|
||||||
***REMOVED***
|
|
||||||
APP_KEY: mGZYm25jttwFptoskC+qcprTY23iHArM
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
***REMOVED***
|
|
||||||
name: firefly
|
|
||||||
namespace: firefly
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: firefly
|
|
||||||
template:
|
|
||||||
***REMOVED***
|
|
||||||
labels:
|
|
||||||
app: firefly
|
|
||||||
spec:
|
|
||||||
# InitContainer to fix permissions on the storage directory
|
|
||||||
initContainers:
|
|
||||||
- name: init-storage
|
|
||||||
image: busybox
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- |
|
|
||||||
mkdir -p /var/www/html/storage && chown -R 33:33 /var/www/html/storage
|
|
||||||
volumeMounts:
|
|
||||||
- name: firefly-data
|
|
||||||
mountPath: /var/www/html/storage
|
|
||||||
containers:
|
|
||||||
- name: firefly
|
|
||||||
image: fireflyiii/core:latest
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
env:
|
|
||||||
- name: DB_CONNECTION
|
|
||||||
value: pgsql
|
|
||||||
- name: DB_HOST
|
|
||||||
value: postgres
|
|
||||||
- name: DB_PORT
|
|
||||||
value: "5432"
|
|
||||||
- name: DB_DATABASE
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: postgres-secret
|
|
||||||
key: POSTGRES_DB
|
|
||||||
- name: DB_USERNAME
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: postgres-secret
|
|
||||||
key: POSTGRES_USER
|
|
||||||
- name: DB_PASSWORD
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: postgres-secret
|
|
||||||
key: POSTGRES_PASSWORD
|
|
||||||
- name: APP_KEY
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: firefly-secret
|
|
||||||
key: APP_KEY
|
|
||||||
volumeMounts:
|
|
||||||
- name: firefly-data
|
|
||||||
mountPath: /var/www/html/storage
|
|
||||||
volumes:
|
|
||||||
- name: firefly-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: firefly-data
|
|
||||||
---
|
|
||||||
***REMOVED***
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
***REMOVED***
|
|
||||||
name: firefly-data
|
|
||||||
namespace: firefly
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: ceph-rbd
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
---
|
|
||||||
***REMOVED***
|
|
||||||
kind: Service
|
|
||||||
***REMOVED***
|
|
||||||
name: firefly
|
|
||||||
namespace: firefly
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 8080
|
|
||||||
selector:
|
|
||||||
app: firefly
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- firefly-ingress.yaml
|
- ingress.yaml
|
||||||
- firefly-app.yaml
|
- deployment.yaml
|
||||||
- firefly-secret.yaml
|
- secret.yaml
|
||||||
- firefly-postgres.yaml
|
- postgres.yaml
|
||||||
- firefly-namespace.yaml
|
- namespace.yaml
|
||||||
- firefly-cm.yaml
|
- configmap.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- service.yaml
|
||||||
|
|
|
||||||
|
|
@ -2,3 +2,5 @@ apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: firefly
|
name: firefly
|
||||||
|
labels:
|
||||||
|
backup: true
|
||||||
12
apps/fireflyiii/pvc.yaml
Normal file
12
apps/fireflyiii/pvc.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: firefly-data
|
||||||
|
namespace: firefly
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: ceph-rbd
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
11
apps/fireflyiii/service.yaml
Normal file
11
apps/fireflyiii/service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: firefly
|
||||||
|
namespace: firefly
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 8080
|
||||||
|
selector:
|
||||||
|
app: firefly
|
||||||
Loading…
Reference in a new issue