apiVersion: apps/v1
kind: Deployment
metadata:
  name: "voyagesms-deployment"
spec:
  replicas: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 0
      maxSurge: 1
  revisionHistoryLimit: 1
  selector:
    matchLabels:
      app: voyagesms-selector
  template:
    metadata:
      labels:
        app: "voyagesms-selector"
        version: "current"
    spec:
      serviceAccountName: default
      containers:
      - name: "voyagesms"
        image: "eventingapps/voyage-ms"
        imagePullPolicy: IfNotPresent
        livenessProbe:
          httpGet:
            path: /health
            port: 3000
          initialDelaySeconds: 3000
          periodSeconds: 1000
        ports:
        - containerPort: 3000
        resources:
          requests:
            cpu: "200m"
            memory: "300Mi"
        env:
          - name: PORT
            value : "3000"
          - name: APPLICATION_NAME
            value: "voyagesms"