Skip to content

Add manifests initially #62

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

Merged
Merged
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
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