view deploy.yaml @ 29:35affd4d37d4 default tip

add 1st ikea color light
author drewp@bigasterisk.com
date Sat, 14 Dec 2024 22:36:29 -0800
parents 32cfefe3155b
children
line wrap: on
line source

apiVersion: apps/v1
kind: Deployment
metadata:
  name: light-bridge
spec:
  replicas: 1
  selector:
    matchLabels:
      app: light-bridge
  template:
    metadata:
      labels:
        app: light-bridge
    spec:

      volumes:
        - name: nginx-conf
          configMap:
            name: light-bridge-nginx-conf
      containers:
        - name: proxy
          image: docker.io/nginx:1.21.6
          ports:
            - containerPort: 80
          volumeMounts:
            - { name: nginx-conf, mountPath: "/etc/nginx/" }
        - name: light-bridge-vite
          image: reg:5000/light_bridge_image
          ports:
            - containerPort: 8002
          command:
            - pnpm
            - exec
            - vite
            - --port=8002
        - name: light-bridge-py
          image: reg:5000/light_bridge_image
          ports:
            - containerPort: 8001
          command:
          - pdm
          - run
          - python
          - light_bridge.py
---
apiVersion: v1
kind: Service
metadata:
  name: light-bridge
spec:
  ports:
  - {port: 80, targetPort: 80}
  selector:
    app: light-bridge