Remove Kubernetes files and move them to: https://github.com/firefly-iii/kubernetes

This commit is contained in:
James Cole 2019-12-30 06:32:44 +01:00
parent 26f5e5e518
commit 93c5c6fd6d
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
3 changed files with 0 additions and 172 deletions

View File

@ -1,99 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: firefly-iii
labels:
app: firefly-iii
spec:
ports:
- port: 80
selector:
app: firefly-iii
tier: frontend
type: LoadBalancer
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: firefly-iii-export-claim
labels:
app: firefly-iii
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: firefly-iii-upload-claim
labels:
app: firefly-iii
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: firefly-iii
labels:
app: firefly-iii
spec:
selector:
matchLabels:
app: firefly-iii
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: firefly-iii
tier: frontend
spec:
containers:
- image: jc5x/firefly-iii
name: firefly-iii
env:
- name: APP_ENV
value: "local"
- name: APP_KEY
valueFrom:
secretKeyRef:
name: firefly-iii-secrets
key: app_key
- name: DB_HOST
value: firefly-iii-mysql
- name: DB_CONNECTION
value: mysql
- name: DB_DATABASE
value: "fireflyiii"
- name: DB_USERNAME
value: "root"
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: firefly-iii-secrets
key: db_password
ports:
- containerPort: 80
name: firefly-iii
volumeMounts:
- mountPath: "/var/www/firefly-iii/storage/export"
name: firefly-iii-export
- mountPath: "/var/www/firefly-iii/storage/upload"
name: firefly-iii-upload
imagePullPolicy: Always
volumes:
- name: firefly-iii-export
persistentVolumeClaim:
claimName: firefly-iii-export-claim
- name: firefly-iii-upload
persistentVolumeClaim:
claimName: firefly-iii-upload-claim

View File

@ -1,8 +0,0 @@
resources:
- mysql.yaml
- firefly-iii.yaml
secretGenerator:
- name: firefly-iii-secrets
literals:
- db_password=CHANGEMECHANGEME
- app_key=CHANGEMECHANGEMECHANGEMECHANGEME

View File

@ -1,65 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: firefly-iii-mysql
labels:
app: firefly-iii
spec:
ports:
- port: 3306
selector:
app: firefly-iii
tier: mysql
clusterIP: None
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-pv-claim
labels:
app: firefly-iii
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: firefly-iii-mysql
labels:
app: firefly-iii
spec:
selector:
matchLabels:
app: firefly-iii
tier: mysql
strategy:
type: Recreate
template:
metadata:
labels:
app: firefly-iii
tier: mysql
spec:
containers:
- image: mysql:5.6
name: mysql
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: firefly-iii-secrets
key: db_password
ports:
- containerPort: 3306
name: mysql
volumeMounts:
- name: mysql-persistent-storage
mountPath: /var/lib/mysql
volumes:
- name: mysql-persistent-storage
persistentVolumeClaim:
claimName: mysql-pv-claim