adding wol-rest

This commit is contained in:
Martyn 2026-01-27 21:12:38 +01:00
parent 378f784f06
commit cdd69ca5df
5 changed files with 113 additions and 0 deletions

17
app-of-apps/wol-rest.yaml Normal file
View file

@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wol-rest
namespace: argocd
spec:
destination:
namespace: wol-rest
server: https://kubernetes.default.svc
project: default
source:
path: apps-kustomized/wol-rest
repoURL: http://forgejo.git.svc.cluster.local/martyn/infra4talos.git
targetRevision: HEAD
syncPolicy:
automated:
selfHeal: true

View file

@ -0,0 +1,9 @@
apiVersion: v1
data:
computer.csv: |
name,mac,ip
i9top,04-d9-f5-f7-13-53,172.20.3.255:9
kind: ConfigMap
metadata:
creationTimestamp: null
name: wol-csv

View file

@ -0,0 +1,23 @@
#! default-network-policy.yaml
# Generated code, do not edit
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-network-policy
spec:
podSelector:
matchLabels:
com.docker.compose.network.default: "true"
policyTypes:
- Ingress
- Egress
ingress:
- from:
- podSelector:
matchLabels:
com.docker.compose.network.default: "true"
egress:
- to:
- podSelector:
matchLabels:
com.docker.compose.network.default: "true"

View file

@ -0,0 +1,45 @@
#! wol-deployment.yaml
# Generated code, do not edit
apiVersion: apps/v1
kind: Deployment
metadata:
name: wol
labels:
app.kubernetes.io/part-of: wol-rest
app.kubernetes.io/component: wol
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/part-of: wol-rest
app.kubernetes.io/component: wol
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/part-of: wol-rest
app.kubernetes.io/component: wol
spec:
hostNetwork: true
containers:
- name: wol
image: carnyc/wakeonlan:2.0
imagePullPolicy: IfNotPresent
env:
- name: WOLFILE
value: "/data/computer.csv"
- name: WOLHTTPPORT
value: "8080"
ports:
- name: wol-8080
containerPort: 8080
volumeMounts:
- name: data-computer-csv
mountPath: /data/computer.csv
readOnly: true
subPath: computer.csv
volumes:
- name: data-computer-csv
configMap:
name: wol-csv

View file

@ -0,0 +1,19 @@
#! wol-expose.yaml
# Generated code, do not edit
apiVersion: v1
kind: Service
metadata:
name: wol
namespace: wol-rest
labels:
app.kubernetes.io/part-of: wol-rest
app.kubernetes.io/component: wol
spec:
type: LoadBalancer
selector:
app.kubernetes.io/part-of: wol-rest
app.kubernetes.io/component: wol
ports:
- name: wol-8080
port: 80
targetPort: wol-8080