Skip to content

Commit

Permalink
upd: AWS EKS Public update for changes to Anyscale helm chart
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   README.md
	modified:   main.tf
	modified:   outputs.tf
  • Loading branch information
brent-anyscale committed Nov 11, 2024
1 parent fe4f3f5 commit 1a0ae18
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 46 deletions.
1 change: 0 additions & 1 deletion examples/aws/eks-public/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ No providers.
| <a name="module_anyscale_eks_cluster"></a> [anyscale\_eks\_cluster](#module\_anyscale\_eks\_cluster) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-eks-cluster | n/a |
| <a name="module_anyscale_eks_nodegroups"></a> [anyscale\_eks\_nodegroups](#module\_anyscale\_eks\_nodegroups) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-eks-nodegroups | n/a |
| <a name="module_anyscale_iam_roles"></a> [anyscale\_iam\_roles](#module\_anyscale\_iam\_roles) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-iam | n/a |
| <a name="module_anyscale_k8s_configmap"></a> [anyscale\_k8s\_configmap](#module\_anyscale\_k8s\_configmap) | ../../../modules/anyscale-k8s-configmap | n/a |
| <a name="module_anyscale_k8s_helm"></a> [anyscale\_k8s\_helm](#module\_anyscale\_k8s\_helm) | ../../../modules/anyscale-k8s-helm | n/a |
| <a name="module_anyscale_k8s_namespace"></a> [anyscale\_k8s\_namespace](#module\_anyscale\_k8s\_namespace) | ../../../modules/anyscale-k8s-namespace | n/a |
| <a name="module_anyscale_s3"></a> [anyscale\_s3](#module\_anyscale\_s3) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-s3 | n/a |
Expand Down
84 changes: 42 additions & 42 deletions examples/aws/eks-public/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ module "anyscale_iam_roles" {

module_enabled = true

create_anyscale_access_role = true
anyscale_trusted_role_arns = var.anyscale_trusted_role_arns
create_anyscale_access_role = true
# anyscale_trusted_role_arns = var.anyscale_trusted_role_arns
create_cluster_node_instance_profile = false

create_iam_s3_policy = true
Expand All @@ -104,9 +104,9 @@ module "anyscale_iam_roles" {
create_anyscale_eks_cluster_role = true
anyscale_eks_cluster_role_name = "anyscale-eks-public-cluster-role"

create_anyscale_eks_node_role = true
anyscale_eks_node_role_name = "anyscale-eks-public-node-role"
anyscale_eks_cluster_name = module.anyscale_eks_cluster.eks_cluster_name
create_anyscale_eks_node_role = true
anyscale_eks_node_role_name_prefix = "anyscale-eks-public-operator-"
anyscale_eks_cluster_name = module.anyscale_eks_cluster.eks_cluster_name

create_eks_ebs_csi_driver_role = true
eks_ebs_csi_role_name = "anyscale-eks-public-ebs-csi-role"
Expand Down Expand Up @@ -419,40 +419,40 @@ module "anyscale_k8s_namespace" {
depends_on = [module.anyscale_eks_cluster]
}

module "anyscale_k8s_configmap" {
source = "../../../modules/anyscale-k8s-configmap"

module_enabled = true
cloud_provider = "aws"

anyscale_kubernetes_namespace = module.anyscale_k8s_namespace.anyscale_kubernetes_namespace_name

anyscale_instance_types = [
{
instanceType = "4CPU-16GB",
CPU = 4,
memory = "16Gi"
},
{
instanceType = "8CPU-32GB"
CPU = 8
memory = "32Gi"
},
{
instanceType = "4CPU-16GB-1xA10"
CPU = 4
GPU = 1
memory = "16Gi"
accelerator_type = { "A10G" = 1 }
},
{
instanceType = "4CPU-16GB-1xT4"
CPU = 4
GPU = 1
memory = "16Gi"
accelerator_type = { "T4" = 1 }
}
]

depends_on = [module.anyscale_eks_cluster, module.anyscale_k8s_helm]
}
# module "anyscale_k8s_configmap" {
# source = "../../../modules/anyscale-k8s-configmap"

# module_enabled = true
# cloud_provider = "aws"

# anyscale_kubernetes_namespace = module.anyscale_k8s_namespace.anyscale_kubernetes_namespace_name

# anyscale_instance_types = [
# {
# instanceType = "4CPU-16GB",
# CPU = 4,
# memory = "16Gi"
# },
# {
# instanceType = "8CPU-32GB"
# CPU = 8
# memory = "32Gi"
# },
# {
# instanceType = "4CPU-16GB-1xA10"
# CPU = 4
# GPU = 1
# memory = "16Gi"
# accelerator_type = { "A10G" = 1 }
# },
# {
# instanceType = "4CPU-16GB-1xT4"
# CPU = 4
# GPU = 1
# memory = "16Gi"
# accelerator_type = { "T4" = 1 }
# }
# ]

# depends_on = [module.anyscale_eks_cluster, module.anyscale_k8s_helm]
# }
4 changes: 1 addition & 3 deletions examples/aws/eks-public/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ output "anyscale_register_command" {
value = <<-EOT
anyscale cloud register --provider aws \
--name <CUSTOMER_DEFINED_NAME> \
--region ${var.aws_region} \
--compute-stack k8s \
--anyscale-iam-role-id ${module.anyscale_iam_roles.iam_anyscale_access_role_arn} \
--region ${var.aws_region} \
--s3-bucket-id ${module.anyscale_s3.s3_bucket_id} \
--efs-id ${module.anyscale_efs.efs_id} \
--kubernetes-namespaces ${module.anyscale_k8s_namespace.anyscale_kubernetes_namespace_name} \
--kubernetes-ingress-external-address ${module.anyscale_k8s_helm.nginx_ingress_lb_hostname[0]} \
--kubernetes-zones ${local.kubernetes_zones} \
--anyscale-operator-iam-identity ${module.anyscale_iam_roles.iam_anyscale_eks_node_role_arn}
EOT
Expand Down

0 comments on commit 1a0ae18

Please sign in to comment.