...
1
2---
3kind: Service
4apiVersion: v1
5metadata:
6 name: {self.path.k8s}
7spec:
8 selector:
9 backend: {self.path.k8s}
10 ports:
11 - name: http
12 protocol: TCP
13 port: 80
14 targetPort: 8080
15 - name: https
16 protocol: TCP
17 port: 443
18 targetPort: 8443
19---
20apiVersion: v1
21kind: Pod
22metadata:
23 name: {self.path.k8s}
24 labels:
25 backend: {self.path.k8s}
26spec:
27 containers:
28 - name: backend
29 image: {images[kat-server]}
30 ports:
31 - containerPort: 8080
32 env:
33 - name: BACKEND
34 value: {self.path.k8s}
35 - name: KAT_BACKEND_TYPE
36 value: grpc_echo
View as plain text