diff --git a/grabdish/deploy.sh b/grabdish/deploy.sh index bdae69e..b269f1c 100755 --- a/grabdish/deploy.sh +++ b/grabdish/deploy.sh @@ -3,7 +3,7 @@ # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. #MS="frontend-helidon order-helidon supplier-helidon-se inventory-helidon inventory-springboot" -MS="frontend-helidon order-helidon supplier-helidon-se inventory-helidon foodwinepairing-python" +MS="frontend-helidon order-helidon supplier-helidon-se inventory-helidon" for s in $MS; do echo ________________________________________ echo "Deploying $s..." diff --git a/infra/k8s/oke/terraform/containerengine.tf b/infra/k8s/oke/terraform/containerengine.tf index 62d5dde..e28e808 100644 --- a/infra/k8s/oke/terraform/containerengine.tf +++ b/infra/k8s/oke/terraform/containerengine.tf @@ -39,7 +39,7 @@ resource "oci_containerengine_node_pool" "okell_node_pool" { compartment_id = var.ociCompartmentOcid kubernetes_version = var.kubernetes_version name = "Pool" - node_shape = "VM.Standard.E2.1" + node_shape = "VM.Standard.E3.Flex" node_config_details { placement_configs { availability_domain = data.oci_identity_availability_domain.ad1.name @@ -51,6 +51,12 @@ resource "oci_containerengine_node_pool" "okell_node_pool" { image_id = local.oracle_linux_images.0 # Latest source_type = "IMAGE" } + + node_shape_config { + memory_in_gbs = 16 # Specify the memory size in GBs + ocpus = 1 # Specify the number of OCPUs + } + } data "oci_containerengine_node_pool_option" "okell_node_pool_option" { diff --git a/infra/k8s/oke/terraform/main_var.tf b/infra/k8s/oke/terraform/main_var.tf index 2278add..4ebfde0 100644 --- a/infra/k8s/oke/terraform/main_var.tf +++ b/infra/k8s/oke/terraform/main_var.tf @@ -9,5 +9,5 @@ variable "vcnOcid" {} variable "kubernetes_version" { description = "OKE Version" type = string - default = "v1.29.1" + default = "v1.31.1" } diff --git a/workshops/dcms-oci/config/threads/k8s/apply.sh b/workshops/dcms-oci/config/threads/k8s/apply.sh index 0f10153..9aa5323 100755 --- a/workshops/dcms-oci/config/threads/k8s/apply.sh +++ b/workshops/dcms-oci/config/threads/k8s/apply.sh @@ -12,7 +12,7 @@ fi # Wait for dependencies -DEPENDENCIES='COMPARTMENT_OCID OCI_REGION TENANCY_OCID OKE_LIMIT_CHECK' +DEPENDENCIES='COMPARTMENT_OCID OCI_REGION TENANCY_OCID' while ! test -z "$DEPENDENCIES"; do echo "Waiting for $DEPENDENCIES" WAITING_FOR="" @@ -24,48 +24,6 @@ while ! test -z "$DEPENDENCIES"; do DEPENDENCIES="$WAITING_FOR" sleep 1 done - - -# Provision the VCN, unless live labs -if ! state_done VCN_OCID; then - if test $(state_get RUN_TYPE) != "LL"; then - # Need to provision network - STATE=$DCMS_INFRA_STATE/network - mkdir -p $STATE - cd $STATE - cat >$STATE/input.env <$STATE/input.env < $OUTPUT_FILE -state_set_done K8S_THREAD \ No newline at end of file +#state_set_done K8S_THREAD \ No newline at end of file diff --git a/workshops/dcms-oci/config/threads/k8s/apply0.sh b/workshops/dcms-oci/config/threads/k8s/apply0.sh new file mode 100644 index 0000000..0f10153 --- /dev/null +++ b/workshops/dcms-oci/config/threads/k8s/apply0.sh @@ -0,0 +1,71 @@ +#!/bin/bash +# Copyright (c) 2021 Oracle and/or its affiliates. +# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. + +# Fail on error +set -e + + +if ! provisioning-helper-pre-apply; then + exit 1 +fi + + +# Wait for dependencies +DEPENDENCIES='COMPARTMENT_OCID OCI_REGION TENANCY_OCID OKE_LIMIT_CHECK' +while ! test -z "$DEPENDENCIES"; do + echo "Waiting for $DEPENDENCIES" + WAITING_FOR="" + for d in $DEPENDENCIES; do + if ! state_done $d; then + WAITING_FOR="$WAITING_FOR $d" + fi + done + DEPENDENCIES="$WAITING_FOR" + sleep 1 +done + + +# Provision the VCN, unless live labs +if ! state_done VCN_OCID; then + if test $(state_get RUN_TYPE) != "LL"; then + # Need to provision network + STATE=$DCMS_INFRA_STATE/network + mkdir -p $STATE + cd $STATE + cat >$STATE/input.env <$STATE/input.env < $OUTPUT_FILE +state_set_done K8S_THREAD \ No newline at end of file