67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
|
|
# services/monitoring/platform-quality-gateway-deployment.yaml
|
||
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: platform-quality-gateway
|
||
|
|
namespace: monitoring
|
||
|
|
labels:
|
||
|
|
app: platform-quality-gateway
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
revisionHistoryLimit: 3
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app: platform-quality-gateway
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app: platform-quality-gateway
|
||
|
|
spec:
|
||
|
|
affinity:
|
||
|
|
nodeAffinity:
|
||
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
|
nodeSelectorTerms:
|
||
|
|
- matchExpressions:
|
||
|
|
- key: kubernetes.io/hostname
|
||
|
|
operator: NotIn
|
||
|
|
values:
|
||
|
|
- titan-22
|
||
|
|
containers:
|
||
|
|
- name: pushgateway
|
||
|
|
image: prom/pushgateway:v1.11.2
|
||
|
|
args:
|
||
|
|
- --web.listen-address=:9091
|
||
|
|
- --web.enable-admin-api
|
||
|
|
- --persistence.file=/data/metrics.db
|
||
|
|
- --persistence.interval=1m
|
||
|
|
ports:
|
||
|
|
- name: http
|
||
|
|
containerPort: 9091
|
||
|
|
livenessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /-/healthy
|
||
|
|
port: http
|
||
|
|
initialDelaySeconds: 15
|
||
|
|
periodSeconds: 10
|
||
|
|
readinessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /-/ready
|
||
|
|
port: http
|
||
|
|
initialDelaySeconds: 5
|
||
|
|
periodSeconds: 5
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: 20m
|
||
|
|
memory: 64Mi
|
||
|
|
limits:
|
||
|
|
cpu: 250m
|
||
|
|
memory: 256Mi
|
||
|
|
volumeMounts:
|
||
|
|
- name: data
|
||
|
|
mountPath: /data
|
||
|
|
volumes:
|
||
|
|
- name: data
|
||
|
|
persistentVolumeClaim:
|
||
|
|
claimName: platform-quality-gateway-data
|
||
|
|
|