...
1---
2apiVersion: v1
3kind: Service
4metadata:
5 name: {self.path.k8s}
6spec:
7 selector:
8 backend: {self.path.k8s}
9 ports:
10 - name: http
11 protocol: TCP
12 port: 80
13 targetPort: http
14---
15apiVersion: apps/v1
16kind: Deployment
17metadata:
18 name: {self.path.k8s}
19spec:
20 replicas: 1
21 selector:
22 matchLabels:
23 backend: {self.path.k8s}
24 template:
25 metadata:
26 labels:
27 backend: {self.path.k8s}
28 spec:
29 containers:
30 - name: httpbin
31 image: docker.io/kennethreitz/httpbin
32 ports:
33 - name: http
34 containerPort: 80
View as plain text