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