blob: bb7d36890facc9c7b01c414508857d5da2e6a146 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: proberk
name: proberk
spec:
ports:
- name: metrics
port: 20000
selector:
app: proberk
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: proberk
spec:
template:
metadata:
labels:
app: proberk
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: proberk
image: gcr.io/skia-public/proberk:2019-09-26T20_00_37Z-jcgregorio-0c08ab6-clean
args:
- "--logtostderr"
- "--config=/etc/proberk/allprobersk.json"
- "--prom_port=:20000"
- "--run_every=1m"
ports:
- name: metrics
containerPort: 20000
volumeMounts:
- name: prober-sa
mountPath: /var/secrets/google
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
requests:
memory: "100Mi"
cpu: "25m"
readinessProbe:
httpGet:
path: /metrics
port: 20000
initialDelaySeconds: 3
periodSeconds: 3
volumes:
- name: prober-sa
secret:
secretName: prober