aiwantaozi / terraform-kubernetes-rabbitmq

Deploy containerized RabbitMQ service on Kubernetes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kubernetes RabbitMQ Template

Terraform module which deploys containerized RabbitMQ on Kubernetes, powered by Bitnami Charts/RabbitMQ.

Usage

module "rabbitmq" {
  source = "..."

  infrastructure = {
    namespace = "default"
  }

  engine_version = "3.11"         # https://hub.docker.com/r/bitnami/rabbitmq/tags
}

Examples

Contributing

Please read our contributing guide if you're interested in contributing to Walrus template.

Requirements

Name Version
terraform >= 1.0
helm >= 2.0.0
random >= 3.5.1

Providers

Name Version
random >= 3.5.1
helm >= 2.0.0

Modules

No modules.

Resources

Name Type
helm_release.rabbitmq resource
random_password.password resource
random_string.name_suffix resource

Inputs

Name Description Type Default Required
context Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field.

Examples:
context:
project:
name: string
id: string
environment:
name: string
id: string
resource:
name: string
id: string
map(any) {} no
infrastructure Specify the infrastructure information for deploying.

Examples:
infrastructure:
namespace: string, optional
image_registry: string, optional
domain_suffix: string, optional
object({
namespace = optional(string)
image_registry = optional(string, "registry-1.docker.io")
domain_suffix = optional(string, "cluster.local")
})
{} no
engine_version Specify the deployment engine version, select from https://hub.docker.com/r/bitnami/rabbitmq/tags. string "3.11" no
username Specify the account username. string "user" no
password Specify the account password. string null no
resources Specify the computing resources.

Examples:
resources:
cpu: number, optional
memory: number, optioanl # in megabyte
object({
cpu = number
memory = number
})
{
"cpu": 0.25,
"memory": 256
}
no
storage Specify the storage resources.

Examples:
storage:                         # convert to empty_dir volume or dynamic volume claim template
class: string, optional
size: number, optional # in megabyte
object({
class = optional(string)
size = optional(number, 20 * 1024)
})
null no

Outputs

Name Description
context The input context, a map, which is used for orchestration.
selector The selector, a map, which is used for dependencies or collaborations.
endpoint_internal The internal amqp endpoints, a string list, which are used for internal access.
username The username of rabbitmq service.
password The password of rabbitmq service.

License

Copyright (c) 2023 Seal, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at LICENSE file for details.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Deploy containerized RabbitMQ service on Kubernetes.

License:Apache License 2.0


Languages

Language:Shell 74.9%Language:HCL 20.8%Language:Makefile 4.3%