| # Copyright 2017-present Open Networking Foundation |
| # |
| # Licensed 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: extensions/v1beta1 |
| kind: Deployment |
| metadata: |
| name: default-http-backend |
| labels: |
| app: default-http-backend |
| namespace: voltha |
| spec: |
| replicas: 1 |
| template: |
| metadata: |
| labels: |
| app: default-http-backend |
| annotations: |
| cni: "calico" |
| spec: |
| terminationGracePeriodSeconds: 60 |
| containers: |
| - name: default-http-backend |
| # Any image is permissable as long as: |
| # 1. It serves a 404 page at / |
| # 2. It serves 200 on a /healthz endpoint |
| image: gcr.io/google_containers/defaultbackend:1.4 |
| livenessProbe: |
| httpGet: |
| path: /healthz |
| port: 8080 |
| scheme: HTTP |
| initialDelaySeconds: 30 |
| timeoutSeconds: 5 |
| ports: |
| - containerPort: 8080 |
| resources: |
| limits: |
| cpu: 10m |
| memory: 20Mi |
| requests: |
| cpu: 10m |
| memory: 20Mi |
| --- |
| |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| name: default-http-backend |
| namespace: voltha |
| labels: |
| app: default-http-backend |
| spec: |
| ports: |
| - port: 80 |
| targetPort: 8080 |
| selector: |
| app: default-http-backend |