fix
This commit is contained in:
@@ -30,6 +30,23 @@ resource "kubectl_manifest" "cm_env_back" {
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "kubectl_manifest" "cm_events" {
|
||||||
|
yaml_body = <<-EOF
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: "${var.instance}-${var.component}-events"
|
||||||
|
labels: ${jsonencode(local.common_labels)}
|
||||||
|
namespace: ${var.namespace}
|
||||||
|
data:
|
||||||
|
env.template: |-
|
||||||
|
RABBITMQ_URL="amqp://$${RABBITMQ_USER}:$${RABBITMQ_PASS}@$${TAIGA_EVENTS_RABBITMQ_HOST}:5672/taiga"
|
||||||
|
SECRET="$${TAIGA_SECRET_KEY}"
|
||||||
|
WEB_SOCKET_SERVER_PORT=8888
|
||||||
|
APP_PORT=3023
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
resource "kubectl_manifest" "cm_env_front" {
|
resource "kubectl_manifest" "cm_env_front" {
|
||||||
yaml_body = <<-EOF
|
yaml_body = <<-EOF
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
@@ -57,6 +57,14 @@ resource "kubectl_manifest" "Deployment_taiga-events" {
|
|||||||
timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
volumeMounts:
|
||||||
|
- name: files
|
||||||
|
mountPath: /taiga-events/docker/env.template
|
||||||
|
subPath: env.template
|
||||||
|
volumes:
|
||||||
|
- name: files
|
||||||
|
configMap:
|
||||||
|
name: ${kubectl_manifest.cm_events.name}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
# livenessProbe:
|
# livenessProbe:
|
||||||
|
|||||||
Reference in New Issue
Block a user