github.com/projectcontour/contour@v1.28.2/site/content/examples/proxydemo/04-marketing-prereq.yaml (about)

     1  apiVersion: v1
     2  kind: Namespace
     3  metadata:
     4    name: projectcontour-marketing
     5  ---
     6  apiVersion: apps/v1
     7  kind: Deployment
     8  metadata:
     9    name: wwwblog
    10    namespace: projectcontour-marketing
    11  spec:
    12    replicas: 1
    13    selector:
    14      matchLabels:
    15        app: wwwblog
    16    template:
    17      metadata:
    18        labels:
    19          app: wwwblog
    20      spec:
    21        containers:
    22          - name: echo
    23            image: stevesloka/echo-server
    24            command: ["echo-server"]
    25            args:
    26              - --echotext=This is the blog site!
    27            imagePullPolicy: IfNotPresent
    28            ports:
    29              - name: http
    30                containerPort: 8080
    31  ---
    32  apiVersion: v1
    33  kind: Service
    34  metadata:
    35    labels:
    36      app: wwwblog
    37    name: wwwblog
    38    namespace: projectcontour-marketing
    39  spec:
    40    ports:
    41      - port: 80
    42        protocol: TCP
    43        targetPort: 8080
    44    selector:
    45      app: wwwblog
    46    type: ClusterIP
    47  ---
    48  apiVersion: apps/v1
    49  kind: Deployment
    50  metadata:
    51    name: info
    52    namespace: projectcontour-marketing
    53  spec:
    54    replicas: 1
    55    selector:
    56      matchLabels:
    57        app: info
    58    template:
    59      metadata:
    60        labels:
    61          app: info
    62      spec:
    63        containers:
    64          - name: echo
    65            image: stevesloka/echo-server
    66            command: ["echo-server"]
    67            args:
    68              - --echotext=This is the INFO site!
    69            imagePullPolicy: IfNotPresent
    70            ports:
    71              - name: http
    72                containerPort: 8080
    73  ---
    74  apiVersion: v1
    75  kind: Service
    76  metadata:
    77    labels:
    78      app: info
    79    name: info
    80    namespace: projectcontour-marketing
    81  spec:
    82    ports:
    83      - port: 80
    84        protocol: TCP
    85        targetPort: 8080
    86    selector:
    87      app: info
    88    type: ClusterIP