apiVersion: apps/v1
kind: Deployment
metadata:
  name: testrestapi-deployment
  labels:
    app: testrestapi
spec:
  replicas: 3
  selector:
    matchLabels:
      app: testrestapi
  template:
    metadata:
      labels:
        app: testrestapi
    spec:
      containers:
      - name: testrestapi
        image: vanapagan/test-rest-api # pull image from Docker hub (for ease of use)
        ports:
        - containerPort: 8080
