File tree Expand file tree Collapse file tree 12 files changed +291
-2
lines changed
k8s/magiclove/home_assistant Expand file tree Collapse file tree 12 files changed +291
-2
lines changed Original file line number Diff line number Diff line change @@ -22,5 +22,7 @@ cue_library(
22
22
"//cue.mod/gen/k8s.io/api/apps/v1:cue_v1_library" ,
23
23
"//cue.mod/gen/k8s.io/api/core/v1:cue_v1_library" ,
24
24
"//cue.mod/gen/sigs.k8s.io/gateway-api/apis/v1:cue_v1_library" ,
25
+ "//k8s/magiclove/home_assistant/piper:cue_piper_library" ,
26
+ "//k8s/magiclove/home_assistant/whisper:cue_whisper_library" ,
25
27
],
26
28
)
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ package home_assistant
3
3
import (
4
4
" list "
5
5
6
+ " github.com/uhthomas/automata/k8s/magiclove/home_assistant/piper "
7
+ " github.com/uhthomas/automata/k8s/magiclove/home_assistant/whisper "
6
8
" k8s.io/api/core/v1 "
7
9
)
8
10
@@ -20,8 +22,8 @@ import (
20
22
name : string | * #Name
21
23
namespace : #Namespace
22
24
labels : {
23
- " app.kubernetes.io/name " : #Name
24
- " app.kubernetes.io/version " : #Version
25
+ " app.kubernetes.io/name " : string | * #Name
26
+ " app.kubernetes.io/version " : string | * #Version
25
27
}
26
28
}
27
29
}]
@@ -39,4 +41,6 @@ _items: [
39
41
#ServiceList .items ,
40
42
#StatefulSetList .items ,
41
43
#VMServiceScrapeList .items ,
44
+ piper .#List .items ,
45
+ whisper .#List .items ,
42
46
]
Original file line number Diff line number Diff line change
1
+ load ("@com_github_tnarg_rules_cue//cue:cue.bzl" , "cue_library" )
2
+
3
+ cue_library (
4
+ name = "cue_piper_library" ,
5
+ srcs = [
6
+ "list.cue" ,
7
+ "service_list.cue" ,
8
+ "stateful_set_list.cue" ,
9
+ ],
10
+ importpath = "github.com/uhthomas/automata/k8s/magiclove/home_assistant/piper" ,
11
+ visibility = ["//visibility:public" ],
12
+ deps = [
13
+ "//cue.mod/gen/k8s.io/api/apps/v1:cue_v1_library" ,
14
+ "//cue.mod/gen/k8s.io/api/core/v1:cue_v1_library" ,
15
+ ],
16
+ )
Original file line number Diff line number Diff line change
1
+ # Wyoming Piper
2
+
3
+ [ https://github.com/home-assistant/addons/blob/be105fa07eedf5b29fc9ce9d0702914f5a8d6b03/piper/DOCS.md ] ( https://github.com/home-assistant/addons/blob/be105fa07eedf5b29fc9ce9d0702914f5a8d6b03/piper/DOCS.md )
4
+
5
+ [ https://hub.docker.com/r/rhasspy/wyoming-piper ] ( https://hub.docker.com/r/rhasspy/wyoming-piper )
Original file line number Diff line number Diff line change
1
+ package piper
2
+
3
+ import (
4
+ " list "
5
+
6
+ " k8s.io/api/core/v1 "
7
+ )
8
+
9
+ #Name : " piper "
10
+
11
+ // renovate: datasource=docker depName=rhasspy/wyoming-piper
12
+ #Version : " 1.5.0 "
13
+
14
+ #List : v1 .#List & {
15
+ apiVersion : " v1 "
16
+ kind : " List "
17
+ items : [...{
18
+ metadata : {
19
+ name : #Name
20
+ labels : {
21
+ " app.kubernetes.io/name " : #Name
22
+ " app.kubernetes.io/version " : #Version
23
+ }
24
+ }
25
+ }]
26
+ }
27
+
28
+ #List : items : list .Concat (_items )
29
+
30
+ _items : [
31
+ #ServiceList .items ,
32
+ #StatefulSetList .items ,
33
+ ]
Original file line number Diff line number Diff line change
1
+ package piper
2
+
3
+ import " k8s.io/api/core/v1 "
4
+
5
+ #ServiceList : v1 .#ServiceList & {
6
+ apiVersion : " v1 "
7
+ kind : " ServiceList "
8
+ items : [...{
9
+ apiVersion : " v1 "
10
+ kind : " Service "
11
+ }]
12
+ }
13
+
14
+ #ServiceList : items : [{
15
+ spec : {
16
+ ports : [{
17
+ name : " wyoming "
18
+ port : 10200
19
+ targetPort : " wyoming "
20
+ }]
21
+ selector : " app.kubernetes.io/name " : #Name
22
+ }
23
+ }]
Original file line number Diff line number Diff line change
1
+ package piper
2
+
3
+ import (
4
+ appsv1 " k8s.io/api/apps/v1 "
5
+ " k8s.io/api/core/v1 "
6
+ )
7
+
8
+ #StatefulSetList : appsv1 .#StatefulSetList & {
9
+ apiVersion : " apps/v1 "
10
+ kind : " StatefulSetList "
11
+ items : [...{
12
+ apiVersion : " apps/v1 "
13
+ kind : " StatefulSet "
14
+ }]
15
+ }
16
+
17
+ #StatefulSetList : items : [{
18
+ spec : {
19
+ selector : matchLabels : " app.kubernetes.io/name " : #Name
20
+ template : {
21
+ metadata : labels : " app.kubernetes.io/name " : #Name
22
+ spec : containers : [{
23
+ name : #Name
24
+ image : " rhasspy/wyoming-piper:\(#Version ) "
25
+ args : [
26
+ " --voice=en_US-lessac-medium " ,
27
+ // "--device=cuda",
28
+ ]
29
+ ports : [{
30
+ name : " wyoming "
31
+ containerPort : 10200
32
+ }]
33
+ resources : {
34
+ requests : {
35
+ (v1 .#ResourceCPU ): " 200m "
36
+ (v1 .#ResourceMemory ): " 512Mi "
37
+ }
38
+ limits : {
39
+ (v1 .#ResourceCPU ): " 1 "
40
+ (v1 .#ResourceMemory ): " 1Gi "
41
+ " nvidia.com/gpu " : " 1 "
42
+ }
43
+ }
44
+ volumeMounts : [{
45
+ name : " data "
46
+ mountPath : " /data "
47
+ }]
48
+
49
+ imagePullPolicy : v1 .#PullIfNotPresent
50
+ }]
51
+ }
52
+ volumeClaimTemplates : [{
53
+ metadata : name : " data "
54
+ spec : {
55
+ accessModes : [v1 .#ReadWriteOnce ]
56
+ storageClassName : " rook-ceph-nvme "
57
+ resources : requests : (v1 .#ResourceStorage ): " 1Gi "
58
+ }
59
+ }]
60
+ serviceName : #Name
61
+ }
62
+ }]
Original file line number Diff line number Diff line change
1
+ load ("@com_github_tnarg_rules_cue//cue:cue.bzl" , "cue_library" )
2
+
3
+ cue_library (
4
+ name = "cue_whisper_library" ,
5
+ srcs = [
6
+ "list.cue" ,
7
+ "service_list.cue" ,
8
+ "stateful_set_list.cue" ,
9
+ ],
10
+ importpath = "github.com/uhthomas/automata/k8s/magiclove/home_assistant/whisper" ,
11
+ visibility = ["//visibility:public" ],
12
+ deps = [
13
+ "//cue.mod/gen/k8s.io/api/apps/v1:cue_v1_library" ,
14
+ "//cue.mod/gen/k8s.io/api/core/v1:cue_v1_library" ,
15
+ ],
16
+ )
Original file line number Diff line number Diff line change
1
+ # Wyoming Whisper
2
+
3
+ [ https://github.com/home-assistant/addons/blob/be105fa07eedf5b29fc9ce9d0702914f5a8d6b03/whisper/DOCS.md ] ( https://github.com/home-assistant/addons/blob/be105fa07eedf5b29fc9ce9d0702914f5a8d6b03/whisper/DOCS.md )
4
+
5
+ [ https://hub.docker.com/r/rhasspy/wyoming-whisper ] ( https://hub.docker.com/r/rhasspy/wyoming-whisper )
Original file line number Diff line number Diff line change
1
+ package whisper
2
+
3
+ import (
4
+ " list "
5
+
6
+ " k8s.io/api/core/v1 "
7
+ )
8
+
9
+ #Name : " whisper "
10
+
11
+ // renovate: datasource=docker depName=rhasspy/wyoming-whisper
12
+ #Version : " 2.4.0 "
13
+
14
+ #List : v1 .#List & {
15
+ apiVersion : " v1 "
16
+ kind : " List "
17
+ items : [...{
18
+ metadata : {
19
+ name : #Name
20
+ labels : {
21
+ " app.kubernetes.io/name " : #Name
22
+ " app.kubernetes.io/version " : #Version
23
+ }
24
+ }
25
+ }]
26
+ }
27
+
28
+ #List : items : list .Concat (_items )
29
+
30
+ _items : [
31
+ #ServiceList .items ,
32
+ #StatefulSetList .items ,
33
+ ]
You can’t perform that action at this time.
0 commit comments