apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: default
  labels:
    app: cosmos-001
    service: cosmos-001
  name: cosmos-001
spec:
  strategy:
    type: Recreate
  replicas: 1
  selector:
    matchLabels:
      app: cosmos-001
  template:
    metadata:
      labels:
        app: cosmos-001
        service: cosmos-001
    spec:
      containers:
        - name: cosmos-001
          image: ryanhendricks/docker-cosmos:latest
          imagePullPolicy: Always
          envFrom:
            - configMapRef:
                name: cosmos-config
          volumeMounts:
            - mountPath: /.gaiad
              name: cosmos-001
          resources:
            requests:
              cpu: 150m
              memory: 150Mi
            limits:
              cpu: 300m
              memory: 300Mi
      restartPolicy: Always
      volumes:
        - name: cosmos-001
          persistentVolumeClaim:
            claimName: cosmos-001
