Fix log archive in stage3
[osm/devops.git] / installers / docker / osm_pods / webhook-translator.yaml
1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #    http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 # implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
17
18 apiVersion: v1
19 kind: Service
20 metadata:
21   name: webhook-translator
22 spec:
23   ports:
24   - nodePort: 9998
25     port: 80
26     targetPort: 80
27   selector:
28     app: webhook-translator
29   type: NodePort
30 ---
31 apiVersion: apps/v1
32 kind: Deployment
33 metadata:
34   name: webhook-translator
35   labels:
36     app: webhook-translator
37 spec:
38   replicas: 1
39   selector:
40     matchLabels:
41       app: webhook-translator
42   template:
43     metadata:
44       labels:
45         app: webhook-translator
46     spec:
47       containers:
48       - name: webhook-translator
49         image: gerardogarcia/webhook-translator:13
50         ports:
51         - containerPort: 80
52           protocol: TCP
53         envFrom:
54         - secretRef:
55             name: webhook-translator-secret