...

Text file src/github.com/linkerd/linkerd2/test/integration/deep/dualstack/testdata/ipfamilies-server-client.yml

Documentation: github.com/linkerd/linkerd2/test/integration/deep/dualstack/testdata

     1apiVersion: apps/v1
     2kind: Deployment
     3metadata:
     4  name: ipfamilies-server
     5spec:
     6  selector:
     7    matchLabels:
     8      app: server
     9  template:
    10    metadata:
    11      annotations:
    12        linkerd.io/inject: enabled
    13      labels:
    14        app: server
    15    spec:
    16      containers:
    17      - image: ghcr.io/alpeb/family-server:v1
    18        image: golang:1.22-alpine
    19        name: ipfamilies-server
    20        ports:
    21        - containerPort: 8080
    22          name: http
    23          protocol: TCP
    24        command: ["/bin/sh"]
    25        args:
    26        - -c
    27        - 'go run /go/src/app/main.go'
    28        volumeMounts:
    29        - name: go-app
    30          mountPath: /go/src/app
    31      volumes:
    32      - name: go-app
    33        configMap:
    34          name: go-app
    35---
    36apiVersion: v1
    37kind: Service
    38metadata:
    39  name: ipfamilies-server
    40spec:
    41  ipFamilies:
    42  - IPv4
    43  - IPv6
    44  ipFamilyPolicy: RequireDualStack
    45  ports:
    46  - name: http
    47    port: 8080
    48    protocol: TCP
    49    targetPort: http
    50  selector:
    51    app: server
    52  type: ClusterIP
    53---
    54apiVersion: apps/v1
    55kind: Deployment
    56metadata:
    57  name: client
    58spec:
    59  selector:
    60    matchLabels:
    61      app: client
    62  template:
    63    metadata:
    64      annotations:
    65        linkerd.io/inject: enabled
    66      labels:
    67        app: client
    68    spec:
    69      containers:
    70      - name: curl
    71        image: curlimages/curl
    72        command: [ "sh", "-c", "--" ]
    73        args: [ "sleep infinity" ]

View as plain text