-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set PR automatin for EKS cluster w/ external credentials
- Loading branch information
Showing
3 changed files
with
59 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
apiVersion: deployments.plural.sh/v1alpha1 | ||
kind: PrAutomation | ||
metadata: | ||
name: cluster-eks | ||
spec: | ||
name: cluster-eks | ||
documentation: | | ||
Sets up a PR to provision EKS cluster for a fleet + stage | ||
creates: | ||
git: | ||
ref: sebastian/prod-2981-set-up-catalog-pipeline # TODO set to main | ||
folder: catalogs/infra/cluster | ||
templates: | ||
- source: aws/stack.yaml | ||
destination: "services/infra/clusters/aws/stacks/{{ context.name }}.yaml" | ||
external: true | ||
- source: cluster.yaml | ||
destination: "services/infra/clusters/aws/{{ context.name }}.yaml" | ||
external: true | ||
- source: servicedeployment.yaml | ||
destination: "bootstrap/infra/clusters/servicedeployment.yaml" | ||
external: true | ||
repositoryRef: | ||
name: scaffolds | ||
catalogRef: | ||
name: infra | ||
scmConnectionRef: | ||
name: plural # you'll need to add this ScmConnection manually before this is functional | ||
title: "Adding EKS cluster: {{ context.name }}" | ||
message: "Adding EKS cluster {{ context.name }} and registering it with Plural" | ||
configuration: | ||
- name: name | ||
type: STRING | ||
documentation: Name of the cluster. | ||
- name: fleet | ||
type: STRING | ||
documentation: Name for the fleet you want this cluster to belong to. | ||
- name: tier | ||
type: ENUM | ||
documentation: What tier to place this cluster in. | ||
values: | ||
- dev | ||
- prd | ||
- name: region | ||
type: STRING | ||
documentation: Region where the cluster should be created. | ||
- name: credentialSecret | ||
type: STRING | ||
documentation: Name of the Kubernetes secret on the mgmt cluster in the infra namespace with the credentials that can be used to access the AWS cloud. It should contain 'AWS_ACCESS_KEY_ID' and 'AWS_SECRET_ACCESS_KEY' keys. |
This file was deleted.
Oops, something went wrong.