-
Notifications
You must be signed in to change notification settings - Fork 49
neo edited this page Jan 22, 2020
·
12 revisions
apiVersion: apps/v1
kind: Deployment
metadata:
name: monitor
namespace: dev
spec:
replicas: 1
selector:
matchLabels:
app: monitor
revisionHistoryLimit: 10
strategy:
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
labels:
app: monitor
spec:
nodeSelector:
pool: ops
containers:
- name: monitor
image: neowu/monitor:7.3.1
env:
- name: JAVA_OPTS
value: "-XX:+UseG1GC -XX:MaxRAMPercentage=85 -Xss256k"
- name: SYS_KAFKA_URI
value: "log-kafka-0.log-kafka:9092"
- name: APP_SLACK_TOKEN
value: "mockToken"
- name: APP_ALERT_CONFIG
value: |
{
"ignoreWarnings": [
{"apps": ["website"], "errorCodes": ["PATH_NOT_FOUND"]}
],
"criticalErrors": [
{"errorCodes": ["CRITICAL_ERROR"]}
],
"site": "dev",
"kibanaURL": "http://kibana:5601",
"channel": {
"eventError": "mockChannel",
"eventWarn": "mockChannel",
"actionError": "mockChannel",
"actionWarn": "mockChannel"
}
}
readinessProbe:
httpGet:
path: /health-check
port: 8080
initialDelaySeconds: 10
periodSeconds: 10
resources:
limits:
cpu: 200m
memory: 200Mi