Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 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. |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 14 | apiVersion: extensions/v1beta1 |
| 15 | kind: Deployment |
| 16 | metadata: |
| 17 | name: default-http-backend |
| 18 | labels: |
| 19 | app: default-http-backend |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 20 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 21 | spec: |
| 22 | replicas: 1 |
| 23 | template: |
| 24 | metadata: |
| 25 | labels: |
| 26 | app: default-http-backend |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 27 | annotations: |
| 28 | cni: "calico" |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 29 | spec: |
| 30 | terminationGracePeriodSeconds: 60 |
| 31 | containers: |
| 32 | - name: default-http-backend |
| 33 | # Any image is permissable as long as: |
| 34 | # 1. It serves a 404 page at / |
| 35 | # 2. It serves 200 on a /healthz endpoint |
| 36 | image: gcr.io/google_containers/defaultbackend:1.4 |
| 37 | livenessProbe: |
| 38 | httpGet: |
| 39 | path: /healthz |
| 40 | port: 8080 |
| 41 | scheme: HTTP |
| 42 | initialDelaySeconds: 30 |
| 43 | timeoutSeconds: 5 |
| 44 | ports: |
| 45 | - containerPort: 8080 |
| 46 | resources: |
| 47 | limits: |
| 48 | cpu: 10m |
| 49 | memory: 20Mi |
| 50 | requests: |
| 51 | cpu: 10m |
| 52 | memory: 20Mi |
| 53 | --- |
| 54 | |
| 55 | apiVersion: v1 |
| 56 | kind: Service |
| 57 | metadata: |
| 58 | name: default-http-backend |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 59 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 60 | labels: |
| 61 | app: default-http-backend |
| 62 | spec: |
| 63 | ports: |
| 64 | - port: 80 |
| 65 | targetPort: 8080 |
| 66 | selector: |
| 67 | app: default-http-backend |