2017-05-01 20:15:17 +03:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: gopherbot-deployment
|
|
|
|
spec:
|
|
|
|
replicas: 1 # more than 1 might cause duplicate GitHub comments
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: gopherbot
|
2017-07-17 18:19:37 +03:00
|
|
|
annotations:
|
|
|
|
container.seccomp.security.alpha.kubernetes.io/gopherbot: docker/default
|
|
|
|
container.apparmor.security.beta.kubernetes.io/gopherbot: runtime/default
|
2017-05-01 20:15:17 +03:00
|
|
|
spec:
|
|
|
|
volumes:
|
|
|
|
- name: cache-volume
|
|
|
|
emptyDir: {}
|
|
|
|
containers:
|
|
|
|
- name: gopherbot
|
|
|
|
image: gcr.io/symbolic-datum-552/gopherbot:latest
|
|
|
|
imagePullPolicy: Always
|
|
|
|
env:
|
|
|
|
- name: XDG_CACHE_HOME
|
|
|
|
value: "/cache"
|
|
|
|
command: ["/gopherbot", "--daemon"]
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /cache
|
|
|
|
name: cache-volume
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: "1"
|
|
|
|
memory: "2Gi"
|
2018-08-08 00:31:06 +03:00
|
|
|
limits:
|
|
|
|
memory: "4Gi"
|