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

Update prow-starter.yaml #1

Merged
merged 3 commits into from
Mar 9, 2023
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
89 changes: 70 additions & 19 deletions prow/cluster/prow-starter.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This file contains Kubernetes YAML files for the most important prow
# components. Don't edit resources in this file. Instead, pull them out into
# their own files.
---
apiVersion: v1
kind: ConfigMap
Expand Down Expand Up @@ -82,16 +79,56 @@ spec:
- "aborted"
- required:
- completionTime

---
apiVersion: extensions/v1
additionalPrinterColumns:
- name: Job
type: string
description: The name of the job being run.
JSONPath: .spec.job
- name: BuildId
type: string
description: The ID of the job being run.
JSONPath: .status.build_id
- name: Type
type: string
description: The type of job being run.
JSONPath: .spec.type
- name: Org
type: string
description: The org for which the job is running.
JSONPath: .spec.refs.org
- name: Repo
type: string
description: The repo for which the job is running.
JSONPath: .spec.refs.repo
- name: Pulls
type: string
description: The pulls for which the job is running.
JSONPath: ".spec.refs.pulls[*].number"
- name: StartTime
type: date
description: When the job started running.
JSONPath: .status.startTime
- name: CompletionTime
type: date
description: When the job finished running.
JSONPath: .status.completionTime
- name: State
description: The state of the job.
name: state
type: string
JSONPath: .status.state
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: hook
labels:
app: hook
spec:
selector:
matchLabels:
app: hook
replicas: 1
strategy:
type: RollingUpdate
Expand All @@ -103,6 +140,7 @@ spec:
labels:
app: hook
spec:
serviceAccountName: hook
terminationGracePeriodSeconds: 180
containers:
- name: hook
Expand Down Expand Up @@ -173,14 +211,17 @@ spec:
nodePort: 30488
type: NodePort
---
apiVersion: extensions/v1
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: plank
labels:
app: plank
spec:
selector:
matchLabels:
app: plank
replicas: 1 # Do not scale up.
strategy:
type: Recreate
Expand All @@ -189,6 +230,7 @@ spec:
labels:
app: plank
spec:
serviceAccountName: plank
containers:
- name: plank
image: gcr.io/k8s-prow/plank:v20190405-651ad49e6
Expand Down Expand Up @@ -216,20 +258,24 @@ spec:
configMap:
name: job-config
---
apiVersion: extensions/v1
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: sinker
labels:
app: sinker
spec:
selector:
matchLabels:
app: sinker
replicas: 1
template:
metadata:
labels:
app: sinker
spec:
serviceAccountName: sinker
containers:
- name: sinker
image: gcr.io/k8s-prow/sinker:v20190405-651ad49e6
Expand All @@ -251,14 +297,17 @@ spec:
configMap:
name: job-config
---
apiVersion: extensions/v1
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: deck
labels:
app: deck
spec:
selector:
matchLabels:
app: deck
replicas: 1
strategy:
type: RollingUpdate
Expand All @@ -270,6 +319,7 @@ spec:
labels:
app: deck
spec:
serviceAccountName: deck
terminationGracePeriodSeconds: 30
containers:
- name: deck
Expand All @@ -279,7 +329,6 @@ spec:
- --hook-url=http://hook:8888/plugin-help
- --job-config-path=/etc/job-config
- --spyglass=true
- --gcs-credentials-file=/etc/github/service-account.json
ports:
- name: http
containerPort: 8080
Expand All @@ -290,9 +339,6 @@ spec:
- name: job-config
mountPath: /etc/job-config
readOnly: true
- name: gcs-creds
mountPath: /etc/github
readOnly: true
livenessProbe:
httpGet:
path: /healthz
Expand All @@ -313,9 +359,6 @@ spec:
- name: job-config
configMap:
name: job-config
- name: gcs-creds
secret:
secretName: gcs-sa
---
apiVersion: v1
kind: Service
Expand All @@ -331,14 +374,17 @@ spec:
nodePort: 32710
type: NodePort
---
apiVersion: extensions/v1
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: horologium
labels:
app: horologium
spec:
selector:
matchLabels:
app: horologium
replicas: 1 # Do not scale up.
strategy:
type: Recreate
Expand All @@ -347,6 +393,7 @@ spec:
labels:
app: horologium
spec:
serviceAccountName: horologium
terminationGracePeriodSeconds: 30
containers:
- name: horologium
Expand All @@ -369,14 +416,17 @@ spec:
configMap:
name: job-config
---
apiVersion: extensions/v1
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: tide
labels:
app: tide
spec:
selector:
matchLabels:
app: tide
replicas: 1 # Do not scale up.
strategy:
type: Recreate
Expand All @@ -385,6 +435,7 @@ spec:
labels:
app: tide
spec:
serviceAccountName: tide
containers:
- name: tide
image: gcr.io/k8s-prow/tide:v20190405-651ad49e6
Expand Down Expand Up @@ -428,7 +479,7 @@ spec:
targetPort: 8888
type: NodePort
---
apiVersion: extensions/v1
apiVersion: apps/v1
kind: Ingress
metadata:
namespace: default
Expand Down