Skip to content

Commit

Permalink
fix: update Getting Started Terraform Tutorial files (#42)
Browse files Browse the repository at this point in the history
* docs: add tf files for the getting started tutorial

* fix: address review suggestions

* docs: fix azure azs issue

* fix: add k9s to the container image, review grammar of docker.md

* fix: add terraform tests

* fix: addressed review suggestions

* fix: update spectro provider version, cluster profile logic, and broken tag

* fix: metallb pack type

* docs: fix merge conflicts in dockerfile

* docs: update pack and images version

* fix: bump azure k8s version, update presets manifest

* fix: bump metallb pack version
  • Loading branch information
caroldelwing authored Sep 24, 2024
1 parent 77882b1 commit 0f82cff
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
10 changes: 5 additions & 5 deletions terraform/getting-started-deployment-tf/cluster_profiles.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ resource "spectrocloud_cluster_profile" "aws-profile" {
values = templatefile("manifests/values-3tier.yaml", {
namespace = var.app_namespace,
port = var.app_port,
replicas = var.replicas_number
replicas = var.replicas_number,
db_password = base64encode(var.db_password),
auth_token = base64encode(var.auth_token)
})
Expand Down Expand Up @@ -113,7 +113,7 @@ resource "spectrocloud_cluster_profile" "aws-profile-kubecost" {
values = templatefile("manifests/values-3tier.yaml", {
namespace = var.app_namespace,
port = var.app_port,
replicas = var.replicas_number
replicas = var.replicas_number,
db_password = base64encode(var.db_password),
auth_token = base64encode(var.auth_token)
})
Expand Down Expand Up @@ -181,7 +181,7 @@ resource "spectrocloud_cluster_profile" "azure-profile" {
values = templatefile("manifests/values-3tier.yaml", {
namespace = var.app_namespace,
port = var.app_port,
replicas = var.replicas_number
replicas = var.replicas_number,
db_password = base64encode(var.db_password),
auth_token = base64encode(var.auth_token)
})
Expand Down Expand Up @@ -241,7 +241,7 @@ resource "spectrocloud_cluster_profile" "azure-profile-kubecost" {
values = templatefile("manifests/values-3tier.yaml", {
namespace = var.app_namespace,
port = var.app_port,
replicas = var.replicas_number
replicas = var.replicas_number,
db_password = base64encode(var.db_password),
auth_token = base64encode(var.auth_token)
})
Expand Down Expand Up @@ -310,7 +310,7 @@ resource "spectrocloud_cluster_profile" "gcp-profile" {
values = templatefile("manifests/values-3tier.yaml", {
namespace = var.app_namespace,
port = var.app_port,
replicas = var.replicas_number
replicas = var.replicas_number,
db_password = base64encode(var.db_password),
auth_token = base64encode(var.auth_token)
})
Expand Down
4 changes: 2 additions & 2 deletions terraform/getting-started-deployment-tf/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ data "spectrocloud_pack" "azure_cni" {

data "spectrocloud_pack" "azure_k8s" {
name = "kubernetes"
version = "1.27.5"
version = "1.30.4"
registry_uid = data.spectrocloud_registry.public_registry.id
}

Expand Down Expand Up @@ -143,7 +143,7 @@ data "spectrocloud_pack" "vmware_csi" {

data "spectrocloud_pack" "vmware_metallb" {
name = "lb-metallb-helm"
version = "0.13.11"
version = "0.14.8"
registry_uid = data.spectrocloud_registry.public_registry.id
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,21 @@ manifests:
replicas: ${replicas}
dbPassword: ${db_password} # Add base64 encoded password
authToken: ${auth_token} # Add base64 encoded token
ui:
useTolerations: false
tolerations:
effect: PreferNoSchedule
key: app
value: ui
api:
useTolerations: false
tolerations:
effect: PreferNoSchedule
key: app
value: api
postgres:
useTolerations: false
tolerations:
effect: PreferNoSchedule
key: app
value: postgres

0 comments on commit 0f82cff

Please sign in to comment.