This commit is contained in:
parent
4d4b151c49
commit
836687a2b8
28
uptime-kuma/uptime-kuma-deployment.yaml
Normal file
28
uptime-kuma/uptime-kuma-deployment.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: uptime-kuma
|
||||||
|
namespace: uptime-kuma-ns
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: uptime-kuma
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: uptime-kuma
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: data-mount
|
||||||
|
persistentVolumClaim:
|
||||||
|
claimName: uptime-kuma-pvc
|
||||||
|
containers:
|
||||||
|
- name: uptime-kuma
|
||||||
|
image: louislam/uptime-kuma
|
||||||
|
ports:
|
||||||
|
- containerPort: 3001
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: '/app/data'
|
||||||
|
name: data-mount
|
||||||
|
|
12
uptime-kuma/uptime-kuma-pvc-config.yaml
Normal file
12
uptime-kuma/uptime-kuma-pvc-config.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: uptime-kuma-pvc
|
||||||
|
namespace: uptime-kuma-ns
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
14
uptime-kuma/uptime-kuma-service.yaml
Normal file
14
uptime-kuma/uptime-kuma-service.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: uptime-kuma-service
|
||||||
|
namespace: uptime-kuma-ns
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: uptime-kuma
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 3001
|
||||||
|
type: LoadBalancer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user