{{- if eq .Values.environment "prod" }} 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: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" 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 {{- end }} --- {{- if eq .Values.environment "beta" }} 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 volumes: - name: archives persistentVolumeClaim: claimName: proteus-ceph-archives containers: - name: proteus image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" resources: requests: cpu: 250m memory: 256Mi 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 - 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 {{- end }} --- {{- if eq .Values.environment "staging" }} 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: 250m memory: 256Mi limits: memory: 1Gi 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 {{- end }}