diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deploy.yaml	Tue Mar 29 21:44:04 2022 -0700
@@ -0,0 +1,38 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: collector
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      app: collector
+  template:
+    metadata:
+      labels:
+        app: collector
+    spec:
+      containers:
+        - name: collector
+          image: bang5:5000/collector_image
+          imagePullPolicy: "Always"
+          ports:
+          - containerPort: 9072
+      affinity:
+        nodeAffinity:
+          requiredDuringSchedulingIgnoredDuringExecution:
+            nodeSelectorTerms:
+            - matchExpressions:
+              - key: "kubernetes.io/hostname"
+                operator: In
+                values: ["bang"]
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: collector
+spec:
+  ports:
+  - {port: 9072, targetPort: 9072}
+  selector:
+    app: collector