add health checks
This commit is contained in:
+24
-11
@@ -1,5 +1,3 @@
|
|||||||
## StatefulSet
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
@@ -8,16 +6,16 @@ metadata:
|
|||||||
app.kubernetes.io/name: thelounge
|
app.kubernetes.io/name: thelounge
|
||||||
app.kubernetes.io/instance: thelounge
|
app.kubernetes.io/instance: thelounge
|
||||||
annotations:
|
annotations:
|
||||||
polaris.fairwinds.com/runAsRootAllowed-exempt: "true" # linuxserver.io images don't support this, need to build my own
|
polaris.fairwinds.com/runAsRootAllowed-exempt: "true"
|
||||||
polaris.fairwinds.com/tagNotSpecified-exempt: "true" # allow latest tag for this app
|
polaris.fairwinds.com/tagNotSpecified-exempt: "true"
|
||||||
polaris.fairwinds.com/topologySpreadConstraint-exempt: "true" # statefulset doesn't support multiple replicas
|
polaris.fairwinds.com/topologySpreadConstraint-exempt: "true"
|
||||||
spec:
|
spec:
|
||||||
|
serviceName: thelounge
|
||||||
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: thelounge
|
app.kubernetes.io/name: thelounge
|
||||||
app.kubernetes.io/instance: thelounge
|
app.kubernetes.io/instance: thelounge
|
||||||
serviceName: "thelounge"
|
|
||||||
replicas: 1
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -36,19 +34,34 @@ spec:
|
|||||||
name: http-9000
|
name: http-9000
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: "/var/opt/thelounge"
|
mountPath: /var/opt/thelounge
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
|
memory: "256Mi"
|
||||||
limits:
|
limits:
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
|
memory: "512Mi"
|
||||||
|
livenessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 9000
|
||||||
|
initialDelaySeconds: 20
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 1
|
||||||
|
failureThreshold: 3
|
||||||
|
readinessProbe:
|
||||||
|
tcpSocket:
|
||||||
|
port: 9000
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 5
|
||||||
|
timeoutSeconds: 1
|
||||||
|
failureThreshold: 3
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: config
|
name: config
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 4Gi
|
storage: 4Gi
|
||||||
Reference in New Issue
Block a user