apiVersion: apps/v1
kind: Deployment
metadata:
  name: keygen
spec:
  replicas: 1
  selector:
    matchLabels:
      app: keygen
  template:
    metadata:
      labels:
        app: keygen
    spec:
      containers:
        - name: keygen
          image: registry.lab.divyam.dev/fastbin-keygen-service:latest
          ports:
            - containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: keygen-service
spec:
  ports:
    - port: 8080
      targetPort: 8080
  selector:
    app: keygen
