Merge pull request #41 from aggarwalakshun/jellystat
Add Jellystat deployment, service, PVCs, and sealed secret configurat…
This commit is contained in:
29
clusters/default/monitoring/jellystat/jellystat-pvc.yml
Normal file
29
clusters/default/monitoring/jellystat/jellystat-pvc.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: jellystat-longhorn
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: longhorn
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: jellystat-backups-longhorn
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
storageClassName: longhorn
|
||||||
15
clusters/default/monitoring/jellystat/jellystat-secret.yml
Normal file
15
clusters/default/monitoring/jellystat/jellystat-secret.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
kind: SealedSecret
|
||||||
|
metadata:
|
||||||
|
name: jellystat-secret
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
encryptedData:
|
||||||
|
jwt: AgB7sBeZmw6pQcOnq5TGwejPRNv3SmVkohW+8hUuLving5y5EBJvwMBbYQwQ7D4jkM3JADXpd7gxD/cdU9sx6hh8+fYFR1b1cOx6hvFnlp3/YepKCOE8KmNBqeUbPMw6A8bzbcSQA9h2qIqxZyFRQr7MYQwPR7d5jqDk+a50pBz7QiRzkZiGV6dPfOp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RUx2UkGwrE8JJuWlyolequEWCLIDsZ0Z2B9ZKKRI0bn2z06uATd+Zr2KGeNQD8nF6Dplcx+rLWuukvl+KBJLx4gx2PgRDQUeTLatWvGDt66MOg0gakYTFpfV1dEyTRw9sJ8ZK4ALKsN/1mtjyncl4m94JnOP7Rw/p6Nl9TBBFJEll0LCcnFV9fdlA==
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: jellystat-secret
|
||||||
|
namespace: monitoring
|
||||||
|
type: Opaque
|
||||||
14
clusters/default/monitoring/jellystat/jellystat-svc.yml
Normal file
14
clusters/default/monitoring/jellystat/jellystat-svc.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: jellystat-service
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: jellystat
|
||||||
|
ports:
|
||||||
|
- port: 3001
|
||||||
|
targetPort: 3000
|
||||||
|
protocol: TCP
|
||||||
71
clusters/default/monitoring/jellystat/jellystat.yml
Normal file
71
clusters/default/monitoring/jellystat/jellystat.yml
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: jellystat
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: jellystat
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: jellystat
|
||||||
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- name: jellystat-db
|
||||||
|
image: postgres:alpine
|
||||||
|
restartPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: "jfstat"
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: "postgres"
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: jellystat-secret
|
||||||
|
key: password
|
||||||
|
- name: PGDATA
|
||||||
|
value: /mnt/postgres/data
|
||||||
|
volumeMounts:
|
||||||
|
- name: postgres-data
|
||||||
|
mountPath: /mnt/postgres
|
||||||
|
containers:
|
||||||
|
- name: jellystat
|
||||||
|
image: cyfershepard/jellystat:1.1.6
|
||||||
|
ports:
|
||||||
|
- containerPort: 3000
|
||||||
|
env:
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
value: "postgres"
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: jellystat-secret
|
||||||
|
key: password
|
||||||
|
- name: POSTGRES_IP
|
||||||
|
value: "localhost"
|
||||||
|
- name: POSTGRES_PORT
|
||||||
|
value: "5432"
|
||||||
|
- name: JWT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: jellystat-secret
|
||||||
|
key: jwt
|
||||||
|
volumeMounts:
|
||||||
|
- name: backups
|
||||||
|
mountPath: /app/backend/backup-data
|
||||||
|
volumes:
|
||||||
|
- name: postgres-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: jellystat-longhorn
|
||||||
|
- name: backups
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: jellystat-backups-longhorn
|
||||||
Reference in New Issue
Block a user