Skip to content

Commit b64a6af

Browse files
Fix the wrong repo in cloud init (#30)
* Add instructions for adding a service account * Update manifest link * Update Terraform template
1 parent 091fa2f commit b64a6af

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

terraform/cloud-init/ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Add OKE repo & install the package
4-
add-apt-repository -y ''deb [trusted=yes] https://objectstorage.us-ashburn-1.oraclecloud.com/p/1_NbjfnPPmyyklGibGM-qEpujw9jEpWSLa9mXEIUFCFYqqHdUh5cFAWbj870h-g0/n/hpc_limited_availability/b/oke_node_packages/o/1.29.1/ubuntu stable main'
4+
add-apt-repository -y 'deb [trusted=yes] https://objectstorage.us-ashburn-1.oraclecloud.com/p/1_NbjfnPPmyyklGibGM-qEpujw9jEpWSLa9mXEIUFCFYqqHdUh5cFAWbj870h-g0/n/hpc_limited_availability/b/oke_node_packages/o/1.29.1/ubuntu stable main'
55

66
apt install -y oci-oke-node-all=1.29.1*
77

terraform/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module "oke" {
22
source = "oracle-terraform-modules/oke/oci"
3-
version = "5.1.7"
3+
version = "5.1.8"
44

55
# Provider
66
providers = { oci.home = oci.home }
@@ -34,6 +34,8 @@ module "oke" {
3434
description = "Operational pool", enabled = true,
3535
disable_default_cloud_init=true,
3636
mode = "node-pool",
37+
image_type = "custom",
38+
image_id = var.operational_pool_image,
3739
boot_volume_size = 150,
3840
shape = "VM.Standard.E4.Flex",
3941
ocpus = 16,

terraform/variables.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ variable "compartment_id" { type = string }
66
variable "ssh_public_key_path" { type = string }
77
variable "ssh_private_key_path" { type = string }
88

9-
variable system_pool_image { default = "" }
9+
variable operational_pool_image { default = "" }
1010
variable gpu_image { default = "" }
1111
variable gpu_shape { default = "" }
1212
variable kubernetes_version { default = "v1.29.1" }
1313
variable cluster_type { default = "enhanced" }
14-
variable cluster_name { default = "gpu-cluster" }
1514
variable cni_type {default = "flannel"}
1615
variable cluster_name { default = "oke-gpu-rdma-quickstart" }

0 commit comments

Comments
 (0)