From e234a036bffe7eeea1f1a86865e725ab1ec249d7 Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Thu, 13 Jun 2024 14:25:12 -0800 Subject: [PATCH] remove piko --- apps/base/chisel/README.md | 3 + apps/base/piko/kustomization.yaml | 7 --- apps/base/piko/namespace.yaml | 4 -- apps/base/piko/release.yaml | 93 ------------------------------ apps/production/kustomization.yaml | 2 +- t.wip.tiltfile | 6 +- 6 files changed, 7 insertions(+), 108 deletions(-) create mode 100644 apps/base/chisel/README.md delete mode 100644 apps/base/piko/kustomization.yaml delete mode 100644 apps/base/piko/namespace.yaml delete mode 100644 apps/base/piko/release.yaml diff --git a/apps/base/chisel/README.md b/apps/base/chisel/README.md new file mode 100644 index 0000000..e7db1da --- /dev/null +++ b/apps/base/chisel/README.md @@ -0,0 +1,3 @@ +# @todo + +Chisel is not running in the cluster. This is a nice-to-have for DX in the future. (for now, it runs on a VPS) \ No newline at end of file diff --git a/apps/base/piko/kustomization.yaml b/apps/base/piko/kustomization.yaml deleted file mode 100644 index 026ca9d..0000000 --- a/apps/base/piko/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -namespace: futureporn -resources: - - namespace.yaml - - repository.yaml - - release.yaml diff --git a/apps/base/piko/namespace.yaml b/apps/base/piko/namespace.yaml deleted file mode 100644 index 727c1e6..0000000 --- a/apps/base/piko/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: piko diff --git a/apps/base/piko/release.yaml b/apps/base/piko/release.yaml deleted file mode 100644 index f2cb261..0000000 --- a/apps/base/piko/release.yaml +++ /dev/null @@ -1,93 +0,0 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: piko - labels: - app: piko -spec: - ports: - - port: 8000 - name: proxy - - port: 8001 - name: upstream - - port: 8002 - name: admin - - port: 8003 - name: gossip - clusterIP: None - selector: - app: piko - ---- -apiVersion: v1 -kind: ConfigMap -metadata: - name: server-config -data: - server.yaml: | - cluster: - node_id_prefix: ${POD_NAME}- - join: - - piko - - ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: piko -spec: - selector: - matchLabels: - app: piko - serviceName: "piko" - replicas: 3 - template: - metadata: - labels: - app: piko - spec: - terminationGracePeriodSeconds: 60 - containers: - - name: piko - image: my-repo/piko:latest - ports: - - containerPort: 8000 - name: proxy - - containerPort: 8001 - name: upstream - - containerPort: 8002 - name: admin - - containerPort: 8003 - name: gossip - args: - - server - - --config.path - - /config/server.yaml - - --config.expand-env - resources: - limits: - cpu: 250m - ephemeral-storage: 1Gi - memory: 1Gi - requests: - cpu: 250m - ephemeral-storage: 1Gi - memory: 1Gi - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - volumeMounts: - - name: config - mountPath: "/config" - readOnly: true - volumes: - - name: config - configMap: - name: server-config - items: - - key: "server.yaml" - path: "server.yaml" \ No newline at end of file diff --git a/apps/production/kustomization.yaml b/apps/production/kustomization.yaml index d7669f9..fd8d3ac 100644 --- a/apps/production/kustomization.yaml +++ b/apps/production/kustomization.yaml @@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../base/podinfo - - ../base/piko + # - ../base/chisel - ../base/windmill - ../base/fp patches: diff --git a/t.wip.tiltfile b/t.wip.tiltfile index 9fe14d8..2c90b24 100644 --- a/t.wip.tiltfile +++ b/t.wip.tiltfile @@ -230,11 +230,12 @@ docker_build( 'fp/scout-worker', '.', only=['./pnpm-lock.yaml', './package.json', './packages/scout', './packages/next'], - # ignore=['./packages/next'], + # ignore=['./packages/next'], # I wish I could use this ignore to ignore file changes in this dir, but that's not how it works dockerfile='d.scout.dockerfile', target='worker', - # cache_from='localhost:5001', live_update=[ + # idk if this run() is effective + # run('cd /app && pnpm i', trigger=['./packages/scout/package.json', './packages/scout/pnpm-lock.yaml']), sync('./packages/scout', '/app'), ## this is a hack to avoid complete scout image rebuilds when src in ./packages/next is updated ## ./packages/next needs to be in the build context because scout depends on types exported from next module (a feature of pnpm workspaces) @@ -242,7 +243,6 @@ docker_build( ## ideally, I would like to include ./packages/next in the build context, but ignore file changes there for rebuilds. ## however, I don't think tilt has this capability. sync('./packages/next', '/ignore-me'), - run('cd /app && pnpm i', trigger=['./packages/scout/package.json', './packages/scout/pnpm-lock.yaml']), ], entrypoint='pnpm nodemon --ext js,ts,json,yaml --exec node --no-warnings=ExperimentalWarning --loader ts-node/esm ./src/temporal/worker.ts' )