64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: django-configmap
|
|
data:
|
|
settings_local.py: |-
|
|
{{- .Files.Get "settings_local.py" | indent 4 }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: rabbitmq-configmap
|
|
data:
|
|
definitions.json: |-
|
|
{
|
|
"permissions": [
|
|
{
|
|
"configure": ".*",
|
|
"read": ".*",
|
|
"user": "datatracker",
|
|
"vhost": "dt",
|
|
"write": ".*"
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"hashing_algorithm": "rabbit_password_hashing_sha256",
|
|
"limits": {},
|
|
"name": "datatracker",
|
|
"password_hash": "HJxcItcpXtBN+R/CH7dUelfKBOvdUs3AWo82SBw2yLMSguzb",
|
|
"tags": []
|
|
}
|
|
],
|
|
"vhosts": [
|
|
{
|
|
"limits": [],
|
|
"metadata": {
|
|
"description": "",
|
|
"tags": []
|
|
},
|
|
"name": "dt"
|
|
}
|
|
]
|
|
}
|
|
rabbitmq.conf: |-
|
|
# prevent guest from logging in over tcp
|
|
loopback_users.guest = true
|
|
|
|
# load saved definitions
|
|
load_definitions = /etc/rabbitmq/definitions.json
|
|
|
|
# Ensure that enough disk is available to flush to disk. To do this, need to limit the
|
|
# memory available to the container to something reasonable. See
|
|
# https://www.rabbitmq.com/production-checklist.html#monitoring-and-resource-usage
|
|
# for recommendations.
|
|
|
|
# 1-1.5 times the memory available to the container is adequate for disk limit
|
|
disk_free_limit.absolute = 6000MB
|
|
|
|
# This should be ~40% of the memory available to the container. Use an
|
|
# absolute number because relative will be proprtional to the full machine
|
|
# memory.
|
|
vm_memory_high_watermark.absolute = 1600MB
|