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

     1  apiVersion: v1
     2  kind: Namespace
     3  metadata:
     4    name: projectcontour-roots
     5  ---
     6  apiVersion: apps/v1
     7  kind: Deployment
     8  metadata:
     9    name: rootapp
    10    namespace: projectcontour-roots
    11  spec:
    12    replicas: 1
    13    selector:
    14      matchLabels:
    15        app: rootapp
    16    template:
    17      metadata:
    18        labels:
    19          app: rootapp
    20      spec:
    21        containers:
    22          - name: echo
    23            image: stevesloka/echo-server
    24            command: ["echo-server"]
    25            args:
    26              - --echotext=This is the default app 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: rootapp
    37    name: rootapp
    38    namespace: projectcontour-roots
    39  spec:
    40    ports:
    41      - port: 80
    42        protocol: TCP
    43        targetPort: 8080
    44    selector:
    45      app: rootapp
    46    type: ClusterIP
    47  ---
    48  apiVersion: apps/v1
    49  kind: Deployment
    50  metadata:
    51    name: secureapp
    52    namespace: projectcontour-roots
    53  spec:
    54    replicas: 1
    55    selector:
    56      matchLabels:
    57        app: secureapp
    58    template:
    59      metadata:
    60        labels:
    61          app: secureapp
    62      spec:
    63        containers:
    64          - name: echo
    65            image: stevesloka/echo-server
    66            command: ["echo-server"]
    67            args:
    68              - --echotext=This is the secure app 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: secureapp
    79    name: secureapp
    80    namespace: projectcontour-roots
    81  spec:
    82    ports:
    83      - port: 80
    84        protocol: TCP
    85        targetPort: 8080
    86    selector:
    87      app: secureapp
    88    type: ClusterIP
    89  ---
    90  apiVersion: apps/v1
    91  kind: Deployment
    92  metadata:
    93    name: secureapp-default
    94    namespace: projectcontour-roots
    95  spec:
    96    replicas: 1
    97    selector:
    98      matchLabels:
    99        app: secureapp-default
   100    template:
   101      metadata:
   102        labels:
   103          app: secureapp-default
   104      spec:
   105        containers:
   106          - name: echo
   107            image: stevesloka/echo-server
   108            command: ["echo-server"]
   109            args:
   110              - --echotext=This is the DEFAULT secure app site!
   111            imagePullPolicy: IfNotPresent
   112            ports:
   113              - name: http
   114                containerPort: 8080
   115  ---
   116  apiVersion: v1
   117  kind: Service
   118  metadata:
   119    labels:
   120      app: secureapp-default
   121    name: secureapp-default
   122    namespace: projectcontour-roots
   123  spec:
   124    ports:
   125      - port: 80
   126        protocol: TCP
   127        targetPort: 8080
   128    selector:
   129      app: secureapp-default
   130    type: ClusterIP