lets test
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,2 +1,8 @@
|
|||||||
.secret/*
|
.secret/*
|
||||||
*/.secret
|
*/.secret
|
||||||
|
|
||||||
|
debug
|
||||||
|
target
|
||||||
|
**/*.rs.bk
|
||||||
|
*.pdb
|
||||||
|
**/mutants.out*/
|
||||||
|
6
homegrown/email/.dockerignore
Normal file
6
homegrown/email/.dockerignore
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
debug
|
||||||
|
target
|
||||||
|
**/*.rs.bk
|
||||||
|
*.pdb
|
||||||
|
**/mutants.out*/
|
||||||
|
|
1838
homegrown/email/Cargo.lock
generated
Normal file
1838
homegrown/email/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
11
homegrown/email/Cargo.toml
Normal file
11
homegrown/email/Cargo.toml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[package]
|
||||||
|
name = "email"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
reqwest = { version = "0.12", features = ["json"] }
|
||||||
|
tokio = { version = "1", features = ["full"] }
|
||||||
|
lettre = "0.11"
|
4
homegrown/email/Dockerfile
Normal file
4
homegrown/email/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM rust:1.88.0
|
||||||
|
COPY ./ ./
|
||||||
|
RUN cargo build --release
|
||||||
|
CMD ["./target/release/email"]
|
2
homegrown/email/readme.md
Normal file
2
homegrown/email/readme.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# email
|
||||||
|
sends me an email every monday with all the new videos from channels i like on youtbue
|
13
homegrown/email/src/main.rs
Normal file
13
homegrown/email/src/main.rs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
use std::collections::HashMap;
|
||||||
|
|
||||||
|
#[tokio::main]
|
||||||
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
//getting the list of channels with id's first
|
||||||
|
let resp = reqwest::get("https://raw.githubusercontent.com/bvanroll/home/static/yters.json")
|
||||||
|
.await?
|
||||||
|
.json::<HashMap<String, String>>()
|
||||||
|
.await?;
|
||||||
|
println!("{resp:#?}");
|
||||||
|
Ok(())
|
||||||
|
|
||||||
|
}
|
@@ -15,6 +15,16 @@ spec:
|
|||||||
name: svc-truenas
|
name: svc-truenas
|
||||||
port:
|
port:
|
||||||
number: 443
|
number: 443
|
||||||
|
- host: "pinry.local"
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: svc-mylar3
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
- host: "mylar3.local"
|
- host: "mylar3.local"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
|
39
k8s_manifests/pinry/deployment.yaml
Normal file
39
k8s_manifests/pinry/deployment.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: pinry
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: pinry
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: pinry
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: pinry
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
nfs:
|
||||||
|
server: 192.168.0.99
|
||||||
|
path: /mnt/test1/media/pinry
|
||||||
|
containers:
|
||||||
|
- name: pinry
|
||||||
|
image: getpinry/pinry
|
||||||
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: UMASK
|
||||||
|
value: "002"
|
||||||
|
- name: TZ
|
||||||
|
value: "Etc/UTC"
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
|
14
k8s_manifests/pinry/service.yaml
Normal file
14
k8s_manifests/pinry/service.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: svc-pinry
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: pinry
|
||||||
|
ports:
|
||||||
|
- name: webui
|
||||||
|
protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
|
||||||
|
|
@@ -26,13 +26,13 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: soularr
|
- name: soularr
|
||||||
image: mrusse08/soularr:latest
|
image: mrusse08/soularr:latest
|
||||||
#livenessProbe:
|
livenessProbe:
|
||||||
#httpGet:
|
httpGet:
|
||||||
# path: /
|
path: /
|
||||||
# port: 8989
|
port: 8989
|
||||||
#initialDelaySeconds: 60
|
initialDelaySeconds: 21600
|
||||||
#failureThreshold: 6
|
failureThreshold: 6
|
||||||
#periodSeconds: 10
|
periodSeconds: 10
|
||||||
env:
|
env:
|
||||||
- name: PUID
|
- name: PUID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
|
1
static/yters.json
Normal file
1
static/yters.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{}
|
Reference in New Issue
Block a user