Skip to content

Commit

Permalink
Add manifests initially
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-github-robot authored Jan 24, 2024
2 parents cd9c84d + 5ffd476 commit 46a3ef8
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
33 changes: 33 additions & 0 deletions deployments/kubernetes/deployment.yaml
Original file line number Diff line number Diff line change
@@ -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"
14 changes: 14 additions & 0 deletions deployments/kubernetes/service.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 46a3ef8

Please sign in to comment.