view deploy.yaml @ 91:62caecb41dfd default tip

fix tag
author drewp@bigasterisk.com
date Fri, 03 Jan 2025 18:06:13 -0800
parents 84141ef00bd7
children
line wrap: on
line source

apiVersion: apps/v1
kind: Deployment
metadata:
  name: gcalendarwatch
spec:
  replicas: 1
  selector:
    matchLabels:
      app: gcalendarwatch
  template:
    metadata:
      labels:
        app: gcalendarwatch
    spec:
      containers:
        - name: gcalendarwatch
          image: reg:5000/gcalendarwatch_image
          ports:
            - containerPort: 8000
          command:
          - pdm
          - run
          - uvicorn
          - '--port=8000'
          - '--host=0.0.0.0'
          # - '--reload'
          - 'gcalendarwatch:app'
        - name: calsync
          image: reg:5000/gcalendarwatch_calsync_image
          ports:
            - containerPort: 8080
          command:
          - /opt/calsync
---
apiVersion: v1
kind: Service
metadata:
  name: gcalendarwatch
spec:
  ports:
  - {port: 80, targetPort: 8000, name: metrics}
  - {port: 8080, targetPort: 8080, name: calsync}
  selector:
    app: gcalendarwatch