2018-08-23 00:02:46 +00:00
|
|
|
# Copyright 2018 Google LLC
|
|
|
|
#
|
|
|
|
# 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: adservice
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: adservice
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 5
|
|
|
|
containers:
|
|
|
|
- name: server
|
2018-12-03 22:19:12 +00:00
|
|
|
image: adservice
|
2018-08-23 00:02:46 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 9555
|
|
|
|
env:
|
|
|
|
- name: PORT
|
|
|
|
value: "9555"
|
2019-01-03 20:56:06 +00:00
|
|
|
- name: JAEGER_ENABLED
|
|
|
|
value: "false"
|
2018-08-23 00:02:46 +00:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
cpu: 200m
|
2018-08-27 18:30:47 +00:00
|
|
|
memory: 180Mi
|
2018-08-23 00:02:46 +00:00
|
|
|
limits:
|
|
|
|
cpu: 300m
|
2018-08-27 18:30:47 +00:00
|
|
|
memory: 300Mi
|
2018-08-23 00:02:46 +00:00
|
|
|
readinessProbe:
|
2018-09-19 19:35:07 +00:00
|
|
|
initialDelaySeconds: 20
|
|
|
|
periodSeconds: 5
|
|
|
|
exec:
|
|
|
|
command: ["/bin/grpc_health_probe", "-addr=:9555"]
|
2018-08-23 00:02:46 +00:00
|
|
|
livenessProbe:
|
2018-09-19 19:35:07 +00:00
|
|
|
initialDelaySeconds: 20
|
|
|
|
periodSeconds: 5
|
|
|
|
exec:
|
|
|
|
command: ["/bin/grpc_health_probe", "-addr=:9555"]
|
2018-08-23 00:02:46 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: adservice
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
selector:
|
|
|
|
app: adservice
|
|
|
|
ports:
|
|
|
|
- name: grpc
|
|
|
|
port: 9555
|
|
|
|
targetPort: 9555
|