Skip to content

Commit

Permalink
Merge pull request #12 from pfnet-research/update-readme
Browse files Browse the repository at this point in the history
Update README.md and Kubernetes manifests
  • Loading branch information
everpeace authored Apr 18, 2022
2 parents 7aa5809 + 8b924e6 commit 3bd6313
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 32 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# alertmanager-to-github

[![Docker Repository on Quay](https://quay.io/repository/pfnet-alertmanager-to-github/alertmanager-to-github/status "Docker Repository on Quay")](https://quay.io/repository/pfnet-alertmanager-to-github/alertmanager-to-github)

This receives webhook requests from Alertmanager and creates GitHub issues.

It does:
Expand All @@ -17,7 +15,7 @@ It does:
### Docker image

```
docker pull quay.io/pfnet-alertmanager-to-github/alertmanager-to-github:v0.0.1
docker pull ghcr.io/pfnet-research/alertmanager-to-github:v0.0.2
```

### go get
Expand Down Expand Up @@ -93,4 +91,3 @@ Issue title and body are rendered from [Go template](https://golang.org/pkg/text
### Kubernetes

https://github.com/pfnet-research/alertmanager-to-github/tree/master/example/kubernetes

25 changes: 0 additions & 25 deletions example/kubernetes/deploy.yaml

This file was deleted.

34 changes: 34 additions & 0 deletions example/kubernetes/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: alertmanager-to-github
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: alertmanager-to-github
template:
metadata:
labels:
app.kubernetes.io/name: alertmanager-to-github
spec:
containers:
- name: alertmanager-to-github
image: ghcr.io/superbrothers/alertmanager-to-github:v0.0.2
env:
- name: ATG_LISTEN
value: ':8080'
- name: ATG_GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: alertmanager-to-github
key: ATG_GITHUB_TOKEN
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
6 changes: 3 additions & 3 deletions example/kubernetes/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ spec:
selector:
app.kubernetes.io/name: alertmanager-to-github
ports:
- protocol: TCP
port: 80
targetPort: 8080
- protocol: TCP
port: 80
targetPort: 8080

0 comments on commit 3bd6313

Please sign in to comment.