Add monitoring TG service
This commit is contained in:
70
k8s/server-deployment.yaml
Normal file
70
k8s/server-deployment.yaml
Normal file
@@ -0,0 +1,70 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: monitoring-tg-data
|
||||
namespace: monitoring-tg
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
storageClassName: local-path
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: monitoring-tg-server
|
||||
namespace: monitoring-tg
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: monitoring-tg-server
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: monitoring-tg-server
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 20
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- name: monitoring-tg-server
|
||||
image: localhost:30300/admin/monitoring-tg-server:latest
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: monitoring-tg-config
|
||||
- secretRef:
|
||||
name: monitoring-tg-secrets
|
||||
volumeMounts:
|
||||
- name: app-data
|
||||
mountPath: /data
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8000
|
||||
periodSeconds: 5
|
||||
failureThreshold: 30
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8000
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8000
|
||||
periodSeconds: 5
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 800m
|
||||
memory: 1Gi
|
||||
volumes:
|
||||
- name: app-data
|
||||
persistentVolumeClaim:
|
||||
claimName: monitoring-tg-data
|
||||
Reference in New Issue
Block a user