You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.2 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/instance: statping
app.kubernetes.io/name: statping
app.kubernetes.io/version: v0.90.74
name: statping
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app.kubernetes.io/instance: statping
app.kubernetes.io/name: statping
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/instance: statping
app.kubernetes.io/name: statping
spec:
automountServiceAccountToken: true
containers:
- env:
- name: DB_CONN
value: postgres
- name: DB_DATABASE
value: postgres
- name: DB_HOST
value: statping-postgresql
- name: DB_PASS
value: changeme
- name: DB_USER
value: postgres
- name: DESCRIPTION
value: This is a Statping instance deployed as Helm chart
- name: DISABLE_LOGS
value: "false"
- name: NAME
value: Statping Example
- name: POSTGRES_SSLMODE
value: disable
- name: TZ
value: UTC
- name: USE_CDN
value: "false"
- name: VIRTUAL_HOST
- name: VIRTUAL_PORT
value: "8080"
image: statping/statping:v0.90.74
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 8080
timeoutSeconds: 1
name: statping
ports:
- containerPort: 8080
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 8080
timeoutSeconds: 1
resources:
startupProbe:
failureThreshold: 30
periodSeconds: 5
successThreshold: 1
tcpSocket:
port: 8080
timeoutSeconds: 1
restartPolicy: Always