Skip to content

Commit dc9de62

Browse files
authored
Merge pull request #14 from junior/verrazzano-single-cluster-example
Verrazzano single cluster example
2 parents 2c97084 + ce2b9c6 commit dc9de62

File tree

5 files changed

+66
-1
lines changed

5 files changed

+66
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Terraform Oracle Container Engine for Kubernetes ([OKE][oke]) Quickstart Module
22

33
---
4-
## *** **_NOTE:_** This is a pre-release version of the module, some features have not been migrated from MuShop's OKE Cluster deployment. ***
4+
> __Warning__
55
6+
$${\color{red}This \space is \space a \space pre-release \space version \space of \space the \space module, \space some \space features}$$
7+
$${\color{red}have \space not \space been \space migrated \space from \space MuShop's}$$
8+
$${\color{red}OKE \space Cluster \space deployment \space yet.}$$
69
---
710

811
[![Stack Release](https://img.shields.io/github/v/release/oracle-quickstart/terraform-oci-oke-quickstart.svg)](https://github.com/oracle-quickstart/terraform-oci-oke-quickstart/releases)

modules/cluster-tools/cluster-tools.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ resource "kubernetes_namespace" "cluster_tools" {
77
metadata {
88
name = var.cluster_tools_namespace
99
}
10+
11+
count = local.use_cluster_tools_namespace ? 1 : 0
1012
}
1113

1214
locals {
@@ -23,6 +25,7 @@ locals {
2325
metrics_server = "https://kubernetes-sigs.github.io/metrics-server"
2426
metrics_server_version = "3.8.2"
2527
}
28+
use_cluster_tools_namespace = (var.grafana_enabled || var.ingress_nginx_enabled || var.cert_manager_enabled || var.prometheus_enabled) ? true : false
2629
}
2730

2831
# OCI Provider
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
#
4+
5+
# Verrazzano Operator Helm Chart
6+
7+
resource "helm_release" "v8o_operator" {
8+
name = "verrazzano-operator"
9+
chart = "${path.module}/charts/verrazzano-operator"
10+
namespace = var.chart_namespace
11+
12+
set {
13+
name = "issuer.email"
14+
value = var.ingress_email_issuer
15+
}
16+
17+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
#
4+
5+
terraform {
6+
required_version = ">= 1.1"
7+
required_providers {
8+
helm = {
9+
source = "hashicorp/helm"
10+
version = "~> 2"
11+
# https://registry.terraform.io/providers/hashicorp/helm/
12+
}
13+
tls = {
14+
source = "hashicorp/tls"
15+
version = "~> 4"
16+
# https://registry.terraform.io/providers/hashicorp/tls/
17+
}
18+
local = {
19+
source = "hashicorp/local"
20+
version = "~> 2"
21+
# https://registry.terraform.io/providers/hashicorp/local/
22+
}
23+
}
24+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
#
4+
5+
# Cert Manager variables
6+
variable "chart_namespace" {
7+
default = "cert-manager"
8+
}
9+
variable "chart_repository" {
10+
default = "https://charts.jetstack.io"
11+
}
12+
variable "chart_version" {
13+
default = "1.9.1"
14+
}
15+
variable "ingress_email_issuer" {
16+
default = "no-reply@example.cloud"
17+
description = "You must replace this email address with your own. The certificate provider will use this to contact you about expiring certificates, and issues related to your account."
18+
}

0 commit comments

Comments
 (0)