From 27fcfefc5877e0ec3d9fb06132938b3659770c12 Mon Sep 17 00:00:00 2001 From: vedfordev Date: Wed, 11 Sep 2024 16:46:10 +0530 Subject: [PATCH] (#39) | created | cluster and service --- .../superset/kubernetes/cluster.yml | 24 +++++++++++++++++++ .../kubernetes/superset-prod-service.yml | 19 +++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 reportingSystem/superset/kubernetes/cluster.yml create mode 100644 reportingSystem/superset/kubernetes/superset-prod-service.yml diff --git a/reportingSystem/superset/kubernetes/cluster.yml b/reportingSystem/superset/kubernetes/cluster.yml new file mode 100644 index 0000000..db797cf --- /dev/null +++ b/reportingSystem/superset/kubernetes/cluster.yml @@ -0,0 +1,24 @@ +apiVersion: eksctl.io/v1alpha5 + +kind: ClusterConfig + +metadata: + name: avni-cluster + region: ap-south-1 + tags: + creator: avni-cluster + +nodeGroups: + - name: supersetprod + instanceType: t2.micro + amiFamily: Ubuntu2204 # need to check + instancePrefix: "avni-cluster-superset" + desiredCapacity: 1 + minSize: 1 + maxSize: 1 + tags: + environment: prod + app: superset + labels: + environment: prod + app: superset \ No newline at end of file diff --git a/reportingSystem/superset/kubernetes/superset-prod-service.yml b/reportingSystem/superset/kubernetes/superset-prod-service.yml new file mode 100644 index 0000000..5354d7f --- /dev/null +++ b/reportingSystem/superset/kubernetes/superset-prod-service.yml @@ -0,0 +1,19 @@ +apiVersion: v1 + +kind: Service + +metadata: + name: superset-prod-service + labels: + app: superset + environment: prod + +spec: + type: ClusterIP + selector: + app: superset + environment: prod + ports: + - protocol: TCP + port: 8088 # Service port + targetPort: 8088 # Target port on the Superset container