Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
terraform_module
/
no_probe_standard_template
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 25a25456
authored
May 22, 2024
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add annotations
1 parent
9185b43f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
main.tf
variables.tf
main.tf
View file @
25a2545
...
...
@@ -50,9 +50,9 @@ module "deployment" {
}
]
#domian map to /etc/hosts
#domian map to /etc/hosts
hosts = [
for host_list in var.hosts:
for host_list in var.hosts
:
{
hostname = host_list.hostname,
ip = host_list.ip
...
...
@@ -88,8 +88,8 @@ module "ingress" {
ingress_name = local.name
service_namespace = local.namespace
service_name = local.name
rule = [
annotations = var.annotations
rule
= [
{
domain = var.domain_name
external_port = var.ports[0] // Service port
...
...
variables.tf
View file @
25a2545
...
...
@@ -85,7 +85,6 @@ variable "walrus_metadata_namespace_name" {
}
# @label "应用日志挂载卷名"
# @group "Advanced"
variable "app_log_path_volume_name" {
...
...
@@ -150,3 +149,7 @@ variable "hosts" {
description = "(Optional) Add /etc/hosts records to pods"
default = []
}
variable "annotations" {
description = "(Optional) Custom Annotations"
default = null
}
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