Skip to content

Commit

Permalink
added sample test config files
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsterckx committed Jan 20, 2023
1 parent 153f3a4 commit a12ddd3
Show file tree
Hide file tree
Showing 20 changed files with 2,532 additions and 0 deletions.
399 changes: 399 additions & 0 deletions bottlerocket/samples/RUNBOOK.md

Large diffs are not rendered by default.

135 changes: 135 additions & 0 deletions bottlerocket/samples/eks/ecs-migration-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-1-initial
namespace: testsys
spec:
agent:
name: ecs-test-agent
image: <ECS-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${<CLUSTER-NAME>.clusterName}
region: ${<CLUSTER-NAME>.region}
subnets: ${<CLUSTER-NAME>.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
dependsOn: []
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-2-migrate
namespace: testsys
spec:
agent:
configuration:
awsRegion: <AWS-REGION>
instanceIds: ${<CLUSTER-NAME>-instances.ids}
migrateToVersion: <UPGRADE-VERSION>
tufRepo:
metadataUrl: <METADATA-URL>
targetsUrl: <TARGETS-URL>
assumeRole: <ASSUME-ROLE>
image: <MIGRATION-TEST-AGENT-IMAGE-URI>
name: migration-test-agent
keepRunning: true
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
dependsOn: [<CLUSTER-NAME>-test-1-initial]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-3-migrated
namespace: testsys
spec:
agent:
name: ecs-test-agent
image: <ECS-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${<CLUSTER-NAME>.clusterName}
region: ${<CLUSTER-NAME>.region}
subnets: ${<CLUSTER-NAME>.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
dependsOn: [<CLUSTER-NAME>-test-2-migrate]
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-4-migrate
namespace: testsys
spec:
agent:
configuration:
awsRegion: <AWS-REGION>
instanceIds: ${<CLUSTER-NAME>-instances.ids}
migrateToVersion: <STARTING-VERSION>
tufRepo:
metadataUrl: <METADATA-URL>
targetsUrl: <TARGETS-URL>
assumeRole: <ASSUME-ROLE>
image: <MIGRATION-TEST-AGENT-IMAGE-URI>
name: migration-test-agent
keepRunning: true
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
dependsOn: [<CLUSTER-NAME>-test-3-migrated]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-5-final
namespace: testsys
spec:
agent:
name: ecs-test-agent
image: <ECS-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${<CLUSTER-NAME>.clusterName}
region: ${<CLUSTER-NAME>.region}
subnets: ${<CLUSTER-NAME>.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
dependsOn: [<CLUSTER-NAME>-test-4-migrate]
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: <CLUSTER-NAME>
namespace: testsys
spec:
agent:
name: ecs-provider
image: <ECS-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: <CLUSTER-NAME>
region: <AWS-REGION>
assumeRole: <ASSUME-ROLE>
dependsOn: []
destructionPolicy: onDeletion
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: <CLUSTER-NAME>-instances
namespace: testsys
spec:
agent:
name: ec2-provider
image: <EC2-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${<CLUSTER-NAME>.clusterName}
clusterType: ecs
instanceCount: 2
nodeAmi: <BOTTLEROCKET-AMI-ID>
region: <AWS-REGION>
instanceProfileArn: ${<CLUSTER-NAME>.iamInstanceProfileArn}
subnetIds: ${<CLUSTER-NAME>.publicSubnetIds}
instanceTypes: ["m5.large"]
assumeRole: <ASSUME-ROLE>
dependsOn: [<CLUSTER-NAME>]
destructionPolicy: onDeletion
57 changes: 57 additions & 0 deletions bottlerocket/samples/eks/ecs-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test
namespace: testsys
spec:
agent:
name: ecs-test-agent
image: <ECS-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${<CLUSTER-NAME>.clusterName}
region: ${<CLUSTER-NAME>.region}
subnets: ${<CLUSTER-NAME>.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
dependsOn: []
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: <CLUSTER-NAME>
namespace: testsys
spec:
agent:
name: ecs-provider
image: <ECS-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: <CLUSTER-NAME>
region: <AWS-REGION>
assumeRole: <ASSUME-ROLE>
dependsOn: []
destructionPolicy: onDeletion
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: <CLUSTER-NAME>-instances
namespace: testsys
spec:
agent:
name: ec2-provider
image: <EC2-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${<CLUSTER-NAME>.clusterName}
clusterType: ecs
instanceCount: 2
nodeAmi: <BOTTLEROCKET-AMI-ID>
region: <AWS-REGION>
instanceProfileArn: ${<CLUSTER-NAME>.iamInstanceProfileArn}
subnetIds: ${<CLUSTER-NAME>.publicSubnetIds}
instanceTypes: ["m5.large"]
assumeRole: <ASSUME-ROLE>
dependsOn: [<CLUSTER-NAME>]
destructionPolicy: onDeletion
146 changes: 146 additions & 0 deletions bottlerocket/samples/eks/sonobuoy-migration-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-1-initial
namespace: testsys
spec:
agent:
name: sonobuoy-test-agent
image: <SONOBUOY-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
region: ${<CLUSTER-NAME>.region}
subnets: ${<CLUSTER-NAME>.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
kubeconfigBase64: ${<CLUSTER-NAME>.encodedKubeconfig}
plugin: "e2e"
mode: "quick"
dependsOn: []
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-2-migrate
namespace: testsys
spec:
agent:
configuration:
awsRegion: <AWS-REGION>
instanceIds: ${<CLUSTER-NAME>-instances.ids}
migrateToVersion: <UPGRADE-VERSION>
tufRepo:
metadataUrl: <METADATA-URL>
targetsUrl: <TARGETS-URL>
assumeRole: <ASSUME-ROLE>
image: <MIGRATION-TEST-AGENT-IMAGE-URI>
name: migration-test-agent
keepRunning: true
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
dependsOn: [<CLUSTER-NAME>-test-1-initial]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-3-migrated
namespace: testsys
spec:
agent:
name: sonobuoy-test-agent
image: <SONOBUOY-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
region: ${<CLUSTER-NAME>.region}
subnets: ${<CLUSTER-NAME>.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
kubeconfigBase64: ${<CLUSTER-NAME>.encodedKubeconfig}
plugin: "e2e"
mode: "quick"
dependsOn: [<CLUSTER-NAME>-test-2-migrate]
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-4-migrate
namespace: testsys
spec:
agent:
configuration:
awsRegion: <AWS-REGION>
instanceIds: ${<CLUSTER-NAME>-instances.ids}
migrateToVersion: <STARTING-VERSION>
tufRepo:
metadataUrl: <METADATA-URL>
targetsUrl: <TARGETS-URL>
assumeRole: <ASSUME-ROLE>
image: <MIGRATION-TEST-AGENT-IMAGE-URI>
name: migration-test-agent
keepRunning: true
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
dependsOn: [<CLUSTER-NAME>-test-3-migrated]
---
apiVersion: testsys.system/v1
kind: Test
metadata:
name: <CLUSTER-NAME>-test-5-final
namespace: testsys
spec:
agent:
name: sonobuoy-test-agent
image: <SONOBUOY-TEST-AGENT-IMAGE-URI>
keepRunning: true
configuration:
region: ${<CLUSTER-NAME>.region}
subnets: ${<CLUSTER-NAME>.publicSubnetIds}
assumeRole: <ASSUME-ROLE>
kubeconfigBase64: ${<CLUSTER-NAME>.encodedKubeconfig}
plugin: "e2e"
mode: "quick"
dependsOn: [<CLUSTER-NAME>-test-4-migrate]
resources: [<CLUSTER-NAME>-instances, <CLUSTER-NAME>]
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: <CLUSTER-NAME>
namespace: testsys
spec:
agent:
name: eks-provider
image: <EKS-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
creationPolicy: ifNotExists
cluster_name: <CLUSTER-NAME>
region: <AWS-REGION>
assumeRole: <ASSUME-ROLE>
dependsOn: []
destructionPolicy: onDeletion
---
apiVersion: testsys.system/v1
kind: Resource
metadata:
name: <CLUSTER-NAME>-instances
namespace: testsys
spec:
agent:
name: ec2-provider
image: <EC2-RESOURCE-AGENT-IMAGE-URI>
keepRunning: true
configuration:
clusterName: ${<CLUSTER-NAME>.clusterName}
clusterType: eks
instanceCount: 2
instanceProfileArn: ${<CLUSTER-NAME>.iamInstanceProfileArn}
nodeAmi: <BOTTLEROCKET-AMI-ID>
region: <AWS-REGION>
subnetIds: ${<CLUSTER-NAME>.publicSubnetIds}
instanceTypes: ["m5.large"]
assumeRole: <ASSUME-ROLE>
endpoint: ${<CLUSTER-NAME>.endpoint}
certificate: ${<CLUSTER-NAME>.certificate}
clusterDnsIp: ${<CLUSTER-NAME>.clusterDnsIp}
securityGroups: ${<CLUSTER-NAME>.securityGroups}
dependsOn: [<CLUSTER-NAME>]
destructionPolicy: onDeletion
Loading

0 comments on commit a12ddd3

Please sign in to comment.