istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/test/framework/components/echo/kube/testdata/two-workloads-one-nosidecar.yaml (about)

     1  
     2  apiVersion: v1
     3  kind: Service
     4  metadata:
     5    name: foo
     6    labels:
     7      app: foo
     8  spec:
     9    ports:
    10    - name: grpc
    11      port: 7070
    12      targetPort: 7070
    13    - name: http
    14      port: 8090
    15      targetPort: 8090
    16    selector:
    17      app: foo
    18  ---
    19  apiVersion: apps/v1
    20  kind: Deployment
    21  metadata:
    22    name: foo-v1
    23  spec:
    24    replicas: 1
    25    selector:
    26      matchLabels:
    27        app: foo
    28        version: v1
    29    template:
    30      metadata:
    31        labels:
    32          app: foo
    33          version: v1
    34          test.istio.io/class: naked
    35        annotations:
    36          prometheus.io/scrape: "true"
    37          prometheus.io/port: "15014"
    38      spec:
    39        imagePullSecrets:
    40        - name: myregistrykey
    41        containers:
    42        - name: istio-proxy
    43          image: auto
    44          imagePullPolicy: Always
    45          securityContext: # to allow core dumps
    46            readOnlyRootFilesystem: false
    47        - name: app
    48          image: testing.hub/app:latest
    49          imagePullPolicy: Always
    50          args:
    51            - --metrics=15014
    52            - --cluster=cluster-0
    53            - --grpc=7070
    54            - --port=8090
    55            - --port=8080
    56            - --port=3333
    57            - --version=v1
    58            - --istio-version=
    59            - --crt=/cert.crt
    60            - --key=/cert.key
    61          ports:
    62          - containerPort: 7070
    63          - containerPort: 8090
    64          - containerPort: 8080
    65          - containerPort: 3333
    66            name: tcp-health-port
    67          env:
    68          - name: INSTANCE_IP
    69            valueFrom:
    70              fieldRef:
    71                fieldPath: status.podIP
    72          - name: NAMESPACE
    73            valueFrom:
    74              fieldRef:
    75                fieldPath: metadata.namespace
    76          readinessProbe:
    77            httpGet:
    78              path: /
    79              port: 8080
    80            initialDelaySeconds: 1
    81            periodSeconds: 2
    82            failureThreshold: 10
    83          livenessProbe:
    84            tcpSocket:
    85              port: tcp-health-port
    86            initialDelaySeconds: 10
    87            periodSeconds: 10
    88            failureThreshold: 10
    89          startupProbe:
    90            tcpSocket:
    91              port: tcp-health-port
    92            periodSeconds: 1
    93            failureThreshold: 10
    94  ---
    95  apiVersion: apps/v1
    96  kind: Deployment
    97  metadata:
    98    name: foo-nosidecar
    99  spec:
   100    replicas: 1
   101    selector:
   102      matchLabels:
   103        app: foo
   104        version: nosidecar
   105    template:
   106      metadata:
   107        labels:
   108          app: foo
   109          version: nosidecar
   110          test.istio.io/class: naked
   111        annotations:
   112          prometheus.io/scrape: "true"
   113          prometheus.io/port: "15014"
   114          sidecar.istio.io/inject: "false"
   115      spec:
   116        imagePullSecrets:
   117        - name: myregistrykey
   118        containers:
   119        - name: app
   120          image: testing.hub/app:latest
   121          imagePullPolicy: Always
   122          args:
   123            - --metrics=15014
   124            - --cluster=cluster-0
   125            - --grpc=7070
   126            - --port=8090
   127            - --port=8080
   128            - --port=3333
   129            - --version=nosidecar
   130            - --istio-version=
   131            - --crt=/cert.crt
   132            - --key=/cert.key
   133          ports:
   134          - containerPort: 7070
   135          - containerPort: 8090
   136          - containerPort: 8080
   137          - containerPort: 3333
   138            name: tcp-health-port
   139          env:
   140          - name: INSTANCE_IP
   141            valueFrom:
   142              fieldRef:
   143                fieldPath: status.podIP
   144          - name: NAMESPACE
   145            valueFrom:
   146              fieldRef:
   147                fieldPath: metadata.namespace
   148          readinessProbe:
   149            httpGet:
   150              path: /
   151              port: 8080
   152            initialDelaySeconds: 1
   153            periodSeconds: 2
   154            failureThreshold: 10
   155          livenessProbe:
   156            tcpSocket:
   157              port: tcp-health-port
   158            initialDelaySeconds: 10
   159            periodSeconds: 10
   160            failureThreshold: 10
   161          startupProbe:
   162            tcpSocket:
   163              port: tcp-health-port
   164            periodSeconds: 1
   165            failureThreshold: 10
   166  ---