generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 48
Taints & Node Selector for Prometheus, Cluster Role Tasks and follow ups for #325 #327
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
Merged
hakuna-matatah
merged 14 commits into
awslabs:main
from
ashishranjan738:prometheus-monitoring-rebase
Dec 13, 2022
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
56d340c
Adds ASG with Prometheus taints for CL2 tests
ashishranjan738 1bf1bc6
Adds cluster name label for prometheus monitoring
ashishranjan738 a0c65b4
Adds node selector for Prometheus manifest
ashishranjan738 fb76006
Moves cw-metrics to addons folder.
ashishranjan738 45a7a66
Adds prometheus label for s3 path
ashishranjan738 109eb42
Updates load test to utilize tekton result for passing s3_path
ashishranjan738 109292c
Refactor mng create task based on the comments on #325
ashishranjan738 37b8481
Adds tasks for cluster role creation
ashishranjan738 d463bb6
Updates pipelines with role creation tasks
ashishranjan738 1d6b2a8
Refactors Role Creation Tasks
ashishranjan738 28e5d15
Updates role task name
ashishranjan738 8317ed1
Updates Roles arns to to Role Names
ashishranjan738 f92f827
Removes default value for role names.
ashishranjan738 86186f5
Addresses comments of PR #327
ashishranjan738 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,214 @@ | ||
| { | ||
| "AWSTemplateFormatVersion": "2010-09-09", | ||
| "Parameters": { | ||
| "Name": { | ||
| "Type": "String", | ||
| "Default": "eks-node-role", | ||
| "Description": "Names of the role." | ||
| } | ||
| }, | ||
| "Resources": { | ||
| "RootRole": { | ||
| "Type": "AWS::IAM::Role", | ||
| "Properties": { | ||
| "RoleName" : { | ||
| "Ref": "Name" | ||
| }, | ||
| "AssumeRolePolicyDocument": { | ||
| "Version": "2012-10-17", | ||
| "Statement": [ | ||
| { | ||
| "Effect": "Allow", | ||
| "Principal": { | ||
| "Service": [ | ||
| "ec2.amazonaws.com", | ||
| "eks-fargate-pods.amazonaws.com" | ||
| ] | ||
| }, | ||
| "Action": "sts:AssumeRole" | ||
| } | ||
| ] | ||
| }, | ||
| "ManagedPolicyArns": [ | ||
| "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy", | ||
| "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy", | ||
| "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly", | ||
| "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", | ||
| "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy" | ||
| ], | ||
| "Policies": [ | ||
| { | ||
| "PolicyName": "InlinePolicy", | ||
| "PolicyDocument": { | ||
| "Version": "2012-10-17", | ||
| "Statement": [ | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "acm:DescribeCertificate", | ||
| "acm:ListCertificates", | ||
| "acm:GetCertificate" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "ec2:AuthorizeSecurityGroupIngress", | ||
| "ec2:CreateSecurityGroup", | ||
| "ec2:CreateTags", | ||
| "ec2:DeleteTags", | ||
| "ec2:DeleteSecurityGroup", | ||
| "ec2:DescribeAccountAttributes", | ||
| "ec2:DescribeAddresses", | ||
| "ec2:DescribeInstances", | ||
| "ec2:DescribeInstanceStatus", | ||
| "ec2:DescribeInternetGateways", | ||
| "ec2:DescribeNetworkInterfaces", | ||
| "ec2:DescribeSecurityGroups", | ||
| "ec2:DescribeSubnets", | ||
| "ec2:DescribeTags", | ||
| "ec2:DescribeVpcs", | ||
| "ec2:ModifyInstanceAttribute", | ||
| "ec2:ModifyNetworkInterfaceAttribute", | ||
| "ec2:RevokeSecurityGroupIngress", | ||
| "ec2:DescribeAvailabilityZones" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "elasticloadbalancing:AddListenerCertificates", | ||
| "elasticloadbalancing:AddTags", | ||
| "elasticloadbalancing:CreateListener", | ||
| "elasticloadbalancing:CreateLoadBalancer", | ||
| "elasticloadbalancing:CreateRule", | ||
| "elasticloadbalancing:CreateTargetGroup", | ||
| "elasticloadbalancing:DeleteListener", | ||
| "elasticloadbalancing:DeleteLoadBalancer", | ||
| "elasticloadbalancing:DeleteRule", | ||
| "elasticloadbalancing:DeleteTargetGroup", | ||
| "elasticloadbalancing:DeregisterTargets", | ||
| "elasticloadbalancing:DescribeListenerCertificates", | ||
| "elasticloadbalancing:DescribeListeners", | ||
| "elasticloadbalancing:DescribeLoadBalancers", | ||
| "elasticloadbalancing:DescribeLoadBalancerAttributes", | ||
| "elasticloadbalancing:DescribeRules", | ||
| "elasticloadbalancing:DescribeSSLPolicies", | ||
| "elasticloadbalancing:DescribeTags", | ||
| "elasticloadbalancing:DescribeTargetGroups", | ||
| "elasticloadbalancing:DescribeTargetGroupAttributes", | ||
| "elasticloadbalancing:DescribeTargetHealth", | ||
| "elasticloadbalancing:ModifyListener", | ||
| "elasticloadbalancing:ModifyLoadBalancerAttributes", | ||
| "elasticloadbalancing:ModifyRule", | ||
| "elasticloadbalancing:ModifyTargetGroup", | ||
| "elasticloadbalancing:ModifyTargetGroupAttributes", | ||
| "elasticloadbalancing:RegisterTargets", | ||
| "elasticloadbalancing:RemoveListenerCertificates", | ||
| "elasticloadbalancing:RemoveTags", | ||
| "elasticloadbalancing:SetIpAddressType", | ||
| "elasticloadbalancing:SetSecurityGroups", | ||
| "elasticloadbalancing:SetSubnets", | ||
| "elasticloadbalancing:SetWebAcl" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "iam:CreateServiceLinkedRole", | ||
| "iam:GetServerCertificate", | ||
| "iam:ListServerCertificates" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "cognito-idp:DescribeUserPoolClient" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "waf-regional:GetWebACLForResource", | ||
| "waf-regional:GetWebACL", | ||
| "waf-regional:AssociateWebACL", | ||
| "waf-regional:DisassociateWebACL" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "tag:GetResources", | ||
| "tag:TagResources" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "waf:GetWebACL" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "wafv2:GetWebACL", | ||
| "wafv2:GetWebACLForResource", | ||
| "wafv2:AssociateWebACL", | ||
| "wafv2:DisassociateWebACL" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "shield:DescribeProtection", | ||
| "shield:GetSubscriptionState", | ||
| "shield:DeleteProtection", | ||
| "shield:CreateProtection", | ||
| "shield:DescribeSubscription", | ||
| "shield:ListProtections" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "aps:RemoteWrite", | ||
| "aps:GetSeries", | ||
| "aps:GetLabels", | ||
| "aps:GetMetricMetadata" | ||
| ], | ||
| "Resource": "*" | ||
| }, | ||
| { | ||
| "Effect": "Allow", | ||
| "Action": [ | ||
| "iam:GetRole", | ||
| "iam:PassRole", | ||
| "iam:CreateServiceLinkedRole", | ||
| "iam:ListAttachedRolePolicies", | ||
| "kms:Encrypt", | ||
| "kms:Decrypt", | ||
| "eks:*", | ||
| "s3:*" | ||
| ], | ||
| "Resource": [ | ||
| "*" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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,40 @@ | ||
| { | ||
| "AWSTemplateFormatVersion": "2010-09-09", | ||
| "Parameters": { | ||
| "Name": { | ||
| "Type": "String", | ||
| "Default": "eks-service-role", | ||
| "Description": "Names of the role." | ||
| } | ||
| }, | ||
| "Resources": { | ||
| "RootRole": { | ||
| "Type": "AWS::IAM::Role", | ||
| "Properties": { | ||
| "RoleName" : { | ||
| "Ref": "Name" | ||
| }, | ||
| "AssumeRolePolicyDocument": { | ||
| "Version": "2012-10-17", | ||
| "Statement": [ | ||
| { | ||
| "Effect": "Allow", | ||
| "Principal": { | ||
| "Service": [ | ||
| "eks-gamma.aws.internal", | ||
| "eks.amazonaws.com", | ||
| "eks-beta.aws.internal" | ||
| ] | ||
| }, | ||
| "Action": "sts:AssumeRole" | ||
| } | ||
| ] | ||
| }, | ||
| "ManagedPolicyArns": [ | ||
| "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy", | ||
| "arn:aws:iam::aws:policy/AmazonEKSServicePolicy" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.