github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/debug/java/k8s/web.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: java
     5  spec:
     6    selector:
     7      matchLabels:
     8        app: javaweb
     9    template:
    10      metadata:
    11        labels:
    12          app: javaweb
    13      spec:
    14        containers:
    15        - name: java-web
    16          image: skaffold-debug-java
    17          ports:
    18          - containerPort: 8080
    19          # connect to the JDWP port
    20          readinessProbe:
    21            exec:
    22              command: ["sh", "/workspace/scripts/check-jdwp.sh", "5005"]
    23            initialDelaySeconds: 2
    24            periodSeconds: 10
    25          # connect to the app port
    26          livenessProbe:
    27            httpGet:
    28              path: /
    29              port: 8080
    30            failureThreshold: 30
    31            periodSeconds: 10