adding wol-rest
This commit is contained in:
parent
378f784f06
commit
cdd69ca5df
5 changed files with 113 additions and 0 deletions
17
app-of-apps/wol-rest.yaml
Normal file
17
app-of-apps/wol-rest.yaml
Normal 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
|
||||||
9
apps-kustomized/wol-rest/configmap.yaml
Normal file
9
apps-kustomized/wol-rest/configmap.yaml
Normal 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
|
||||||
23
apps-kustomized/wol-rest/default-network-policy.yaml
Executable file
23
apps-kustomized/wol-rest/default-network-policy.yaml
Executable 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"
|
||||||
45
apps-kustomized/wol-rest/wol-deployment.yaml
Executable file
45
apps-kustomized/wol-rest/wol-deployment.yaml
Executable 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
|
||||||
19
apps-kustomized/wol-rest/wol-expose.yaml
Executable file
19
apps-kustomized/wol-rest/wol-expose.yaml
Executable 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
|
||||||
Loading…
Add table
Reference in a new issue