0
0
mirror of https://github.com/thegeeklab/github-releases-notifier.git synced 2024-11-21 12:40:38 +00:00

Create example deployments for kubernetes and docker-compose

This commit is contained in:
Matthias Loibl 2017-08-08 15:06:07 +02:00
parent 257001e7c1
commit d4fd151762
No known key found for this signature in database
GPG Key ID: B1C7DF661ABB2C1A
2 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,17 @@
version: '2'
services:
github-releases-notifier:
restart: always
image: justwatch/github-releases-notifier
environment:
- GITHUB_TOKEN=XXX
- SLACK_HOOK=https://hooks.slack.com/services/T02MASDF7/B6WERHYRZ/XXX
command:
- '-r=golang/go'
- '-r=justwatchcom/elasticsearch_exporter'
- '-r=justwatchcom/gopass'
- '-r=justwatchcom/sql_exporter'
- '-r=kubernetes/minikube'
- '-r=prometheus/prometheus'
- '-r=shurcooL/githubql'

View File

@ -0,0 +1,52 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: github-releases-notifier
spec:
replicas: 1
revisionHistoryLimit: 10
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: github-releases-notifier
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
containers:
- name: github-releases-notifier
image: justwatch/github-releases-notifier
env:
- name: GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: github-releases-notifier
key: github
- name: SLACK_HOOK
valueFrom:
secretKeyRef:
name: github-releases-notifier
key: slack
command:
- '/bin/github-releases-notifier'
args:
- '-r=golang/go'
- '-r=justwatchcom/elasticsearch_exporter'
- '-r=justwatchcom/gopass'
- '-r=justwatchcom/sql_exporter'
- '-r=kubernetes/minikube'
- '-r=prometheus/prometheus'
- '-r=shurcooL/githubql'
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 25m
memory: 64Mi
restartPolicy: Always