blob: 00bd7a27a052316a93b4ed31a07156c67b2565cd [file] [log] [blame]
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: datastore-backup-google-skia-buildbots
spec:
replicas: 1
template:
metadata:
labels:
app: datastore-backup-google-skia-buildbots
appgroup: datastore-backup
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: datastore-backup-google-skia-buildbots
image: gcr.io/skia-public/datastore-backup-k:2019-10-04T14_54_26Z-jcgregorio-692f799-clean
args:
- "--logtostderr"
- "--prom_port=:20000"
- "--project=google.com:skia-buildbots"
- "--bucket=skia-datastore-backups-skia-buildbots"
ports:
- containerPort: 20000
volumeMounts:
- name: skia-datastore-backup-k-sa
mountPath: /var/secrets/google
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
requests:
memory: "10Mi"
cpu: "10m"
readinessProbe:
httpGet:
path: /metrics
port: 20000
initialDelaySeconds: 1
periodSeconds: 3
volumes:
- name: skia-datastore-backup-k-sa
secret:
secretName: skia-datastore-backup-k