Mercurial > code > home > repos > homeauto
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 |
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 | 28 apiVersion: apps/v1 |
29 kind: Deployment | |
30 metadata: | |
31 name: mqtt-to-rdf | |
32 spec: | |
33 replicas: 1 | |
34 selector: | |
35 matchLabels: | |
36 app: mqtt-to-rdf | |
37 template: | |
38 metadata: | |
39 labels: | |
40 app: mqtt-to-rdf | |
41 spec: | |
42 containers: | |
43 - name: mqtt-to-rdf | |
44 image: bang5:5000/mqtt_to_rdf_image | |
45 imagePullPolicy: "Always" | |
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 | 57 affinity: |
58 nodeAffinity: | |
59 requiredDuringSchedulingIgnoredDuringExecution: | |
60 nodeSelectorTerms: | |
61 - matchExpressions: | |
62 - key: "kubernetes.io/hostname" | |
63 operator: In | |
64 values: ["bang"] | |
65 --- | |
66 apiVersion: v1 | |
67 kind: Service | |
68 metadata: | |
69 name: mqtt-to-rdf | |
70 spec: | |
71 ports: | |
72 - {port: 10018, targetPort: 10018} | |
73 selector: | |
74 app: mqtt-to-rdf |