github.com/telepresenceio/telepresence/v2@v2.20.0-pro.6.0.20240517030216-236ea954e789/integration_test/testdata/k8s/echo-w-subdomain.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: Service
     4  metadata:
     5    name: subsonic
     6  spec:
     7    selector:
     8      app: subsonic
     9    clusterIP: None
    10    ports:
    11      - name: proxied
    12        port: 80
    13        targetPort: http
    14  ---
    15  apiVersion: apps/v1
    16  kind: Deployment
    17  metadata:
    18    name: echo-subsonic
    19    labels:
    20      app: subsonic
    21  spec:
    22    replicas: 1
    23    selector:
    24      matchLabels:
    25        app: subsonic
    26    template:
    27      metadata:
    28        labels:
    29          app: subsonic
    30      spec:
    31        hostname: echo
    32        subdomain: subsonic
    33        containers:
    34          - name: echo
    35            image: jmalloc/echo-server
    36            ports:
    37              - containerPort: 8080
    38                name: http
    39            resources:
    40              limits:
    41                cpu: 50m
    42                memory: 128Mi