Skip to content

Commit 5187448

Browse files
committed
feat(komoplane): add deployment and service manifests and catalog registration
- Add deployment and service manifests for Komoplane - Update up.sh script to patch and restart Komoplane - Register Komoplane system and component in Backstage catalog
1 parent c06505d commit 5187448

File tree

4 files changed

+47
-2
lines changed

4 files changed

+47
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: komoplane
5+
labels:
6+
app: komoplane
7+
backstage.io/kubernetes-id: komoplane
8+
backstage.io/kubernetes-namespace: komoplane-system
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
labels:
5+
app: komoplane
6+
backstage.io/kubernetes-id: komoplane
7+
backstage.io/kubernetes-namespace: komoplane-system
8+
name: komoplane

.bootstrap/komoplane/up.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ fi
1212

1313
NS=komoplane-system
1414
PORT=8090
15+
BASE_DIR="$(dirname "$0")"
16+
MANIFESTS_DIR="$BASE_DIR/manifests"
1517

1618
echo "Adding Komodorio Helm repository..."
1719
helm repo add komodorio https://helm-charts.komodor.io 2>/dev/null || true
@@ -37,6 +39,11 @@ kubectl wait --for=condition=available --timeout=120s deployment/komoplane -n "$
3739
exit 1
3840
}
3941

42+
kubectl patch deploy komoplane -n $NS --patch-file $MANIFESTS_DIR/deployment.yaml
43+
kubectl patch svc komoplane -n $NS --patch-file $MANIFESTS_DIR/service.yaml
44+
kubectl rollout restart deployment komoplane -n $NS
45+
kubectl rollout status deployment komoplane -n $NS
46+
4047
# Background port-forward only if not already running
4148
if ! lsof -i TCP:$PORT >/dev/null 2>&1; then
4249
if kubectl get svc/komoplane -n "$NS" >/dev/null 2>&1; then

backstage/catalog/components.yaml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ apiVersion: backstage.io/v1alpha1
2626
kind: System
2727
metadata:
2828
name: argocd
29-
description: TODO
29+
description: Represents the Argo CD system responsible for GitOps-based application deployment and continuous delivery workflows.
30+
spec:
31+
owner: guests
32+
---
33+
apiVersion: backstage.io/v1alpha1
34+
kind: System
35+
metadata:
36+
name: komoplane
37+
description: Represents the Komoplane system, offering a web-based UI to enhance the visibility and management of Crossplane resources.
3038
spec:
3139
owner: guests
3240
---
@@ -77,11 +85,25 @@ apiVersion: backstage.io/v1alpha1
7785
kind: Component
7886
metadata:
7987
name: argocd-server
80-
description: TODO
88+
description: Argo CD Server component responsible for providing the user interface and API server functionalities for managing application deployments through GitOps workflows.
8189
annotations:
8290
backstage.io/kubernetes-id: argocd-server
8391
spec:
8492
type: service
8593
lifecycle: production
8694
owner: guests
8795
system: argocd
96+
---
97+
apiVersion: backstage.io/v1alpha1
98+
kind: Component
99+
metadata:
100+
name: komoplane
101+
description: Komoplane provides a user-friendly interface for visualizing, managing, and interacting with Crossplane resources across clusters.
102+
annotations:
103+
backstage.io/kubernetes-id: komoplane
104+
spec:
105+
type: service
106+
lifecycle: production
107+
owner: guests
108+
system: komoplane
109+

0 commit comments

Comments
 (0)