46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: particleprocessorworker
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: particleprocessorworker
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: particleprocessorworker
|
|
spec:
|
|
serviceAccountName: default-service-account
|
|
nodeSelector:
|
|
cloud.google.com/gke-spot: "true"
|
|
terminationGracePeriodSeconds: 15
|
|
containers:
|
|
- name: particleprocessorworker
|
|
image: "particleprocessorworker"
|
|
resources:
|
|
requests:
|
|
memory: "1Gi"
|
|
cpu: 500m
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: 500m
|
|
env:
|
|
- name: "GCP_PROJECT"
|
|
value: "flowy-dev-440017"
|
|
- name: "GCS_BUCKET"
|
|
value: "flowy-llink-bucket"
|
|
- name: "GOOGLE_SERVICE_ACCOUNT_EMAIL"
|
|
value: "iam-for-gke-sa@flowy-dev-440017.iam.gserviceaccount.com"
|
|
- name: "LLINK_POSTGRES_CONNECTION_URL"
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: shared-secrets
|
|
key: LLINK_POSTGRES_CONNECTION_URL
|
|
- name: "DEEPGRAM_API_KEY"
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: shared-secrets
|
|
key: DEEPGRAM_SECRET
|