fix
This commit is contained in:
42
share/authentik/authentik_Service.tf
Normal file
42
share/authentik/authentik_Service.tf
Normal file
@@ -0,0 +1,42 @@
|
||||
resource "kubectl_manifest" "Service_metrics" {
|
||||
yaml_body = <<-EOF
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: "${var.instance}-${var.component}-metrics"
|
||||
namespace: ${var.namespace}
|
||||
labels: ${jsonencode(local.metrics_all_labels)}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: metrics
|
||||
protocol: TCP
|
||||
port: 9300
|
||||
targetPort: metrics
|
||||
selector: ${jsonencode(local.server_labels)}
|
||||
EOF
|
||||
}
|
||||
|
||||
resource "kubectl_manifest" "Service_server" {
|
||||
yaml_body = <<-EOF
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: "${var.instance}-${var.component}"
|
||||
namespace: ${var.namespace}
|
||||
labels: ${jsonencode(local.server_all_labels)}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 9000
|
||||
- name: https
|
||||
protocol: TCP
|
||||
port: 443
|
||||
targetPort: 9443
|
||||
selector: ${jsonencode(local.server_labels)}
|
||||
EOF
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user