Skip to content

Commit

Permalink
feat(eval/k8s/prose-system): split presidio into separate fluxtomization
Browse files Browse the repository at this point in the history
  • Loading branch information
qlonik committed Jan 7, 2025
1 parent 11a2c91 commit 5682eab
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions evaluation/kubernetes/apps/prose-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ kind: Kustomization
resources:
- ./namespace.yaml
- ./jaeger/ks.yaml
- ./presidio/ks.yaml
- ./prose/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: prose-system
resources:
- deployment.yaml
- service.yaml
16 changes: 16 additions & 0 deletions evaluation/kubernetes/apps/prose-system/presidio/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-prose-system-presidio
namespace: flux-system
spec:
path: ./evaluation/kubernetes/apps/prose-system/presidio/app
prune: true
sourceRef:
kind: GitRepository
name: prose-k8s-home-ops
wait: true
interval: 30m
retryInterval: 1m
timeout: 3m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ namespace: prose-system
resources:
- ./prose-deployment.yaml
- ./prose-service.yaml
- ./presidio-deployment.yaml
- ./presidio-service.yaml
- ./ingress.yaml
2 changes: 2 additions & 0 deletions evaluation/scripts/collect-latencies.mts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ await (async function main() {
echo`* start managing presidio`
await $`flux suspend kustomization cluster-apps-prose-system-prose`
await $`flux suspend kustomization cluster-apps-prose-system-presidio`
await scale_specific_deployments(0, "prose-system", "presidio")
echo`* suspend everything before the test`
Expand Down Expand Up @@ -161,6 +162,7 @@ await (async function main() {
echo`* stop managing presidio`
await scale_specific_deployments(1, "prose-system", "presidio")
await $`flux resume kustomization --wait=false cluster-apps-prose-system-prose`
await $`flux resume kustomization --wait=false cluster-apps-prose-system-presidio`
const completion_time = current_timestamp()
echo`* Completed at ${completion_time}`
Expand Down

0 comments on commit 5682eab

Please sign in to comment.