Skip to content

Commit

Permalink
upd: Merge remote-tracking branch 'origin/main' into brent/k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
brent-anyscale committed Oct 15, 2024
2 parents c35b881 + de71dae commit 48ec5bb
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Local .terraform directories
**/.terraform/*
.terraform

# Terraform lockfile
.terraform.lock.hcl
Expand Down
35 changes: 23 additions & 12 deletions examples/gcp/gke-existing_cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,29 @@
[![Google Provider Version][badge-tf-google]](https://github.com/terraform-providers/terraform-provider-google/releases)

# Anyscale GCP GKE Example - Existing Cluster
This example creates the resources to run Anyscale on GCP GKE with an existing cluster
**Work in progress**

## Needs to Create:
- DONE - filestore
- DONE - IAM Service Accounts for ControlPlane
- DONE - Firewall
- IAM Service Accounts for Dataplane (?) (needs a cluster role for GKE)
- DONE - storage bucket
- namespace
- helm charts
- configmap

This example creates the resources to run Anyscale on GCP GKE with an existing GKE cluster.

## Known Issues on GKE

- Autopilot GKE clusters are not supported.
- Node auto-provisioning for GKE failing with GPU nodes: https://github.com/GoogleCloudPlatform/container-engine-accelerators/issues/407
- When choosing "GPU Driver installation", select "Google-managed".

## terraform.tfvars

```hcl
anyscale_deploy_env = "..."
anyscale_org_id = "..." # Troubleshooting Org Id
google_region = "..."
google_project_id = "..."
existing_vpc_name = "..."
existing_subnet_name = "..."
customer_ingress_cidr_ranges = "0.0.0.0/0"
gke_endpoint = "..."
gke_ca_certificate = "..."
```

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements
Expand Down
2 changes: 1 addition & 1 deletion modules/anyscale-k8s-helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This module creates Kubernetes helm charts for Anyscale applications and workloa
|------|---------|
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.15.0 |
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.32.0 |
| <a name="provider_time"></a> [time](#provider\_time) | 0.12.0 |
| <a name="provider_time"></a> [time](#provider\_time) | 0.12.1 |

## Modules

Expand Down
37 changes: 37 additions & 0 deletions modules/anyscale-k8s-namespace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,43 @@ This module creates a Kubernetes Namespace for Anyscale.
The Anyscale Namespace can also be created via the Anycsale Helm Chart.

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
| <a name="requirement_kubernetes"></a> [kubernetes](#requirement\_kubernetes) | ~> 2.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.32.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [kubernetes_namespace.anyscale](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_cloud_provider"></a> [cloud\_provider](#input\_cloud\_provider) | (Required) The cloud provider (aws or gcp)<br><br>ex:<pre>cloud_provider = "aws"</pre> | `string` | n/a | yes |
| <a name="input_anyscale_kubernetes_namespace"></a> [anyscale\_kubernetes\_namespace](#input\_anyscale\_kubernetes\_namespace) | (Optional) The name of the Kubernetes namespace.<br><br>ex:<pre>anyscale_kubernetes_namespace = "anyscale-k8s"</pre> | `string` | `"anyscale-k8s"` | no |
| <a name="input_kubernetes_cluster_name"></a> [kubernetes\_cluster\_name](#input\_kubernetes\_cluster\_name) | (Optional) The name of the Kubernetes cluster.<br><br>ex:<pre>kubernetes_cluster_name = "my-cluster"</pre> | `string` | `null` | no |
| <a name="input_module_enabled"></a> [module\_enabled](#input\_module\_enabled) | (Optional) Determines if this module should create resources.<br><br>If set to true, `eks_role_arn`, `anyscale_subnet_ids`, and `anyscale_security_group_id` must be provided.<br>ex:<pre>module_enabled = true</pre> | `bool` | `true` | no |

## Outputs

| Name | Description |
|------|-------------|
| <a name="output_anyscale_kubernetes_namespace_name"></a> [anyscale\_kubernetes\_namespace\_name](#output\_anyscale\_kubernetes\_namespace\_name) | The name of the Kubernetes namespace. |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

<!-- References -->
Expand Down

0 comments on commit 48ec5bb

Please sign in to comment.