github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/boskos/metrics/deployment.yaml (about) 1 # Copyright 2017 The Kubernetes 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: Service 17 metadata: 18 name: boskos-metrics 19 namespace: test-pods 20 spec: 21 selector: 22 app: boskos-metrics 23 ports: 24 - name: default 25 protocol: TCP 26 port: 80 27 targetPort: 8080 28 loadBalancerIP: 104.197.27.114 29 type: LoadBalancer 30 --- 31 apiVersion: extensions/v1beta1 32 kind: Deployment 33 metadata: 34 name: boskos-metrics 35 labels: 36 app: boskos-metrics 37 namespace: test-pods 38 spec: 39 replicas: 1 40 template: 41 metadata: 42 labels: 43 app: boskos-metrics 44 namespace: test-pods 45 spec: 46 terminationGracePeriodSeconds: 30 47 containers: 48 - name: metrics 49 image: gcr.io/k8s-testimages/metrics:v20180604-ea866c2e8 50 args: 51 - --resource-type=gce-project,gke-project,gpu-project,ingress-project,istio-project,scalability-project 52 ports: 53 - containerPort: 8080 54 protocol: TCP