forked from pipe-cd/pipecd
-
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.
Update documents for ECS Service Discovery (pipe-cd#4711)
Signed-off-by: sZma5a <[email protected]>
- Loading branch information
Showing
6 changed files
with
69 additions
and
0 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
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,17 @@ | ||
apiVersion: pipecd.dev/v1beta1 | ||
kind: ECSApp | ||
spec: | ||
name: servicediscovery-simple | ||
labels: | ||
env: example | ||
team: xyz | ||
input: | ||
serviceDefinitionFile: servicedef.yaml | ||
taskDefinitionFile: taskdef.yaml | ||
# When you use ECS Service Discovery for interservice networking, you must specify 'SERVICE_DISCOVERY' for 'accessType'. | ||
accessType: SERVICE_DISCOVERY | ||
# 'targetGroups' is not used in Service Discovery type. | ||
description: | | ||
This app demonstrates how to deploy an ECS application using Service Discovery with [Quick Sync](https://pipecd.dev/docs/concepts/#sync-strategy) strategy.\ | ||
No pipeline is specified then in each deployment PipeCD will roll out the new version and switch all traffic to it immediately.\ | ||
References: [adding a new app](https://pipecd.dev/docs/user-guide/managing-application/adding-an-application/), [app configuration](https://pipecd.dev/docs/user-guide/configuration-reference/) |
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,27 @@ | ||
cluster: arn:aws:ecs:ap-northeast-1:XXXX:cluster/test-cluster | ||
serviceName: nginx-discovery-simple-service | ||
desiredCount: 2 | ||
deploymentConfiguration: | ||
maximumPercent: 200 | ||
minimumHealthyPercent: 0 | ||
schedulingStrategy: REPLICA | ||
# CAUTION: To enable PipeCD controls the deployment | ||
# DeploymentController of type EXTERNAL is required. | ||
deploymentController: | ||
type: EXTERNAL | ||
enableECSManagedTags: true | ||
propagateTags: SERVICE | ||
launchType: FARGATE | ||
networkConfiguration: | ||
awsvpcConfiguration: | ||
assignPublicIp: ENABLED | ||
securityGroups: | ||
- sg-YYYY | ||
subnets: | ||
- subnet-YYYY | ||
- subnet-YYYY | ||
# Service Discovery Config. | ||
serviceRegistries: | ||
# You need to specify the service id of the service discovery namespace. | ||
- registryArn: arn:aws:servicediscovery:ap-northeast-1:XXXX:service/srv-XXXXX | ||
|
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,20 @@ | ||
family: nginx-service-fam | ||
executionRoleArn: arn:aws:iam::XXXX:role/ecsTaskExecutionRole | ||
containerDefinitions: | ||
- command: null | ||
cpu: 100 | ||
image: public.ecr.aws/docker/library/httpd:2 | ||
memory: 100 | ||
mountPoints: [] | ||
name: web | ||
portMappings: | ||
- containerPort: 80 | ||
compatibilities: | ||
- FARGATE | ||
requiresCompatibilities: | ||
- FARGATE | ||
networkMode: awsvpc | ||
memory: 512 | ||
cpu: 256 | ||
pidMode: "" | ||
volumes: [] |