github.com/projectcontour/contour@v1.28.2/site/content/examples/httpbin.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    labels:
     5      app: httpbin
     6    name: httpbin
     7  spec:
     8    replicas: 3
     9    selector:
    10      matchLabels:
    11        app: httpbin
    12    template:
    13      metadata:
    14        labels:
    15          app: httpbin
    16      spec:
    17        containers:
    18        - image: docker.io/kennethreitz/httpbin
    19          name: httpbin
    20  ---
    21  apiVersion: v1
    22  kind: Service
    23  metadata:
    24    labels:
    25      app: httpbin
    26    name: httpbin
    27  spec:
    28    ports:
    29    - port: 80
    30      protocol: TCP
    31      targetPort: 80
    32    selector:
    33      app: httpbin
    34    sessionAffinity: None
    35    type: ClusterIP
    36  ---
    37  apiVersion: networking.k8s.io/v1
    38  kind: Ingress
    39  metadata:
    40    name: httpbin
    41    labels:
    42      app: httpbin
    43  spec:
    44    defaultBackend:
    45      service:
    46        name: httpbin
    47        port:
    48          number: 80