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:
parent
257001e7c1
commit
d4fd151762
17
deployments/docker-compose.yml
Normal file
17
deployments/docker-compose.yml
Normal 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'
|
52
deployments/kubernetes.yml
Normal file
52
deployments/kubernetes.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user