...

Text file src/github.com/datawire/ambassador/v2/k8s/httptarget-alt.yaml

Documentation: github.com/datawire/ambassador/v2/k8s

     1# @TEMPLATE@
     2---
     3apiVersion: v1
     4kind: Namespace
     5metadata:
     6  name: alt
     7---
     8kind: Service
     9apiVersion: v1
    10metadata:
    11  name: httptarget
    12  namespace: alt
    13spec:
    14  selector:
    15    pod: httptarget
    16  ports:
    17  - protocol: TCP
    18    port: 80
    19    targetPort: 8080
    20---
    21apiVersion: v1
    22kind: Pod
    23metadata:
    24  name: httptarget
    25  namespace: alt
    26  labels:
    27    pod: httptarget
    28spec:
    29  containers:
    30  - name: backend
    31    image: {{image "../docker/test-http/Dockerfile"}}
    32    ports:
    33    - containerPort: 80
    34    env:
    35    - name: HTTPTEST_BODY
    36      value: "ALT"

View as plain text