Add Pulse deployment, service, and PVC configurations
This commit is contained in:
14
clusters/default/monitoring/pulse/pulse-pvc.yml
Normal file
14
clusters/default/monitoring/pulse/pulse-pvc.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: pulse-longhorn
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Mi
|
||||||
|
storageClassName: longhorn
|
||||||
13
clusters/default/monitoring/pulse/pulse-svc.yml
Normal file
13
clusters/default/monitoring/pulse/pulse-svc.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: pulse-service
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: pulse
|
||||||
|
ports:
|
||||||
|
- port: 7655
|
||||||
|
targetPort: 7655
|
||||||
30
clusters/default/monitoring/pulse/pulse.yml
Normal file
30
clusters/default/monitoring/pulse/pulse.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: pulse
|
||||||
|
namespace: monitoring
|
||||||
|
spec:
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: pulse
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: pulse
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: pulse
|
||||||
|
image: rcourtman/pulse:4.22.0
|
||||||
|
volumeMounts:
|
||||||
|
- name: pulse-data
|
||||||
|
mountPath: /data
|
||||||
|
env:
|
||||||
|
- name: ALLOWED_ORIGINS
|
||||||
|
value: "*"
|
||||||
|
volumes:
|
||||||
|
- name: pulse-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: pulse-longhorn
|
||||||
Reference in New Issue
Block a user