apiVersion: v1
kind: Pod
metadata:
  labels:
    run: eni-todo-h2
  name: eni-todo-h2
spec:
  containers:
  - image: eni-todo:tomcat-h2-env
    #ou image: registry.diehard.net:5000/tomcat-eni-todo-h2-env:dev
    imagePullPolicy: IfNotPresent
    name: eni-todo
    ports:
      - name: http8080 
        containerPort: 8080
        protocol: TCP
    startupProbe: 
      httpGet:
        #host: 127.0.0.1
        path: "/eni-todo"
        port: 8080
        scheme : "HTTP"
        httpHeaders :
            - name : "x-kubeprob-header"
              value : "startupProbe"
      initialDelaySeconds : 300 
      failureThreshold : 3 
      periodSeconds : 30
      successThreshold : 1
      timeoutSeconds : 2
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
