---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: senpy-latest
spec:
  replicas: 1
  template:
    metadata:
      labels:
        role: senpy-latest
        app: test
    spec:
      containers:
      - name: senpy-latest
        image: gsiupm/senpy:latest
        imagePullPolicy: Always
        args:
          - "--default-plugins"
        resources:
          limits:
            memory: "512Mi"
            cpu: "1000m"
        ports:
          - name: web
            containerPort: 5000

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: senpy-latest
spec:
  replicas: 1
  template:
    metadata:
      labels:
        role: senpy-latest
        app: test
    spec:
      containers:
      - name: senpy-latest
        image: $IMAGEWTAG
        imagePullPolicy: Always
        args:
          - "--default-plugins"
        resources:
          limits:
            memory: "512Mi"
            cpu: "1000m"
        ports:
          - name: web
            containerPort: 5000

Deploy latest with its version tag
Deploy latest with its version tag

Kubernetes doesn't pull the `latest` tag automatically, so we need to change the
image tag in the deployment file.

As a plus, we can now see exactly what version we're running.
