You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Updated private networking docs to include kubernetes tfvars example, and removed deployment button.
* Include instance principal in OKE setup and remove it from console.
* Added instance_principal to examples.
* Don't use instance principal by default.
* Updated instance principal description.
# New configuration to avoid Terraform Kubernetes provider interpolation. https://registry.terraform.io/providers/hashicorp/kubernetes/2.2.0/docs#stacking-with-managed-kubernetes-cluster-resources
Copy file name to clipboardExpand all lines: cluster_creation_terraform/schema.yaml
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,13 @@ variableGroups:
28
28
- title: "Advanced Configuration?"
29
29
variables:
30
30
- show_advanced
31
+
32
+
- title: "Authentication Method"
33
+
variables:
34
+
- use_instance_principal
35
+
visible:
36
+
and:
37
+
- show_advanced
31
38
32
39
- title: "Network Configuration"
33
40
variables:
@@ -63,6 +70,16 @@ variables:
63
70
description: "Shows advanced options, allowing enable customer-managed encryption keys, select your ssh key, select/unselect cluster utilities, do not create policies, and other advanced options"
64
71
visible: true
65
72
73
+
use_instance_principal:
74
+
description: "Terraform provider will use Instance Principal authentication instead of user credentials. Requires the compute instance to have appropriate IAM policies."
Copy file name to clipboardExpand all lines: docs/advanced/deploying_blueprints_to_private_networks/README.md
+20-16Lines changed: 20 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,24 @@ We do not create new completely locked down private subnets, but we do support t
8
8
9
9
Deploying into a private subnet may likely mean the subsequent Blueprints deployment cannot be installed with the "Stack", as the stack communicates with the cluster over a public endpoint from the internet. If it is acceptable for you to have a public API endpoint but only private worker nodes, **return to the original deployment in [getting started](../../../GETTING_STARTED_README.md)**, otherwise continue.
10
10
11
-
[](https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://github.com/oracle-quickstart/oci-ai-blueprints/releases/download/v1.0.3/v1.0.3_cluster.zip)
11
+
## Terraform Setup
12
12
13
-
1. Click **Deploy to Oracle Cloud** above.
13
+
It may be preferable for some users to deploy with terraform in the scenario where you bring your own network. If your networking setup does not allow for installation via the stack deployment in the OCI console, it is still possible to deploy with terraform locally using the following steps:
14
+
15
+
1. Setup a bastion or get on a workstation with the ability to communicate with your cluster's API Endpoint. An example document is given above.
16
+
2. Install the Terraform CLI from [here](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli) from the bastioned host.
17
+
3. Install the OCI CLI from [here](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm) and configure authentication in your `~/.oci/config` according to [this](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliconfigure.htm).
18
+
4. Clone our GitHub repository locally, and change directory into `oci-ai-blueprints/oci_ai_blueprints_terraform`
19
+
5. Initialize the terraform with `terraform init`.
20
+
6. Create a tfvars file in that directory called `terraform.tfvars`. The minimum variables needed are in [example_cluster_tfvars.md](./example_cluster_tfvars.md) and [example_blueprints_tfvars.md](./example_blueprints_tfvars.md) for each respective stack.
21
+
7. Run a `terraform plan` to ensure nothing is missing.
22
+
8. Run a `terraform apply` to install the Blueprints platform on your OKE cluster.
23
+
24
+
**Note**: When deploying with terraform, it is important that you specify the correct stack version in the tfvars file. If you use an older version of the stack, this will be used for the blueprints version running in the control plane. If a mistake happens, it is very easy to modify the tfvars file to the correct stack version and reapply your changes, which would force an updated container pull.
25
+
26
+
## Console based deployment for OKE
27
+
28
+
1. Click on the deployment button in [this section](../../../GETTING_STARTED_README.md#step-2-deploy-the-vcn-and-oke-cluster), which will take you to the OKE deployment stack.
14
29
2. In **Create Stack**:
15
30
- Give your stack a **name** (e.g., _oke-stack_).
16
31
- Select the **compartment** where you want OCI AI Blueprints deployed.
@@ -24,19 +39,8 @@ For documentation on access and networking configurations for locked down enviro
24
39
-[Kubernetes API Endpoint Subnet Configuration](https://docs.oracle.com/en-us/iaas/Content/ContEng/Concepts/contengnetworkconfig.htm#subnetconfig__section_kcm_v2b_s4b)
25
40
-[Setting Up a Bastion for Cluster Access](https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengsettingupbastion.htm#contengsettingupbastion)
26
41
27
-
---
28
-
29
-
## Deploying Blueprints with Terraform
30
-
31
-
If your networking setup does not allow for installation via the stack deployment in the OCI console, it is still possible to deploy with terraform locally using the following steps:
42
+
## Console based deployment for Blueprints
32
43
33
-
1. Setup a bastion or get on a workstation with the ability to communicate with your cluster's API Endpoint. An example document is given above.
34
-
2. Install the Terraform CLI from [here](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli) from the bastioned host.
35
-
3. Install the OCI CLI from [here](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm) and configure authentication in your `~/.oci/config` according to [this](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliconfigure.htm).
36
-
4. Clone our GitHub repository locally, and change directory into `oci-ai-blueprints/oci_ai_blueprints_terraform`
37
-
5. Initialize the terraform with `terraform init`.
38
-
6. Create a tfvars file in that directory called `terraform.tfvars`. The minimum variables needed are in [example_tfvars.md](./example_tfvars.md).
39
-
7. Run a `terraform plan` to ensure nothing is missing.
40
-
8. Run a `terraform apply` to install the Blueprints platform on your OKE cluster.
44
+
This document describes deploying blueprints into private networks. Since private networks are generally blocked from the console, see the terraform steps above.
41
45
42
-
Depending on your setup, you may need to either setup a windows server or submit API calls directly from code from trusted sources.
46
+
If you are not blocked from the console, the only change to make from the default deployment is to set **Load Balancer Visibility** to **Private** which is under the **Public Endpoints** section.
Copy file name to clipboardExpand all lines: oci_ai_blueprints_terraform/schema.yaml
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -508,9 +508,9 @@ variables:
508
508
use_instance_principal:
509
509
type: boolean
510
510
title: "Use Instance Principal Authentication"
511
-
description: "Enable this to use Instance Principal authentication instead of user credentials. Requires the compute instance to have appropriate IAM policies."
511
+
description: "Terraform provider will use Instance Principal authentication instead of user credentials. Requires the compute instance to have appropriate IAM policies."
512
512
default: false
513
-
visible: true
513
+
visible: false
514
514
515
515
private_key_path:
516
516
visible: false
@@ -1395,6 +1395,5 @@ outputs:
1395
1395
use_instance_principal:
1396
1396
type: boolean
1397
1397
title: "Use Instance Principal Authentication"
1398
-
description: "Enable this to use Instance Principal authentication instead of user credentials. Requires the compute instance to have appropriate IAM policies."
1399
-
default: false
1398
+
description: "Terraform provider will use Instance Principal authentication instead of user credentials. Requires the compute instance to have appropriate IAM policies."
0 commit comments