istio.io/istio@v0.0.0-20240520182934-d79c90f27776/pkg/test/framework/components/echo/kube/testdata/proxyless-custom-image.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    selector:
    14      app: foo
    15  ---
    16  apiVersion: apps/v1
    17  kind: Deployment
    18  metadata:
    19    name: foo-bar
    20  spec:
    21    replicas: 1
    22    selector:
    23      matchLabels:
    24        app: foo
    25        version: bar
    26    template:
    27      metadata:
    28        labels:
    29          app: foo
    30          version: bar
    31          test.istio.io/class: proxyless
    32        annotations:
    33          prometheus.io/scrape: "true"
    34          prometheus.io/port: "15014"
    35          inject.istio.io/templates: "grpc-agent"
    36          proxy.istio.io/config: '{"holdApplicationUntilProxyStarts": true}'
    37      spec:
    38        imagePullSecrets:
    39        - name: myregistrykey
    40        containers:
    41        - name: istio-proxy
    42          image: auto
    43          imagePullPolicy: Always
    44          securityContext: # to allow core dumps
    45            readOnlyRootFilesystem: false
    46        - name: app
    47          image: testing.hub/app:latest
    48          imagePullPolicy: Always
    49          args:
    50            - --metrics=15014
    51            - --cluster=cluster-0
    52            - --port=8080
    53            - --port=3333
    54            - --grpc=17777
    55            - --version=bar
    56            - --istio-version=
    57            - --crt=/cert.crt
    58            - --key=/cert.key
    59          ports:
    60          - containerPort: 8080
    61          - containerPort: 3333
    62            name: tcp-health-port
    63          - containerPort: 17777
    64          env:
    65          - name: INSTANCE_IP
    66            valueFrom:
    67              fieldRef:
    68                fieldPath: status.podIP
    69          - name: NAMESPACE
    70            valueFrom:
    71              fieldRef:
    72                fieldPath: metadata.namespace
    73          - name: EXPOSE_GRPC_ADMIN
    74            value: "true"
    75          readinessProbe:
    76            httpGet:
    77              path: /
    78              port: 8080
    79            initialDelaySeconds: 1
    80            periodSeconds: 2
    81            failureThreshold: 10
    82          livenessProbe:
    83            tcpSocket:
    84              port: tcp-health-port
    85            initialDelaySeconds: 10
    86            periodSeconds: 10
    87            failureThreshold: 10
    88          startupProbe:
    89            tcpSocket:
    90              port: tcp-health-port
    91            periodSeconds: 1
    92            failureThreshold: 10
    93        - name: custom-grpc-app
    94          image: grpc/echo:cpp
    95          imagePullPolicy: Always
    96          args:
    97            - --forwarding_address=0.0.0.0:17777
    98            - --metrics=15014
    99            - --cluster=cluster-0
   100            - --xds-grpc-server=7070
   101            - --grpc=17171
   102            - --bind-localhost=17171
   103            - --version=bar
   104            - --istio-version=
   105            - --crt=/cert.crt
   106            - --key=/cert.key
   107          ports:
   108          - containerPort: 7070
   109          - containerPort: 17171
   110            name: tcp-health-port
   111          env:
   112          - name: INSTANCE_IP
   113            valueFrom:
   114              fieldRef:
   115                fieldPath: status.podIP
   116          - name: NAMESPACE
   117            valueFrom:
   118              fieldRef:
   119                fieldPath: metadata.namespace
   120          - name: EXPOSE_GRPC_ADMIN
   121            value: "true"
   122          readinessProbe:
   123            tcpSocket:
   124              port: tcp-health-port
   125            initialDelaySeconds: 1
   126            periodSeconds: 2
   127            failureThreshold: 10
   128          livenessProbe:
   129            tcpSocket:
   130              port: tcp-health-port
   131            initialDelaySeconds: 10
   132            periodSeconds: 10
   133            failureThreshold: 10
   134          startupProbe:
   135            tcpSocket:
   136              port: tcp-health-port
   137            periodSeconds: 1
   138            failureThreshold: 10
   139  ---