remove piko
ci / build (push) Waiting to run
Details
ci / build (push) Waiting to run
Details
This commit is contained in:
parent
1a53a7eb90
commit
e234a036bf
|
@ -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)
|
|
@ -1,7 +0,0 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
namespace: futureporn
|
|
||||||
resources:
|
|
||||||
- namespace.yaml
|
|
||||||
- repository.yaml
|
|
||||||
- release.yaml
|
|
|
@ -1,4 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: piko
|
|
|
@ -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"
|
|
|
@ -2,7 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ../base/podinfo
|
- ../base/podinfo
|
||||||
- ../base/piko
|
# - ../base/chisel
|
||||||
- ../base/windmill
|
- ../base/windmill
|
||||||
- ../base/fp
|
- ../base/fp
|
||||||
patches:
|
patches:
|
||||||
|
|
|
@ -230,11 +230,12 @@ docker_build(
|
||||||
'fp/scout-worker',
|
'fp/scout-worker',
|
||||||
'.',
|
'.',
|
||||||
only=['./pnpm-lock.yaml', './package.json', './packages/scout', './packages/next'],
|
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',
|
dockerfile='d.scout.dockerfile',
|
||||||
target='worker',
|
target='worker',
|
||||||
# cache_from='localhost:5001',
|
|
||||||
live_update=[
|
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'),
|
sync('./packages/scout', '/app'),
|
||||||
## this is a hack to avoid complete scout image rebuilds when src in ./packages/next is updated
|
## 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)
|
## ./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.
|
## 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.
|
## however, I don't think tilt has this capability.
|
||||||
sync('./packages/next', '/ignore-me'),
|
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'
|
entrypoint='pnpm nodemon --ext js,ts,json,yaml --exec node --no-warnings=ExperimentalWarning --loader ts-node/esm ./src/temporal/worker.ts'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue