--- apiVersion: v1 kind: Service metadata: annotations: com.example.label: foo 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: annotations: com.example.label: foo labels: io.kompose.service: app name: app spec: replicas: 1 selector: matchLabels: io.kompose.service: app template: metadata: annotations: com.example.label: foo labels: io.kompose.service: app spec: containers: - image: node:18-alpine name: app ports: - containerPort: 3000 protocol: TCP restartPolicy: Always