blob: ca0f656b05c0268277dcdfd820cf03db6c00d1a4 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: cq-watcher
name: cq-watcher
spec:
ports:
- name: metrics
port: 20000
selector:
app: cq-watcher
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: cq-watcher
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: cq-watcher
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: cq-watcher
image: gcr.io/skia-public/cq_watcher:2019-01-30T14_10_37Z-rmistry-818bdc4-clean
args:
- "--logtostderr"
- "--prom_port=:20000"
ports:
- containerPort: 20000
volumeMounts:
- name: skia-cq-watcher-sa
mountPath: /var/secrets/google
- name: cq-watcher-storage
mountPath: /mnt/cq-watcher
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
requests:
memory: "10Mi"
cpu: "10m"
volumes:
- name: skia-cq-watcher-sa
secret:
secretName: skia-cq-watcher
- name: cq-watcher-storage
emptyDir: {}
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets