github.com/telepresenceio/telepresence/v2@v2.20.0-pro.6.0.20240517030216-236ea954e789/integration_test/testdata/k8s/with-probes.yaml (about)

     1  ---
     2  apiVersion: apps/v1
     3  kind: Deployment
     4  metadata:
     5    name: with-probes
     6  spec:
     7    replicas: 2
     8    selector:
     9      matchLabels:
    10        app: with-probes
    11    template:
    12      metadata:
    13        annotations:
    14          consul.hashicorp.com/connect-inject: 'false'
    15          sidecar.istio.io/inject: 'false'
    16        labels:
    17          app: with-probes
    18      spec:
    19        containers:
    20          - name: sample-app
    21            image: gcr.io/datawire/k8s-initializer-sample-app:latest
    22            imagePullPolicy: Always
    23            env:
    24              - name: LISTEN_PORT
    25                value: '3000'
    26            livenessProbe:
    27              httpGet:
    28                path: /health
    29                port: http
    30              periodSeconds: 10
    31            readinessProbe:
    32              httpGet:
    33                path: /health
    34                port: http
    35              periodSeconds: 10
    36            ports:
    37              - containerPort: 3000
    38                name: http
    39  ---
    40  apiVersion: v1
    41  kind: Service
    42  metadata:
    43    name: with-probes
    44    labels:
    45      app: with-probes
    46  spec:
    47    ports:
    48      - port: 80
    49        name: http
    50        targetPort: http
    51    selector:
    52      app: with-probes