Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deploy reviewbot #352

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions deploy/reviewbot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ spec:
- -app-id=$(GITHUB_APP_ID)
- -app-private-key=/secrets/github_app_key
- -debug=true
- -s3-credentials-file=/root/.aws/credentials.json
- -server-addr=http://qiniu-x.jfcs-k8s-qa1.qiniu.io # this is an intranet domain of qiniu.
env:
- name: GITHUB_WEBHOOK_SECRET
valueFrom:
Expand Down Expand Up @@ -75,6 +77,11 @@ spec:
subPath: .golangci.goplus.yml
name: golangci-config-goplus
readOnly: true
- mountPath: /tmp
name: reviewbot-pvc
- name: aws-credentials-volume
mountPath: /root/.aws/credentials.json
subPath: credentials.json
- name: dind
image: aslan-spock-register.qiniu.io/qa/docker:27.2.0-dind
securityContext:
Expand Down Expand Up @@ -124,6 +131,13 @@ spec:
name: golangci-config-goplus
- name: dind-storage
emptyDir: {}
- name: reviewbot-pvc
persistentVolumeClaim:
claimName: reviewbot-pvc
- name: aws-credentials-volume
configMap:
name: s3credentials-cm


---
apiVersion: v1
Expand Down Expand Up @@ -174,5 +188,28 @@ spec:
number: 8888
path: /hook
pathType: Prefix
- host: qiniu-x.jfcs-k8s-qa1.qiniu.io
http:
paths:
- backend:
service:
name: reviewbot
port:
number: 8888
path: /view
pathType: Prefix
---

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: reviewbot-pvc
namespace: reviewbot
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi

---
Loading