github.com/looshlee/cilium@v1.6.12/examples/kubernetes/connectivity-check/connectivity-check.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: probe
     5  spec:
     6    selector:
     7      matchLabels:
     8        name: probe
     9    replicas: 5
    10    template:
    11      metadata:
    12        labels:
    13          name: probe
    14      spec:
    15        containers:
    16        - name: probe-container
    17          image: docker.io/cilium/json-mock
    18          livenessProbe:
    19            exec:
    20              command:
    21              - curl
    22              - "-4"
    23              - -sS
    24              - -o
    25              - /dev/null
    26              - echo.default.svc.cluster.local
    27          readinessProbe:
    28            exec:
    29              command:
    30              - curl
    31              - "-4"
    32              - -sS
    33              - -o
    34              - /dev/null
    35              - echo.default.svc.cluster.local
    36  ---
    37  apiVersion: v1
    38  kind: Service
    39  metadata:
    40    name: echo
    41  spec:
    42    type: ClusterIP
    43    ports:
    44    - port: 80
    45    selector:
    46      name: echo
    47  ---
    48  apiVersion: apps/v1
    49  kind: Deployment
    50  metadata:
    51    name: echo
    52  spec:
    53    selector:
    54      matchLabels:
    55        name: echo
    56    replicas: 5
    57    template:
    58      metadata:
    59        labels:
    60          name: echo
    61      spec:
    62        containers:
    63        - name: echo-container
    64          image: docker.io/cilium/json-mock
    65          livenessProbe:
    66            exec:
    67              command:
    68              - curl
    69              - -sS
    70              - -o
    71              - /dev/null
    72              - localhost
    73          readinessProbe:
    74            exec:
    75              command:
    76              - curl
    77              - -sS
    78              - -o
    79              - /dev/null
    80              - localhost