Skip to content

Commit 0d2f001

Browse files
committed
Migrated from MuShop 4.0.0
Signed-off-by: junior <junior@users.noreply.github.com>
1 parent 0b68659 commit 0d2f001

38 files changed

+3454
-0
lines changed

terraform/.terraform.lock.hcl

Lines changed: 149 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terraform/LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
2+
3+
The Universal Permissive License (UPL), Version 1.0
4+
5+
Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this
6+
software, associated documentation and/or data (collectively the "Software"), free of charge and under any and
7+
all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor
8+
hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or
9+
(ii) the Larger Works (as defined below), to deal in both
10+
11+
(a) the Software, and
12+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software
13+
(each a “Larger Work” to which the Software is contributed by such licensors),
14+
15+
without restriction, including without limitation the rights to copy, create derivative works of, display,
16+
perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have
17+
sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms.
18+
19+
This license is subject to the following condition:
20+
The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must
21+
be included in all copies or substantial portions of the Software.
22+
23+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
24+
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
26+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
27+
IN THE SOFTWARE.

terraform/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#

terraform/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.2.2

terraform/datasources.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
# Gets home and current regions
6+
data "oci_identity_tenancy" "tenant_details" {
7+
tenancy_id = var.tenancy_ocid
8+
9+
provider = oci.current_region
10+
}
11+
12+
data "oci_identity_regions" "home_region" {
13+
filter {
14+
name = "key"
15+
values = [data.oci_identity_tenancy.tenant_details.home_region_key]
16+
}
17+
18+
provider = oci.current_region
19+
}

terraform/module-cluster-tools.tf

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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+
module "cluster-tools" {
6+
source = "./modules/cluster-tools"
7+
8+
# Oracle Cloud Infrastructure Tenancy and Compartment OCID
9+
tenancy_ocid = var.tenancy_ocid
10+
compartment_ocid = var.compartment_ocid
11+
region = var.region
12+
13+
# Cluster Tools
14+
## Ingress
15+
ingress_nginx_enabled = var.ingress_nginx_enabled
16+
ingress_load_balancer_shape = var.ingress_load_balancer_shape
17+
ingress_load_balancer_shape_flex_min = var.ingress_load_balancer_shape_flex_min
18+
ingress_load_balancer_shape_flex_max = var.ingress_load_balancer_shape_flex_max
19+
20+
## Cert Manager
21+
cert_manager_enabled = var.cert_manager_enabled
22+
23+
## Metrics Server
24+
metrics_server_enabled = var.metrics_server_enabled
25+
26+
## Prometheus
27+
prometheus_enabled = var.prometheus_enabled
28+
29+
## Grafana
30+
grafana_enabled = var.grafana_enabled
31+
32+
depends_on = [module.oke]
33+
}
34+
35+
# Kubernetes Cluster Tools
36+
## Ingress/LoadBalancer
37+
variable "ingress_nginx_enabled" {
38+
default = true
39+
description = "Enable Ingress Nginx for Kubernetes Services (This option provision a Load Balancer)"
40+
}
41+
variable "ingress_load_balancer_shape" {
42+
default = "flexible" # Flexible, 10Mbps, 100Mbps, 400Mbps or 8000Mps
43+
description = "Shape that will be included on the Ingress annotation for the OCI Load Balancer creation"
44+
}
45+
variable "ingress_load_balancer_shape_flex_min" {
46+
default = "10"
47+
description = "Enter the minimum size of the flexible shape."
48+
}
49+
variable "ingress_load_balancer_shape_flex_max" {
50+
default = "100" # From 10 to 8000. Cannot be lower than flex_min
51+
description = "Enter the maximum size of the flexible shape (Should be bigger than minimum size). The maximum service limit is set by your tenancy limits."
52+
}
53+
54+
## Cert Manager
55+
variable "cert_manager_enabled" {
56+
default = false
57+
description = "Enable x509 Certificate Management"
58+
}
59+
60+
## Metrics Server
61+
variable "metrics_server_enabled" {
62+
default = true
63+
description = "Enable Metrics Server for Metrics, HPA, VPA and Cluster Autoscaler"
64+
}
65+
66+
## Prometheus
67+
variable "prometheus_enabled" {
68+
default = true
69+
description = "Enable Prometheus"
70+
}
71+
72+
## Grafana
73+
variable "grafana_enabled" {
74+
default = false
75+
description = "Enable Grafana Dashboards. Includes example dashboards and Prometheus, OCI Logging and OCI Metrics datasources"
76+
}

0 commit comments

Comments
 (0)