blob: eb41f589640b83924a5599c0baf4900209cf694f [file] [log] [blame]
garciadeblasbacdfa82023-04-04 10:52:46 +02001#######################################################################################
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
18apiVersion: v1
19kind: Service
20metadata:
21 name: webhook-translator
22spec:
23 ports:
24 - nodePort: 9998
25 port: 80
26 targetPort: 80
27 selector:
28 app: webhook-translator
29 type: NodePort
30---
31apiVersion: apps/v1
32kind: Deployment
33metadata:
34 name: webhook-translator
35 labels:
36 app: webhook-translator
37spec:
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