apiVersion: apps/v1
kind: Deployment
metadata:
  name: accountservice
  labels:
    run: accountservice
spec:
  replicas: 1
  selector:
    matchLabels:
      name: accountservice
  template:
    metadata:
      labels:
        name: accountservice
        run: accountservice
    spec:
      hostname: accountservice
      containers:
      - name: accountservice
        image: hamzaak/accountservice:latest
        ports:
        - containerPort: 9002
          hostPort: 9002