apiVersion: apps/v1
kind: Deployment
metadata:
  name: sample-api
spec:
  replicas: 1
  selector:
    matchLabels:
      app: sample-api
  template:
    metadata:
      labels:
        app: sample-api
    spec:
      containers:
      - image: nextmetaphor/simple-golang-api:latest
        imagePullPolicy: Always
        name: sample-api
        ports:
        - containerPort: 8080