fix
This commit is contained in:
107
share/dataset-rabbit/index.yaml
Normal file
107
share/dataset-rabbit/index.yaml
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
---
|
||||||
|
apiVersion: vinyl.solidite.fr/v1beta1
|
||||||
|
kind: Component
|
||||||
|
category: share
|
||||||
|
metadata:
|
||||||
|
name: dataset-rabbit
|
||||||
|
description: null
|
||||||
|
options:
|
||||||
|
ressources:
|
||||||
|
default:
|
||||||
|
limits:
|
||||||
|
cpu: '2'
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
cpu: '1'
|
||||||
|
memory: 2Gi
|
||||||
|
examples:
|
||||||
|
- limits:
|
||||||
|
cpu: '2'
|
||||||
|
memory: 2Gi
|
||||||
|
requests:
|
||||||
|
cpu: '1'
|
||||||
|
memory: 2Gi
|
||||||
|
properties:
|
||||||
|
limits:
|
||||||
|
default:
|
||||||
|
cpu: '2'
|
||||||
|
memory: 2Gi
|
||||||
|
properties:
|
||||||
|
cpu:
|
||||||
|
default: '2'
|
||||||
|
type: string
|
||||||
|
memory:
|
||||||
|
default: 2Gi
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
requests:
|
||||||
|
default:
|
||||||
|
cpu: '1'
|
||||||
|
memory: 2Gi
|
||||||
|
properties:
|
||||||
|
cpu:
|
||||||
|
default: '1'
|
||||||
|
type: string
|
||||||
|
memory:
|
||||||
|
default: 2Gi
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
replicas:
|
||||||
|
default: 1
|
||||||
|
examples:
|
||||||
|
- 1
|
||||||
|
type: integer
|
||||||
|
storage:
|
||||||
|
default: 8Gi
|
||||||
|
examples:
|
||||||
|
- 8Gi
|
||||||
|
type: string
|
||||||
|
images:
|
||||||
|
default:
|
||||||
|
rabbit:
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
registry: docker.io
|
||||||
|
repository: rabbitmq
|
||||||
|
tag: 3.10.2-management
|
||||||
|
examples:
|
||||||
|
- rabbit:
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
registry: docker.io
|
||||||
|
repository: rabbitmq
|
||||||
|
tag: 3.10.2-management
|
||||||
|
properties:
|
||||||
|
rabbit:
|
||||||
|
default:
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
registry: docker.io
|
||||||
|
repository: rabbitmq
|
||||||
|
tag: 3.10.2-management
|
||||||
|
properties:
|
||||||
|
pullPolicy:
|
||||||
|
default: IfNotPresent
|
||||||
|
enum:
|
||||||
|
- Always
|
||||||
|
- Never
|
||||||
|
- IfNotPresent
|
||||||
|
type: string
|
||||||
|
registry:
|
||||||
|
default: docker.io
|
||||||
|
type: string
|
||||||
|
repository:
|
||||||
|
default: rabbitmq
|
||||||
|
type: string
|
||||||
|
tag:
|
||||||
|
default: 3.10.2-management
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
|
dependencies: []
|
||||||
|
providers:
|
||||||
|
kubernetes: true
|
||||||
|
authentik: null
|
||||||
|
kubectl: true
|
||||||
|
postgresql: null
|
||||||
|
restapi: null
|
||||||
|
http: null
|
||||||
|
tfaddtype: null
|
||||||
28
share/dataset-rabbit/rabbit.tf
Normal file
28
share/dataset-rabbit/rabbit.tf
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
locals {
|
||||||
|
rabbit-labels = merge(local.common-labels, {
|
||||||
|
"app.kubernetes.io/component" = "rabbit"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "kubectl_manifest" "rabbit" {
|
||||||
|
yaml_body = <<-EOF
|
||||||
|
apiVersion: rabbitmq.com/v1beta1
|
||||||
|
kind: RabbitmqCluster
|
||||||
|
metadata:
|
||||||
|
name: "${var.instance}-${var.component}"
|
||||||
|
namespace: "${var.namespace}"
|
||||||
|
labels: ${jsonencode(local.rabbit-labels)}
|
||||||
|
spec:
|
||||||
|
image: "${var.images.rabbit.registry}/${var.images.rabbit.repository}:${var.images.rabbit.tag}"
|
||||||
|
persistence:
|
||||||
|
storage: "${var.storage}"
|
||||||
|
replicas: ${var.replicas}
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "${var.ressources.limits.cpu}"
|
||||||
|
memory: "${var.ressources.limits.memory}"
|
||||||
|
requests:
|
||||||
|
cpu: "${var.ressources.requests.cpu}"
|
||||||
|
memory: "${var.ressources.requests.memory}"
|
||||||
|
EOF
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user