| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| apiVersion: v1 |
| kind: Namespace |
| metadata: |
| name: trafficserver-test |
| |
| --- |
| |
| apiVersion: extensions/v1beta1 |
| kind: Deployment |
| metadata: |
| labels: |
| app: trafficserver-test |
| name: trafficserver-test |
| namespace: trafficserver-test |
| spec: |
| minReadySeconds: 30 |
| |
| selector: |
| matchLabels: |
| app: trafficserver-test |
| |
| # DO NOT EXCEED ONE COPY |
| replicas: 1 |
| # DO NOT EXCEED ONE COPY |
| template: |
| metadata: |
| labels: |
| app: trafficserver-test |
| spec: |
| |
| containers: |
| - name: trafficserver-test |
| image: ats_alpine:latest # Needs to be updated |
| volumeMounts: |
| - mountPath: "/etc/ats/ssl" |
| name: ats-ssl |
| readOnly: true |
| imagePullPolicy: IfNotPresent |
| env: |
| - name: POD_NAME |
| valueFrom: |
| fieldRef: |
| fieldPath: metadata.name |
| - name: POD_NAMESPACE |
| valueFrom: |
| fieldRef: |
| fieldPath: metadata.namespace |
| # - name: INGRESS_CLASS |
| # value: "ats" |
| - name: POD_TLS_PATH |
| value: "/etc/ats/ssl" |
| ports: |
| - containerPort: 80 |
| hostPort: 80 |
| name: http |
| protocol: TCP |
| - containerPort: 443 |
| hostPort: 443 |
| name: https |
| protocol: TCP |
| volumes: |
| - name: ats-ssl |
| secret: |
| secretName: tls-secret |
| |
| --- |
| |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: trafficserver-test |
| namespace: trafficserver-test |
| spec: |
| type: NodePort |
| ports: |
| - name: http |
| port: 80 |
| protocol: TCP |
| targetPort: 80 |
| nodePort: 30000 |
| - name: https |
| port: 443 |
| protocol: TCP |
| targetPort: 443 |
| nodePort: 30043 |
| selector: |
| app: trafficserver-test |