blob: f2e3ec46e8130a2019af84029e471f44dfdda170 [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:2018-11-30T17_01_19Z-jcgregorio-1ec6a3c-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