fix(ingest): Use a versioned worker
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
apiVersion: temporal.io/v1alpha1
|
||||
kind: Connection
|
||||
metadata:
|
||||
name: temporal
|
||||
namespace: ingest
|
||||
spec:
|
||||
hostPort: temporal-frontend.temporal:7233
|
||||
@@ -1,46 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ingest
|
||||
namespace: ingest
|
||||
labels:
|
||||
app.kubernetes.io/name: ingest
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: ingest
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: ingest
|
||||
spec:
|
||||
# Run as the data uid/gid so files are owned correctly. No fsGroup: it would
|
||||
# recursively chown the whole shared CephFS volume on every mount.
|
||||
securityContext:
|
||||
runAsUser: 5000
|
||||
runAsGroup: 5000
|
||||
containers:
|
||||
- name: ingest
|
||||
image: git.oceanbox.io/oceanbox/churn/ingest:v2.0.4
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: TEMPORAL_ADDRESS
|
||||
value: temporal-frontend.temporal:7233
|
||||
- name: TEMPORAL_NAMESPACE
|
||||
value: prod-ingest
|
||||
- name: TEMPORAL_TASK_QUEUE
|
||||
value: ingest
|
||||
- name: DATA_ROOT
|
||||
value: /data/hdd/data
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 128Mi
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: ekman-data
|
||||
@@ -0,0 +1,33 @@
|
||||
apiVersion: temporal.io/v1alpha1
|
||||
kind: WorkerDeployment
|
||||
metadata:
|
||||
name: ingest
|
||||
namespace: ingest
|
||||
spec:
|
||||
replicas: 1
|
||||
workerOptions:
|
||||
temporalNamespace: prod-ingest
|
||||
connectionRef:
|
||||
name: temporal
|
||||
rollout:
|
||||
strategy: AllAtOnce
|
||||
sunset: {}
|
||||
template:
|
||||
spec:
|
||||
# Run as the data uid/gid; no fsGroup
|
||||
securityContext:
|
||||
runAsUser: 5000
|
||||
runAsGroup: 5000
|
||||
containers:
|
||||
- name: ingest
|
||||
image: git.oceanbox.io/oceanbox/churn/ingest:v2.1.0
|
||||
env:
|
||||
- name: DATA_ROOT
|
||||
value: /data/hdd/data
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: ekman-data
|
||||
Reference in New Issue
Block a user