
apiVersion: apps/v1
kind: Deployment

metadata:
  name: express-example
  namespace: default
  labels:
    name: express-example

spec:
  replicas: 1
  selector:
    matchLabels:
      app: express-example

  # The PodTemplate
  template:
    metadata:
      labels:
        app: express-example

    # The Pod
    spec:

      containers:
      - name: express-example
        image: briancsparks/quicknet-k8s-express-example
        command: ['node']
        args: ['/opt/node_app/app/index.js', '--verbose']
        imagePullPolicy: Always

        ports:
        - containerPort: 3000

        livenessProbe:
          httpGet:
            path: /
            port: 3000
          initialDelaySeconds: 30
          timeoutSeconds: 1

        resources:
          limits:
            memory: "128Mi"
            cpu: "500m"

