annotate service/mqtt_to_rdf/deploy.yaml @ 1724:8d2c75a93d82

use pdm (these are new deps)
author drewp@bigasterisk.com
date Tue, 20 Jun 2023 23:13:09 -0700
parents 8f7f7ca65ed4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1689
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
1 apiVersion: v1
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
2 kind: PersistentVolume
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
3 metadata:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
4 name: mqtt-to-rdf-data
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
5 labels:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
6 type: local
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
7 spec:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
8 storageClassName: manual
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
9 hostPath:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
10 path: "/my/proj/homeauto/service/mqtt_to_rdf/conf"
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
11 capacity: { storage: 1Mi }
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
12 accessModes: [ReadWriteOnce]
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
13 persistentVolumeReclaimPolicy: Retain
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
14 claimRef: { namespace: default, name: mqtt-to-rdf-data }
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
15 ---
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
16 apiVersion: v1
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
17 kind: PersistentVolumeClaim
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
18 metadata:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
19 name: mqtt-to-rdf-data
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
20 spec:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
21 storageClassName: ""
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
22 volumeName: "mqtt-to-rdf-data"
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
23 accessModes: [ReadWriteOnce]
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
24 resources:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
25 requests:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
26 storage: 1Mi
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
27 ---
790
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
28 apiVersion: apps/v1
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
29 kind: Deployment
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
30 metadata:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
31 name: mqtt-to-rdf
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
32 spec:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
33 replicas: 1
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
34 selector:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
35 matchLabels:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
36 app: mqtt-to-rdf
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
37 template:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
38 metadata:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
39 labels:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
40 app: mqtt-to-rdf
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
41 spec:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
42 containers:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
43 - name: mqtt-to-rdf
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
44 image: bang5:5000/mqtt_to_rdf_image
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
45 imagePullPolicy: "Always"
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
46 ports:
1689
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
47 - containerPort: 10018
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
48 volumeMounts:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
49 - { name: data, mountPath: "/opt/conf" }
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
50 # resources:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
51 # limits:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
52 # cpu: "2"
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
53 # memory: 100Mi
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
54 volumes:
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
55 - { name: data, persistentVolumeClaim: { claimName: mqtt-to-rdf-data } }
8f7f7ca65ed4 don't deploy config files; mount them in so i can edit
drewp@bigasterisk.com
parents: 790
diff changeset
56
790
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
57 affinity:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
58 nodeAffinity:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
59 requiredDuringSchedulingIgnoredDuringExecution:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
60 nodeSelectorTerms:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
61 - matchExpressions:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
62 - key: "kubernetes.io/hostname"
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
63 operator: In
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
64 values: ["bang"]
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
65 ---
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
66 apiVersion: v1
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
67 kind: Service
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
68 metadata:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
69 name: mqtt-to-rdf
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
70 spec:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
71 ports:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
72 - {port: 10018, targetPort: 10018}
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
73 selector:
b85986495848 skaffold setup for mqtt_to_rdf
drewp@bigasterisk.com
parents:
diff changeset
74 app: mqtt-to-rdf