---
apiVersion: v1
kind: Service
metadata:
  labels:
    io.kompose.service: app
  name: app
spec:
  ports:
    - name: "3000"
      port: 3000
      targetPort: 3000
  selector:
    io.kompose.service: app

---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    io.kompose.service: app
  name: app
spec:
  replicas: 1
  selector:
    matchLabels:
      io.kompose.service: app
  template:
    metadata:
      labels:
        io.kompose.service: app
    spec:
      containers:
        - args:
            - sh
            - -c
            - yarn install && yarn run dev
          env:
            - name: OTHER_ENV
              value: example
            - name: TOPICS
              value: foo:1,status:2,bar:3
          image: node:18-alpine
          name: app
          ports:
            - containerPort: 3000
              protocol: TCP
      restartPolicy: Always
