171 lines
4.5 KiB
YAML
171 lines
4.5 KiB
YAML
# apiVersion: temporal.io/v1alpha1
|
|
# kind: WorkerDeployment
|
|
# metadata:
|
|
# name: proteus-prod
|
|
# namespace: proteus
|
|
# spec:
|
|
# replicas: 2
|
|
# workerOptions:
|
|
# temporalNamespace: prod-atlantis
|
|
# connectionRef:
|
|
# name: temporal
|
|
# rollout:
|
|
# strategy: AllAtOnce
|
|
# sunset: {}
|
|
# template:
|
|
# spec:
|
|
# securityContext:
|
|
# runAsUser: 0
|
|
# runAsGroup: 0
|
|
# volumes:
|
|
# - name: archives
|
|
# persistentVolumeClaim:
|
|
# claimName: proteus-ceph-archives
|
|
# containers:
|
|
# - name: proteus
|
|
# image: git.oceanbox.io/oceanbox/poseidon/proteus:v2.17.0
|
|
# resources:
|
|
# requests:
|
|
# cpu: "1"
|
|
# memory: 1Gi
|
|
# limits:
|
|
# cpu: "2"
|
|
# memory: 4Gi
|
|
# env:
|
|
# - name: TEMPORAL_TASK_QUEUES
|
|
# value: plume,xtract
|
|
# - name: TEMPORAL_NAMESPACE
|
|
# value: prod-atlantis
|
|
# - name: APP_ENV
|
|
# value: prod
|
|
# - name: ARCHIVE_PVC
|
|
# value: prod-queue-ceph-archives
|
|
# - name: MAX_CONCURRENT_ACTIVITIES
|
|
# value: "2"
|
|
# - name: OTEL_EXPORTER_OTLP_ENDPOINT
|
|
# value: http://10.255.241.12:4317
|
|
# volumeMounts:
|
|
# - name: archives
|
|
# mountPath: /data
|
|
# ports:
|
|
# - name: health
|
|
# containerPort: 8080
|
|
# livenessProbe:
|
|
# httpGet:
|
|
# path: /healthz
|
|
# port: health
|
|
# initialDelaySeconds: 20
|
|
# periodSeconds: 15
|
|
# timeoutSeconds: 5
|
|
# failureThreshold: 6
|
|
# readinessProbe:
|
|
# httpGet:
|
|
# path: /readyz
|
|
# port: health
|
|
# initialDelaySeconds: 5
|
|
# periodSeconds: 15
|
|
# timeoutSeconds: 5
|
|
# failureThreshold: 3
|
|
# ---
|
|
# apiVersion: temporal.io/v1alpha1
|
|
# kind: WorkerDeployment
|
|
# metadata:
|
|
# name: proteus-beta
|
|
# namespace: proteus
|
|
# spec:
|
|
# replicas: 1
|
|
# workerOptions:
|
|
# temporalNamespace: beta-atlantis
|
|
# connectionRef:
|
|
# name: temporal
|
|
# rollout:
|
|
# strategy: AllAtOnce
|
|
# sunset: {}
|
|
# template:
|
|
# spec:
|
|
# securityContext:
|
|
# runAsUser: 0
|
|
# runAsGroup: 0
|
|
# containers:
|
|
# - name: proteus
|
|
# image: git.oceanbox.io/oceanbox/poseidon/proteus:CHANGEME
|
|
# resources:
|
|
# requests:
|
|
# memory: 256Mi
|
|
# limits:
|
|
# memory: 1Gi
|
|
# env:
|
|
# - name: TEMPORAL_TASK_QUEUES
|
|
# value: plume,xtract
|
|
# - name: TEMPORAL_NAMESPACE
|
|
# value: beta-atlantis
|
|
# - name: APP_ENV
|
|
# value: beta
|
|
# - name: ARCHIVE_PVC
|
|
# value: prod-queue-ceph-archives
|
|
---
|
|
apiVersion: temporal.io/v1alpha1
|
|
kind: WorkerDeployment
|
|
metadata:
|
|
name: proteus-staging
|
|
namespace: proteus
|
|
spec:
|
|
replicas: 1
|
|
workerOptions:
|
|
temporalNamespace: staging-atlantis
|
|
connectionRef:
|
|
name: temporal
|
|
rollout:
|
|
strategy: AllAtOnce
|
|
sunset: {}
|
|
template:
|
|
spec:
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
volumes:
|
|
- name: archives
|
|
persistentVolumeClaim:
|
|
claimName: proteus-ceph-archives
|
|
containers:
|
|
- name: proteus
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
resources:
|
|
requests:
|
|
cpu: 500m
|
|
memory: 1Gi
|
|
limits:
|
|
cpu: "2"
|
|
memory: 4Gi
|
|
env:
|
|
- name: TEMPORAL_TASK_QUEUES
|
|
value: plume,xtract
|
|
- name: TEMPORAL_NAMESPACE
|
|
value: staging-atlantis
|
|
- name: MAX_CONCURRENT_ACTIVITIES
|
|
value: "10"
|
|
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
|
value: http://10.255.241.12:4317
|
|
volumeMounts:
|
|
- name: archives
|
|
mountPath: /data
|
|
ports:
|
|
- name: health
|
|
containerPort: 8080
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: health
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 15
|
|
timeoutSeconds: 5
|
|
failureThreshold: 6
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: health
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 15
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|