Skip to content

Addition of configMap.yaml file #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion delfin-kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ All the dependant components deployment which are necessary for the functioning
This is tested with single node kubernetes cluster

## Documentation
[https://docs.sodafoundation.io](https://docs.sodafoundation.io/)
[Link to delfin deployment on kubernetes doccumentation](https://docs.sodafoundation.io/guides/developer-guides/delfin/delfin-kubernetes-guide/)
59 changes: 59 additions & 0 deletions delfin-kubernetes/deploy/configMap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
apiVersion: v1
data:
api-paste.ini: |
#############
# Delfin #
#############

[composite:delfin]
use = call:delfin.api:root_app_factory
/v1: delfin_api_v1

[filter:http_proxy_to_wsgi]
paste.filter_factory = oslo_middleware.http_proxy_to_wsgi:HTTPProxyToWSGI.factory

[pipeline:delfin_api_v1]
pipeline = cors http_proxy_to_wsgi context_wrapper delfin_api_v1app

[app:delfin_api_v1app]
paste.app_factory = delfin.api.v1.router:APIRouter.factory

[filter:context_wrapper]
paste.filter_factory = delfin.api.middlewares:ContextWrapper.factory

[filter:cors]
paste.filter_factory = oslo_middleware.cors:filter_factory
oslo_config_project = delfin
delfin.conf: |
[DEFAULT]
api_paste_config = /etc/delfin/api-paste.ini
delfin_cryptor = delfin.cryptor._Base64
api_max_limit = 1000
# Uncomment or add exporters
# performance_exporters = PerformanceExporterPrometheus, PerformanceExporterKafka
# alert_exporters = AlertExporterPrometheus
host = vineela
[database]
connection = sqlite:////var/lib/delfin/delfin.sqlite
db_backend = sqlalchemy

[TELEMETRY]
performance_collection_interval = 900

[KAFKA_EXPORTER]
kafka_topic_name = "delfin-kafka"
kafka_ip = 'localhost'
kafka_port = '9092'

[PROMETHEUS_EXPORTER]
metric_server_ip = 0.0.0.0
metric_server_port = 8195
metrics_cache_file = /var/lib/delfin/delfin_exporter.txt

[PROMETHEUS_ALERT_MANAGER_EXPORTER]
alert_manager_host = 'localhost'
alert_manager_port = '9093'
kind: ConfigMap
metadata:
name: delfin-config

2 changes: 1 addition & 1 deletion delfin-kubernetes/deploy/delfin-alert-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
value: redis:6379
- name: OS_DEFAULT__TRANSPORT_URL
value: rabbit://delfinuser:delfinpass@rabbitmq:5672//
image: sodafoundation/delfin:k8s
image: sodafoundation/delfin:v1.5.0
name: delfin-alert
ports:
- containerPort: 162
Expand Down
2 changes: 1 addition & 1 deletion delfin-kubernetes/deploy/delfin-api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
value: redis:6379
- name: OS_DEFAULT__TRANSPORT_URL
value: rabbit://delfinuser:delfinpass@rabbitmq:5672//
image: sodafoundation/delfin:k8s
image: sodafoundation/delfin:v1.5.0
name: delfin-api
ports:
- containerPort: 8190
Expand Down
2 changes: 1 addition & 1 deletion delfin-kubernetes/deploy/delfin-exporter-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
value: rabbit://delfinuser:delfinpass@rabbitmq:5672//
- name: OS_PROMETHEUS_EXPORTER__METRICS_DIR
value: /var/lib/delfin/metrics
image: sodafoundation/delfin:k8s
image: sodafoundation/delfin:v1.5.0
name: delfin-exporter
ports:
- containerPort: 8195
Expand Down
2 changes: 1 addition & 1 deletion delfin-kubernetes/deploy/delfin-task-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
value: rabbit://delfinuser:delfinpass@rabbitmq:5672//
- name: OS_PROMETHEUS_EXPORTER__METRICS_DIR
value: /var/lib/delfin/metrics
image: sodafoundation/delfin:k8s
image: sodafoundation/delfin:v1.5.0
name: delfin-task
resources: {}
volumeMounts:
Expand Down