Skip to content

Commit

Permalink
feat(apps/prod/prow-worker): setup prow job's pod namespace
Browse files Browse the repository at this point in the history
Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Jul 5, 2023
1 parent 10ba361 commit 8b12eda
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ resources:
- tekton
- brc
- buildbarn

- prow-worker
6 changes: 6 additions & 0 deletions apps/prod/prow-worker/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: prow-test-pods
resources:
- namespace.yaml
- pvc.yaml
7 changes: 7 additions & 0 deletions apps/prod/prow-worker/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: prow-test-pods
annotations:
scheduler.alpha.kubernetes.io/defaultTolerations: '[{"operator": "Equal", "effect": "NoSchedule", "key": "dedicated", "value": "test-infra"}]'
scheduler.alpha.kubernetes.io/node-selector: enable-ci=true
25 changes: 25 additions & 0 deletions apps/prod/prow-worker/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: go-cache # go build cache
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Gi
storageClassName: ceph-filesystem
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gomod-cache # gomod cache
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: ceph-filesystem
volumeMode: Filesystem

0 comments on commit 8b12eda

Please sign in to comment.