Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
terraform_module
/
scrm_deploy_module
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c2c00fb6
authored
Oct 25, 2023
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update
1 parent
a3125367
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
23 deletions
main.tf
main.tf
View file @
c2c00fb
...
...
@@ -12,8 +12,8 @@ module "deployment" {
#
wait_for_rollout = false
source = "
terraform-iaac/deployment/kubernetes
"
version = "1.4.
2
"
source = "
git::http://192.168.3.233:8090/terraform_module/terraform-kubernetes-deployment.git
"
version = "1.4.
3
"
name = local.name
namespace = local.namespace
...
...
@@ -24,22 +24,22 @@ module "deployment" {
request_memory = var.request_memory == "" ? null : var.request_memory
limit_memory = var.limit_memory == "" ? null : var.limit_memory
}
env = var.env
labels = var.custom_labels
env
= var.env
labels
= var.custom_labels
readiness_probe = {
http_get = {
path = "/"
port = var.probe_http_port
scheme = "HTTP"
http_get = {
path = "/"
port = var.probe_http_port
scheme = "HTTP"
}
success_threshold = 1
failure_threshold = 3
initial_delay_seconds = 10
period_seconds = 30
timeout_seconds = 3
}
success_threshold = 1
failure_threshold = 3
initial_delay_seconds = 10
period_seconds = 30
timeout_seconds = 3
}
volume_host_path = [
volume_host_path = [
{
volume_name = var.volume_logs
path_on_node = "/data/java_log"
...
...
@@ -54,19 +54,21 @@ module "deployment" {
module "service" {
source = "
terraform-iaac/service/kubernetes
"
source = "
git::http://192.168.3.233:8090/terraform_module/terraform-kubernetes-service.git
"
version = "1.0.4"
app_name = local.name
app_namespace = local.namespace
type = "NodePort"
port_mapping = [for p in var.ports :
{
name = "port-${p}"
internal_port = p
external_port = p
protocol = "TCP"
}]
port_mapping = [
for p in var.ports :
{
name = "port-${p}"
internal_port = p
external_port = p
protocol = "TCP"
}
]
}
data "kubernetes_service" "service" {
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment