Skip to content

Instantly share code, notes, and snippets.

@themarcelor
Created March 2, 2020 07:30
Show Gist options
  • Select an option

  • Save themarcelor/526d427858848adf4bbed24256e4af5e to your computer and use it in GitHub Desktop.

Select an option

Save themarcelor/526d427858848adf4bbed24256e4af5e to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: acronymbot-deployment
spec:
selector:
# Only select pods based on the 'app' label
matchLabels:
app: acronymbot
revisionHistoryLimit: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app: acronymbot
netnolimit: "yes"
spec:
containers:
- name: acronymbot
image: "quay.io/cdis/acronym-bot:latest"
env:
- name: SLACK_API_TOKEN
valueFrom:
secretKeyRef:
name: acronymbot-g3auto
key: "slacktoken.json"
imagePullPolicy: Always
resources:
requests:
cpu: 1
limits:
cpu: 2
memory: 512Mi
volumeMounts:
- name: slacktoken
mountPath: "/secret/slacktoken.json"
volumes:
- name: slacktoken
secret:
secretName: acronymbot-g3auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment