apiVersion: apps/v1
kind: Deployment
metadata:
  name: hashicat-image
spec:
  replicas: 1
  selector:
    matchLabels:
      app: hashicat-image
      version: v1
  template:
    metadata:
      labels:
        app: hashicat-image
        version: v1
      annotations:
        'consul.hashicorp.com/connect-service-protocol': 'http'
        'consul.hashicorp.com/connect-inject': 'true'
        'consul.hashicorp.com/service-tags': 'v1'
        'consul.hashicorp.com/service-meta-version': '1'
    spec:
      containers:
        - name: hashicat-image
          image: kawsark/hashicat-image:0.0.1
          imagePullPolicy: IfNotPresent
          env:
            - name: HASHICAT_URL
              value: "http://placekitten.com/700/700"
            - name: HASHICAT_META
              value: "Welcome to Inaya's Meowlicious app"
          ports:
          - containerPort: 5000