This commit is contained in:
2024-05-09 12:15:27 +02:00
parent 89c17cb483
commit 599d175f82
31 changed files with 830 additions and 866 deletions

View File

@@ -6,25 +6,15 @@ metadata:
name: traefik-ui
description: Access to the Traefik UI
options:
sub_domain:
default: traefik
examples:
- traefik
type: string
domain:
default: your-company
examples:
- your-company
type: string
app_group:
default: infra
examples:
- infra
type: string
issuer:
default: letsencrypt-prod
domain:
default: your-company
examples:
- letsencrypt-prod
- your-company
type: string
domain_name:
default: your_company.com
@@ -36,6 +26,16 @@ options:
examples:
- traefik
type: string
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
sub_domain:
default: traefik
examples:
- traefik
type: string
dependencies:
- dist: null
category: share
@@ -45,6 +45,7 @@ providers:
authentik: true
kubectl: true
postgresql: null
mysql: null
restapi: true
http: true
gitea: null

View File

@@ -8,7 +8,7 @@ locals {
Authorization = "Bearer ${data.kubernetes_secret_v1.authentik.data["AUTHENTIK_BOOTSTRAP_TOKEN"]}"
}
service = {
"name" = "${var.component}-${var.instance}"
"name" = "${var.instance}-${var.component}"
"port" = {
"number" = 80
}

View File

@@ -3,7 +3,7 @@ resource "kubectl_manifest" "service" {
apiVersion: v1
kind: Service
metadata:
name: "${var.component}-${var.instance}"
name: "${var.instance}-${var.component}"
namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)}
spec: