mirror of
https://github.com/thejimnicholson/uptime-kuma-k8s.git
synced 2025-12-06 03:30:44 +00:00
initial commit
This commit is contained in:
commit
e85bdd3276
67
deployment.yaml
Normal file
67
deployment.yaml
Normal file
@ -0,0 +1,67 @@
|
||||
# https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: uptime-kuma
|
||||
namespace: uptime-kuma
|
||||
labels:
|
||||
app: uptime-kuma
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: uptime-kuma
|
||||
replicas: 1
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: uptime-kuma
|
||||
spec:
|
||||
# initContainers:
|
||||
# Init containers are exactly like regular containers, except:
|
||||
# - Init containers always run to completion.
|
||||
# - Each init container must complete successfully before the next one starts.
|
||||
containers:
|
||||
- name: uptime-kuma
|
||||
image: louislam/uptime-kuma:1.11.1-alpine
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 3001
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 5
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 3001
|
||||
initialDelaySeconds: 5
|
||||
timeoutSeconds: 2
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
periodSeconds: 10
|
||||
ports:
|
||||
- containerPort: 3001
|
||||
name: http-3001
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /app/data
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: uptime-kuma-data
|
||||
restartPolicy: Always
|
||||
---
|
||||
7
kustomization.yaml
Normal file
7
kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- storage.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
4
namespace.yaml
Normal file
4
namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: uptime-kuma
|
||||
16
service.yaml
Normal file
16
service.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
# https://kubernetes.io/docs/concepts/services-networking/service/
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: uptime-kuma
|
||||
namespace: uptime-kuma
|
||||
spec:
|
||||
selector:
|
||||
app: uptime-kuma
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: uptime-kuma-web
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 3001
|
||||
---
|
||||
20
storage.yaml
Normal file
20
storage.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
# https://kubernetes.io/docs/concepts/storage/persistent-volumes/
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: uptime-kuma-data
|
||||
namespace: uptime-kuma
|
||||
labels:
|
||||
app: uptime-kuma
|
||||
spec:
|
||||
# AKS: default,managed-premium
|
||||
# GKE: standard
|
||||
# EKS: gp2 (custom)
|
||||
# Rook: rook-ceph-block,rook-ceph-fs
|
||||
# storageClassName: longhorn
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
---
|
||||
Loading…
Reference in New Issue
Block a user