apiVersion: apps/v1
kind: Deployment
metadata:
  name: justdoit-example
  namespace: justdoit-example
spec:
  replicas: 1
  strategy: {}
  selector:
    matchLabels:
      app: justdoit-example
  template:
    metadata:
      labels:
        app: justdoit-example
    spec:
      restartPolicy: Always
      containers:
        - image: cosmomyzrailgorynych/justdoit:latest-alpine
          imagePullPolicy: Always
          name: justdoit-app
          ports:
            - containerPort: 8080
          resources: {}
          livenessProbe:
            failureThreshold: 3
            httpGet:
              path: /justdoitstatus.json
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 120
            periodSeconds: 10
            successThreshold: 1
            timeoutSeconds: 3
          readinessProbe:
            failureThreshold: 3
            httpGet:
              path: /justdoitstatus.json
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 120
            periodSeconds: 10
            successThreshold: 1
            timeoutSeconds: 3
          env:
            - name: GIT_URL
              value: 'TODO:'
            # Uncomment to add a deploy key from a Kubernetes secret
            # - name: GIT_DEPLOY_KEY
            #   valueFrom:
            #     secretKeyRef:
            #       name: env
            #       key: GIT_DEPLOY_KEY
            - name: BUILD_SETUP
              value: |-
                npm install -g npx
            - name: BUILD_SCRIPT
              value: |-
                npm install
                npx @11ty/eleventy
            - name: SERVE_DIR
              value: ./_site
