...
1---
2apiVersion: v1
3kind: Service
4metadata:
5 name: {self.path.k8s}
6spec:
7 selector:
8 backend: {self.path.k8s}
9 ports:
10 - protocol: UDP
11 port: 8125
12 targetPort: 8125
13 name: statsd-metrics
14 - protocol: TCP
15 port: 80
16 targetPort: 3000
17 name: statsd-http
18---
19apiVersion: apps/v1
20kind: Deployment
21metadata:
22 name: {self.path.k8s}
23spec:
24 replicas: 1
25 selector:
26 matchLabels:
27 backend: {self.path.k8s}
28 template:
29 metadata:
30 labels:
31 backend: {self.path.k8s}
32 spec:
33 containers:
34 - name: statsd
35 image: {images[test-stats]}
36 env:
37 - name: STATSD_TEST_CLUSTER
38 value: {self.target_cluster}
39 restartPolicy: Always
View as plain text