From 5ffd4768149536a8a97982f1fabac97ba0b626ce Mon Sep 17 00:00:00 2001 From: Yunkon Kim Date: Wed, 24 Jan 2024 18:07:53 +0900 Subject: [PATCH] Add manifests initially --- deployments/kubernetes/deployment.yaml | 33 ++++++++++++++++++++++++++ deployments/kubernetes/service.yaml | 14 +++++++++++ 2 files changed, 47 insertions(+) create mode 100644 deployments/kubernetes/deployment.yaml create mode 100644 deployments/kubernetes/service.yaml diff --git a/deployments/kubernetes/deployment.yaml b/deployments/kubernetes/deployment.yaml new file mode 100644 index 0000000..110703d --- /dev/null +++ b/deployments/kubernetes/deployment.yaml @@ -0,0 +1,33 @@ +# Deployment object for the cb-tumblebug +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cm-beetle-deployment + namespace: cloud-barista # Change this to your desired namespace +spec: + replicas: 1 + selector: + matchLabels: + app: cm-beetle + template: + metadata: + name: cm-beetle-pod + labels: + app: cm-beetle + spec: + containers: + - name: cm-beetle + image: ghcr.io/cloud-barista/cm-beetle:latest + ports: + - containerPort: 8056 + env: + - name: API_USERNAME + value: "default" + - name: API_PASSWORD + value: "default" + - name: AUTOCONTROL_DURATION_MS + value: "10000" + - name: SELF_ENDPOINT + value: "localhost:1323" + - name: API_DOC_PATH + value: "/app/pkg/api/rest/docs/swagger.json" diff --git a/deployments/kubernetes/service.yaml b/deployments/kubernetes/service.yaml new file mode 100644 index 0000000..ffc5123 --- /dev/null +++ b/deployments/kubernetes/service.yaml @@ -0,0 +1,14 @@ +# Service object for the cb-tumblebug +apiVersion: v1 +kind: Service +metadata: + name: cm-beetle-svc + namespace: cloud-barista +spec: + ports: + - name: cm-beetle-service-port + port: 8056 # Expose this port externally + targetPort: 8056 # Port on the pod + selector: + app: cm-beetle + type: LoadBalancer