From 13d1e47adcc92558c8d88e119b3b9b8a201a8850 Mon Sep 17 00:00:00 2001 From: Ilya Kheifets Date: Tue, 10 Sep 2024 11:02:24 +0200 Subject: [PATCH] fix: add flower admin panel Signed-off-by: Ilya Kheifets --- .../templates/worker/flower/deployment.yaml | 23 +++++++++++++++++++ .../templates/worker/flower/service.yaml | 16 +++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 charts/splunk-connect-for-snmp/templates/worker/flower/deployment.yaml create mode 100644 charts/splunk-connect-for-snmp/templates/worker/flower/service.yaml diff --git a/charts/splunk-connect-for-snmp/templates/worker/flower/deployment.yaml b/charts/splunk-connect-for-snmp/templates/worker/flower/deployment.yaml new file mode 100644 index 000000000..c9ef8c37c --- /dev/null +++ b/charts/splunk-connect-for-snmp/templates/worker/flower/deployment.yaml @@ -0,0 +1,23 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: flower + namespace: default +spec: + replicas: 1 + selector: + matchLabels: + app: flower + template: + metadata: + labels: + app: flower + spec: + containers: + - name: flower + image: mher/flower + env: + - name: CELERY_BROKER_URL + value: redis://snmp-redis-headless:6379/0 + ports: + - containerPort: 5555 \ No newline at end of file diff --git a/charts/splunk-connect-for-snmp/templates/worker/flower/service.yaml b/charts/splunk-connect-for-snmp/templates/worker/flower/service.yaml new file mode 100644 index 000000000..f07e908d0 --- /dev/null +++ b/charts/splunk-connect-for-snmp/templates/worker/flower/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: flower-svc + namespace: default + +spec: + selector: + app: flower + ports: + - protocol: TCP + port: 80 + targetPort: 5555 + type: LoadBalancer + externalIPs: + - 10.202.16.140 \ No newline at end of file