comparison deploy.yaml @ 0:e2d855c00e57

initial move from homeauto/ repo
author drewp@bigasterisk.com
date Tue, 29 Mar 2022 21:44:04 -0700
parents
children 1275220a644b
comparison
equal deleted inserted replaced
-1:000000000000 0:e2d855c00e57
1 apiVersion: apps/v1
2 kind: Deployment
3 metadata:
4 name: collector
5 spec:
6 replicas: 1
7 selector:
8 matchLabels:
9 app: collector
10 template:
11 metadata:
12 labels:
13 app: collector
14 spec:
15 containers:
16 - name: collector
17 image: bang5:5000/collector_image
18 imagePullPolicy: "Always"
19 ports:
20 - containerPort: 9072
21 affinity:
22 nodeAffinity:
23 requiredDuringSchedulingIgnoredDuringExecution:
24 nodeSelectorTerms:
25 - matchExpressions:
26 - key: "kubernetes.io/hostname"
27 operator: In
28 values: ["bang"]
29 ---
30 apiVersion: v1
31 kind: Service
32 metadata:
33 name: collector
34 spec:
35 ports:
36 - {port: 9072, targetPort: 9072}
37 selector:
38 app: collector