-
Notifications
You must be signed in to change notification settings - Fork 859
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
deploy prow to k8s-infra-prow cluster #7141
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: upodroid The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fe49d83
to
5d75817
Compare
- clusters: | ||
selector: | ||
matchLabels: | ||
clusterType: 'prow' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should have prow-control-plane
and prow-build
as Argo will be used for build clusters as well eventually. That way we avoid deploying stuff into wrong cluster by accident.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each cluster will have its own prow folder to deploy prow specific resources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I see, then it's all good.
kubernetes/apps/prow.yaml
Outdated
server: "{{ .server }}" | ||
project: default | ||
source: | ||
path: kubernetes/{{ .name }}/prow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't path supposed to be gke-prow
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{.name}} is based on the clusterName defined in ArgoCD.
6b1ffc3
to
f938d0d
Compare
746917e
to
9ae2699
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two final nits. Can't comment much on the Prow manifests, but given everything is up and running, I'm sure we're fine. :D
# AWS_ variables needed to assume role to access the prow-build-cluster EKS cluster. | ||
- name: AWS_ROLE_ARN | ||
value: arn:aws:iam::468814281478:role/Prow-EKS-Admin | ||
- name: AWS_WEB_IDENTITY_TOKEN_FILE | ||
value: /var/run/secrets/aws-iam-token/serviceaccount/token | ||
- name: AWS_REGION | ||
value: us-east-2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Random note/blurb: we should look into if there's a better way to handle this. I'm wondering how we would handle it if we had multiple Prow build clusters on AWS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have multiple AWS clusters. We allow this role arn:aws:iam::468814281478:role/Prow-EKS-Admin
to access the cluster
kind: Kustomization | ||
namespace: default | ||
|
||
resources: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit: would be nice to sort this file A-Z, gateway.yaml
and monitoring.yaml
are in the wrong place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we apply this file? I don't see it being mentioned in kustomization.yaml
unless I missed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check the prow.yaml argo app
This is ready to be merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold
NOTE: we're going to have reduced availability to fix things for a bit, I am out tomorrow and probably some portion of the next two weeks, Arnaud is out and Dims is out already.
/hold cancel |
This is the prow specific piece of #7127
I copied the manifests from https://github.com/kubernetes/test-infra/tree/master/config/prow/cluster and adjusted a few things: