Skip to content

Commit

Permalink
Fix the wrong repo in cloud init (#30)
Browse files Browse the repository at this point in the history
* Add instructions for adding a service account

* Update manifest link

* Update Terraform template
  • Loading branch information
OguzPastirmaci authored Aug 2, 2024
1 parent 091fa2f commit b64a6af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion terraform/cloud-init/ubuntu.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Add OKE repo & install the package
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'
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'

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

Expand Down
4 changes: 3 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "oke" {
source = "oracle-terraform-modules/oke/oci"
version = "5.1.7"
version = "5.1.8"

# Provider
providers = { oci.home = oci.home }
Expand Down Expand Up @@ -34,6 +34,8 @@ module "oke" {
description = "Operational pool", enabled = true,
disable_default_cloud_init=true,
mode = "node-pool",
image_type = "custom",
image_id = var.operational_pool_image,
boot_volume_size = 150,
shape = "VM.Standard.E4.Flex",
ocpus = 16,
Expand Down
3 changes: 1 addition & 2 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ variable "compartment_id" { type = string }
variable "ssh_public_key_path" { type = string }
variable "ssh_private_key_path" { type = string }

variable system_pool_image { default = "" }
variable operational_pool_image { default = "" }
variable gpu_image { default = "" }
variable gpu_shape { default = "" }
variable kubernetes_version { default = "v1.29.1" }
variable cluster_type { default = "enhanced" }
variable cluster_name { default = "gpu-cluster" }
variable cni_type {default = "flannel"}
variable cluster_name { default = "oke-gpu-rdma-quickstart" }

0 comments on commit b64a6af

Please sign in to comment.