istio.io/istio@v0.0.0-20240520182934-d79c90f27776/tests/integration/security/fuzz/backends/nginx/nginx.yaml (about)

     1  # Copyright Istio Authors
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #    http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  apiVersion: v1
    16  kind: ConfigMap
    17  metadata:
    18    name: public-html
    19  data:
    20    secret.html: |
    21      <!DOCTYPE html>
    22      <html lang="en">
    23      <body>
    24      secret_data_leaked
    25      </body>
    26      </html>
    27  ---
    28  apiVersion: v1
    29  kind: ServiceAccount
    30  metadata:
    31    name: nginx
    32  ---
    33  apiVersion: v1
    34  kind: Service
    35  metadata:
    36    name: nginx
    37    labels:
    38      app: nginx
    39      service: nginx
    40  spec:
    41    ports:
    42      - name: http
    43        port: 8080
    44        targetPort: 80
    45    selector:
    46      app: nginx
    47  ---
    48  apiVersion: apps/v1
    49  kind: Deployment
    50  metadata:
    51    name: nginx
    52  spec:
    53    selector:
    54      matchLabels:
    55        app: nginx
    56    template:
    57      metadata:
    58        labels:
    59          app: nginx
    60      spec:
    61        containers:
    62          - name: nginx
    63            image: nginx:1.20.0
    64            ports:
    65              - containerPort: 80
    66            volumeMounts:
    67              - name: public-html
    68                mountPath: /usr/share/nginx/html/private
    69        volumes:
    70          - name: public-html
    71            configMap:
    72              name: public-html