blob: 034e66f2b23ec61e96c9c8eebc74b0ff0f62e12d [file] [log] [blame]
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: datastore-backup-k
spec:
replicas: 1
template:
metadata:
labels:
app: datastore-backup-k
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-k
image: gcr.io/skia-public/datastore-backup-k:2018-08-29T20_14_43Z-jcgregorio-2df4245-clean
args:
- "--logtostderr"
- "--prom_port=:20000"
- "--project=skia-public"
- "--bucket=skia-public-backup"
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