Skip to content

Commit

Permalink
Migrated from MuShop 4.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: junior <[email protected]>
  • Loading branch information
junior committed Aug 21, 2022
1 parent 0b68659 commit 0d2f001
Show file tree
Hide file tree
Showing 38 changed files with 3,454 additions and 0 deletions.
149 changes: 149 additions & 0 deletions terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions terraform/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.

The Universal Permissive License (UPL), Version 1.0

Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this
software, associated documentation and/or data (collectively the "Software"), free of charge and under any and
all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor
hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or
(ii) the Larger Works (as defined below), to deal in both

(a) the Software, and
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software
(each a “Larger Work” to which the Software is contributed by such licensors),

without restriction, including without limitation the rights to copy, create derivative works of, display,
perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have
sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms.

This license is subject to the following condition:
The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must
be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
1 change: 1 addition & 0 deletions terraform/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
1 change: 1 addition & 0 deletions terraform/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2.2
19 changes: 19 additions & 0 deletions terraform/datasources.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

# Gets home and current regions
data "oci_identity_tenancy" "tenant_details" {
tenancy_id = var.tenancy_ocid

provider = oci.current_region
}

data "oci_identity_regions" "home_region" {
filter {
name = "key"
values = [data.oci_identity_tenancy.tenant_details.home_region_key]
}

provider = oci.current_region
}
76 changes: 76 additions & 0 deletions terraform/module-cluster-tools.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

module "cluster-tools" {
source = "./modules/cluster-tools"

# Oracle Cloud Infrastructure Tenancy and Compartment OCID
tenancy_ocid = var.tenancy_ocid
compartment_ocid = var.compartment_ocid
region = var.region

# Cluster Tools
## Ingress
ingress_nginx_enabled = var.ingress_nginx_enabled
ingress_load_balancer_shape = var.ingress_load_balancer_shape
ingress_load_balancer_shape_flex_min = var.ingress_load_balancer_shape_flex_min
ingress_load_balancer_shape_flex_max = var.ingress_load_balancer_shape_flex_max

## Cert Manager
cert_manager_enabled = var.cert_manager_enabled

## Metrics Server
metrics_server_enabled = var.metrics_server_enabled

## Prometheus
prometheus_enabled = var.prometheus_enabled

## Grafana
grafana_enabled = var.grafana_enabled

depends_on = [module.oke]
}

# Kubernetes Cluster Tools
## Ingress/LoadBalancer
variable "ingress_nginx_enabled" {
default = true
description = "Enable Ingress Nginx for Kubernetes Services (This option provision a Load Balancer)"
}
variable "ingress_load_balancer_shape" {
default = "flexible" # Flexible, 10Mbps, 100Mbps, 400Mbps or 8000Mps
description = "Shape that will be included on the Ingress annotation for the OCI Load Balancer creation"
}
variable "ingress_load_balancer_shape_flex_min" {
default = "10"
description = "Enter the minimum size of the flexible shape."
}
variable "ingress_load_balancer_shape_flex_max" {
default = "100" # From 10 to 8000. Cannot be lower than flex_min
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."
}

## Cert Manager
variable "cert_manager_enabled" {
default = false
description = "Enable x509 Certificate Management"
}

## Metrics Server
variable "metrics_server_enabled" {
default = true
description = "Enable Metrics Server for Metrics, HPA, VPA and Cluster Autoscaler"
}

## Prometheus
variable "prometheus_enabled" {
default = true
description = "Enable Prometheus"
}

## Grafana
variable "grafana_enabled" {
default = false
description = "Enable Grafana Dashboards. Includes example dashboards and Prometheus, OCI Logging and OCI Metrics datasources"
}
Loading

0 comments on commit 0d2f001

Please sign in to comment.