Added RabbitMQ to the platform
This commit is contained in:
parent
f220e86357
commit
eea5a056fe
9 changed files with 186 additions and 0 deletions
18
argocd-apps/platform/platform-rabbitmq.yaml
Normal file
18
argocd-apps/platform/platform-rabbitmq.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: platform-rabbitmq
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: platform
|
||||||
|
source:
|
||||||
|
repoURL: https://www.symcrest.com/internal/dev/forgejo/symcrest/k8s-platform.git
|
||||||
|
targetRevision: main
|
||||||
|
path: rendered/platform-rabbitmq
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: platform-services
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: false
|
||||||
|
selfHeal: true
|
||||||
6
charts/plane/Chart.yaml
Normal file
6
charts/plane/Chart.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: v2
|
||||||
|
name: plane-wrapper
|
||||||
|
description: Symcrest wrapper chart for Plane routing
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "0.28.0"
|
||||||
2
charts/plane/upstream-values.yaml
Normal file
2
charts/plane/upstream-values.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Plane official Helm chart values
|
||||||
|
# We will adjust these after inspecting the chart defaults.
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
plane:
|
||||||
|
basePath: /internal/dev/plane
|
||||||
|
|
||||||
|
route:
|
||||||
|
name: plane
|
||||||
|
namespace: plane
|
||||||
|
gatewayName: public-gateway
|
||||||
|
gatewayNamespace: apps
|
||||||
|
hostnames:
|
||||||
|
- symcrest.com
|
||||||
|
- www.symcrest.com
|
||||||
|
serviceName: plane-web
|
||||||
|
servicePort: 80
|
||||||
6
charts/platform-rabbitmq/Chart.yaml
Normal file
6
charts/platform-rabbitmq/Chart.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: v2
|
||||||
|
name: platform-rabbitmq
|
||||||
|
description: Symcrest platform RabbitMQ
|
||||||
|
type: application
|
||||||
|
version: 0.1.0
|
||||||
|
appVersion: "4.3.2"
|
||||||
16
charts/platform-rabbitmq/templates/service.yaml
Normal file
16
charts/platform-rabbitmq/templates/service.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: platform-rabbitmq
|
||||||
|
namespace: {{ .Values.namespace }}
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: platform-rabbitmq
|
||||||
|
ports:
|
||||||
|
- name: amqp
|
||||||
|
port: 5672
|
||||||
|
targetPort: 5672
|
||||||
|
- name: management
|
||||||
|
port: 15672
|
||||||
|
targetPort: 15672
|
||||||
45
charts/platform-rabbitmq/templates/statefulset.yaml
Normal file
45
charts/platform-rabbitmq/templates/statefulset.yaml
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: platform-rabbitmq
|
||||||
|
namespace: {{ .Values.namespace }}
|
||||||
|
spec:
|
||||||
|
serviceName: platform-rabbitmq
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: platform-rabbitmq
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: platform-rabbitmq
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 999
|
||||||
|
fsGroupChangePolicy: "OnRootMismatch"
|
||||||
|
containers:
|
||||||
|
- name: rabbitmq
|
||||||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
|
ports:
|
||||||
|
- name: amqp
|
||||||
|
containerPort: 5672
|
||||||
|
- name: management
|
||||||
|
containerPort: 15672
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: {{ .Values.auth.existingSecret }}
|
||||||
|
volumeMounts:
|
||||||
|
- name: rabbitmq-data
|
||||||
|
mountPath: /var/lib/rabbitmq
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: rabbitmq-data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: {{ .Values.storage.className | quote }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.storage.size | quote }}
|
||||||
15
charts/platform-rabbitmq/values.yaml
Normal file
15
charts/platform-rabbitmq/values.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
namespace: platform-services
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: rabbitmq
|
||||||
|
tag: "4.3.2-management-alpine"
|
||||||
|
|
||||||
|
auth:
|
||||||
|
existingSecret: platform-rabbitmq-secret
|
||||||
|
|
||||||
|
storage:
|
||||||
|
className: longhorn
|
||||||
|
size: 5Gi
|
||||||
|
|
||||||
|
nodeSelector:
|
||||||
|
workload: app
|
||||||
65
rendered/platform-rabbitmq/platform-rabbitmq.yaml
Normal file
65
rendered/platform-rabbitmq/platform-rabbitmq.yaml
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
---
|
||||||
|
# Source: platform-rabbitmq/templates/service.yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: platform-rabbitmq
|
||||||
|
namespace: platform-services
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: platform-rabbitmq
|
||||||
|
ports:
|
||||||
|
- name: amqp
|
||||||
|
port: 5672
|
||||||
|
targetPort: 5672
|
||||||
|
- name: management
|
||||||
|
port: 15672
|
||||||
|
targetPort: 15672
|
||||||
|
---
|
||||||
|
# Source: platform-rabbitmq/templates/statefulset.yaml
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: platform-rabbitmq
|
||||||
|
namespace: platform-services
|
||||||
|
spec:
|
||||||
|
serviceName: platform-rabbitmq
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: platform-rabbitmq
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: platform-rabbitmq
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
workload: app
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 999
|
||||||
|
fsGroupChangePolicy: "OnRootMismatch"
|
||||||
|
containers:
|
||||||
|
- name: rabbitmq
|
||||||
|
image: "rabbitmq:4.3.2-management-alpine"
|
||||||
|
ports:
|
||||||
|
- name: amqp
|
||||||
|
containerPort: 5672
|
||||||
|
- name: management
|
||||||
|
containerPort: 15672
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: platform-rabbitmq-secret
|
||||||
|
volumeMounts:
|
||||||
|
- name: rabbitmq-data
|
||||||
|
mountPath: /var/lib/rabbitmq
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: rabbitmq-data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: "longhorn"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: "5Gi"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue