Created
August 28, 2023 18:39
-
-
Save piorus/cfa37319513c5b343227ceae59afc5dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: whatsapp-metrics | |
name: whatsapp-metrics | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: whatsapp-metrics | |
template: | |
metadata: | |
labels: | |
app: whatsapp-metrics | |
spec: | |
containers: | |
- name: whatsapp-metrics | |
image: <ACCOUNTID>.dkr.ecr.<REGION>.amazonaws.com/<IMAGENAME>:latest | |
imagePullPolicy: Always | |
env: | |
- name: AWS_ACCESS_KEY_ID | |
valueFrom: | |
secretKeyRef: | |
name: whatsapp-metrics | |
key: "AWS_ACCESS_KEY_ID" | |
- name: AWS_SECRET_ACCESS_KEY | |
valueFrom: | |
secretKeyRef: | |
name: whatsapp-metrics | |
key: "AWS_SECRET_ACCESS_KEY" | |
- name: AWS_RDS_HOST | |
valueFrom: | |
secretKeyRef: | |
name: whatsapp-metrics | |
key: "AWS_RDS_HOST" | |
- name: AWS_RDS_SECRET_NAME | |
valueFrom: | |
secretKeyRef: | |
name: whatsapp-metrics | |
key: "AWS_RDS_SECRET_NAME" | |
- name: GCP_SHEET_ID | |
valueFrom: | |
secretKeyRef: | |
name: whatsapp-metrics | |
key: "GCP_SHEET_ID" | |
- name: GCP_SERVICE_ACCOUNT_JSON_FILE | |
value: "/var/run/secret/cloud.google.com/service-account.json" | |
volumeMounts: | |
- name: service-account | |
mountPath: "/var/run/secret/cloud.google.com" | |
- name: wwebjs-auth | |
mountPath: /app/.wwebjs_auth | |
- name: wwebjs-cache | |
mountPath: /app/.wwebjs_cache | |
volumes: | |
- name: service-account | |
secret: | |
secretName: "gcp-service-account" | |
- name: wwebjs-auth | |
hostPath: | |
path: /home/pokemon/luxlogistics-whataspp-metrics/.wwebjs_auth | |
type: DirectoryOrCreate | |
- name: wwebjs-cache | |
hostPath: | |
path: /home/pokemon/luxlogistics-whataspp-metrics/.wwebjs_cache | |
type: DirectoryOrCreate | |
imagePullSecrets: | |
- name: "aws-ecr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment